For the complete documentation index, see llms.txt. This page is also available as Markdown.

Tag Management

APIs for managing tags

Add Tags to Assets

post

Add tags in bulk to a set of assets.

Header parameters
authorizationstringRequired

api-key

Example: {{api_key}}
x-xdr-auth-idstringRequired

api-key-id

Example: {{api_key_id}}
Body
Other propertiesanyOptional
Responses
200

OK

application/json
Other propertiesanyOptional
post/public_api/v1/assets/tags/assets_internet_exposure/assign/
POST /public_api/v1/assets/tags/assets_internet_exposure/assign/ HTTP/1.1
Host: api-{{fqdn}}
authorization: {{api_key}}
x-xdr-auth-id: {{api_key_id}}
Content-Type: application/json
Accept: */*
Content-Length: 131

{
  "request_data": {
    "filters": [
      {
        "field": "name",
        "operator": "in",
        "value": "text"
      }
    ],
    "tags": [
      "text"
    ]
  },
  "ANY_ADDITIONAL_PROPERTY": "anything"
}
{
  "reply": {
    "assign_tags": "text",
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "ANY_ADDITIONAL_PROPERTY": "anything"
}

Add Tags to IP Address Ranges

post

Add tags in bulk to owned IP ranges.

Header parameters
authorizationstringRequired

api-key

Example: {{api_key}}
x-xdr-auth-idstringRequired

api-key-id

Example: {{api_key_id}}
Body
Other propertiesanyOptional
Responses
200

OK

application/json
Other propertiesanyOptional
post/public_api/v1/assets/tags/external_ip_address_ranges/assign/
POST /public_api/v1/assets/tags/external_ip_address_ranges/assign/ HTTP/1.1
Host: api-{{fqdn}}
authorization: {{api_key}}
x-xdr-auth-id: {{api_key_id}}
Content-Type: application/json
Accept: */*
Content-Length: 221

{
  "request_data": {
    "filters": [
      {
        "field": "organization_handles",
        "operator": "in",
        "value": "text",
        "ANY_ADDITIONAL_PROPERTY": "anything"
      }
    ],
    "tags": [
      "text"
    ],
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "ANY_ADDITIONAL_PROPERTY": "anything"
}
{
  "reply": {
    "assign_tags": "text",
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "ANY_ADDITIONAL_PROPERTY": "anything"
}

Create Asset Tag Rules

post

Create tag rules that apply tags automatically to assets that match your rule criteria, including any new assets that are attributed to your organization. Tag rules can be defined for IPv4 addresses and IPv4 ranges. These fields can be the same to denote a single IP address. If the list of IP addresses exceeds 100, Expander will create multiple tag rules, each with at most 100 IP addresses per rule. Required License: Cortex Xpanse Expander

Header parameters
authorizationstringRequired

api-key

Example: {{api_key}}
x-xdr-auth-idstringRequired

api-key-id

Example: {{api_key_id}}
Body
Other propertiesanyOptional
Responses
200

OK

application/json
replystringRequired
Other propertiesanyOptional
post/public_api/v1/assets/create_asset_tag_rules/
POST /public_api/v1/assets/create_asset_tag_rules/ HTTP/1.1
Host: api-{{fqdn}}
authorization: {{api_key}}
x-xdr-auth-id: {{api_key_id}}
Content-Type: application/json
Accept: */*
Content-Length: 235

{
  "request_data": {
    "ip_ranges": [
      {
        "from_ip": "text",
        "to_ip": "text",
        "ANY_ADDITIONAL_PROPERTY": "anything"
      }
    ],
    "rule_name": "text",
    "description": "text",
    "tag_name": "text",
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "ANY_ADDITIONAL_PROPERTY": "anything"
}
{
  "reply": "text",
  "ANY_ADDITIONAL_PROPERTY": "anything"
}

Remove Tags from Assets

post

Remove tags in bulk from a set of assets.

Header parameters
authorizationstringRequired

api-key

Example: {{api_key}}
x-xdr-auth-idstringRequired

api-key-id

Example: {{api_key_id}}
Body
Other propertiesanyOptional
Responses
200

OK

application/json
Other propertiesanyOptional
post/public_api/v1/assets/tags/assets_internet_exposure/remove/
POST /public_api/v1/assets/tags/assets_internet_exposure/remove/ HTTP/1.1
Host: api-{{fqdn}}
authorization: {{api_key}}
x-xdr-auth-id: {{api_key_id}}
Content-Type: application/json
Accept: */*
Content-Length: 131

{
  "request_data": {
    "filters": [
      {
        "field": "name",
        "operator": "in",
        "value": "text"
      }
    ],
    "tags": [
      "text"
    ]
  },
  "ANY_ADDITIONAL_PROPERTY": "anything"
}
{
  "reply": {
    "remove_tags": "text",
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "ANY_ADDITIONAL_PROPERTY": "anything"
}

Remove Tags from IP Address Ranges

post

Remove tags in bulk from a set of IP address ranges.

Header parameters
authorizationstringRequired

api-key

Example: {{api_key}}
x-xdr-auth-idstringRequired

api-key-id

Example: {{api_key_id}}
Body
Other propertiesanyOptional
Responses
200

OK

application/json
Other propertiesanyOptional
post/public_api/v1/assets/tags/external_ip_address_ranges/remove/
POST /public_api/v1/assets/tags/external_ip_address_ranges/remove/ HTTP/1.1
Host: api-{{fqdn}}
authorization: {{api_key}}
x-xdr-auth-id: {{api_key_id}}
Content-Type: application/json
Accept: */*
Content-Length: 221

{
  "request_data": {
    "filters": [
      {
        "field": "organization_handles",
        "operator": "in",
        "value": "text",
        "ANY_ADDITIONAL_PROPERTY": "anything"
      }
    ],
    "tags": [
      "text"
    ],
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "ANY_ADDITIONAL_PROPERTY": "anything"
}
{
  "reply": {
    "remove_tags": "text",
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "ANY_ADDITIONAL_PROPERTY": "anything"
}

Delete Unused Tags

post

Delete unused tags by specifying tag IDs or tag names. You don't have to provide both tag_ids and tag_names, but you can use both to specify different tags.

Header parameters
authorizationstringRequired

api-key

Example: {{api-key}}
x-xdr-auth-idstringRequired

api-key-id

Example: {{api-key-id}}
Body
Responses
200

OK

application/json
replystringOptional
post/public_api/v1/assets/delete_unused_tag/
POST /public_api/v1/assets/delete_unused_tag/ HTTP/1.1
Host: api-{{fqdn}}
authorization: {{api-key}}
x-xdr-auth-id: {{api-key-id}}
Content-Type: application/json
Accept: */*
Content-Length: 93

{
  "request_data": {
    "tag_family": "ip_ranges",
    "tag_ids": [
      "IPR:abcd12345"
    ],
    "tag_names": [
      "tag-1"
    ]
  }
}
{
  "reply": "succeeded"
}

Last updated

Was this helpful?