Adds tags to assets.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes TagAssetsBySearch

The operation that you want to perform. Set the value to TagAssetsBySearch.

AssetType String Yes IP

The type of the asset on the attack surface. Valid values:

  • Domains: domains
  • Subdomains: subdomains
  • Ports: ports
  • Hosts: hosts
  • DNSMap: DNS records
  • WebPaths: web file paths
  • WebTechs: web applications
Source String Yes Domains

The data source of the attack surface. Valid values:

  • Domains: domains
  • Subdomains: subdomains
  • Ports: ports
  • Hosts: hosts
  • DNSMap: DNS records
  • WebPaths: web file paths
  • WebTechs: web applications
Tags.N RepeatList Yes foobar

The name of tag N.

Search String No foobar

Specifies the asset type you want to query.

Response parameters

Parameter Type Example Description
RequestId String 9D67D400-2EC8-4353-BAB9-683891DD5323

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=TagAssetsBySearch
&AssetType=IP
&Source=Domains
&Tags.1=foobar
&<Common request parameters>

Sample success responses

XML format

<TagAssetsBySearchResponse>
  <AssetType>Domain</AssetType>
  <Tags>Top</Tags>
  <Source>DNSMap</Source>
  <Search>s0x</Search>
</TagAssetsBySearchResponse>

JSON format

{
    "AssetType": "Domain",
    "Tags": [
        "Top"
    ],
    "Source": "DNSMap",
    "Search": "s0x"
}

Error codes

For a list of error codes, visit the API Error Center.