Get a List of User-defined Tags

Use the IoT Security API to retrieve a list of user-defined tags for devices.

Synopsis

URI
/pub/v4.0/tag/list
HTTP Method
GET
FQDN
<customer-name>.iot.paloaltonetworks.com

Description

Get a list of user-defined tags assigned to IoT devices.

Request Fields

The URL of this request contains the following parameters:
Field
Description
source
(
Required
) This is the source of the user-defined tags assigned to IoT devices and must be followed by the string
tenant
.
customerid
(
Required
) The customer ID specifies the API call for a specific tenant.
The following value is a string.
Request to Get a List of Tags Example
curl 'https://acmecorp.iot.paloaltonetworks.com/pub/v4.0/tag/list?source=tenant&customerid=acmecorp' -H 'X-Key-Id: <key_id>' -H 'X-Access-Key: <access_key>'

Success Response

Upon success, the HTTP response code is 200.
Success Response Example
{ "ver": "0.3", "api": "notesntags/gettapool", "data": [ "tag1", "tag2", "tag3" ] }

Error Response

Upon error, the reply includes an HTTP response code, an error message, and additional information describing the error. The HTTP response code is one of the following:
Field
Description
400
Bad Request. Got an invalid JSON.
401
Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.
402
Unauthorized access. User does not have the required license type to run this API.
403
Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.
500
Internal server error. A unified status for API communication type errors.
Error Response Format
{code: STATUS_CODE, msg: GENERAL_MESSAGE}

Recommended For You