Querying Resource Tags

Function

This API is used to query tag information of a specified instance.

URI

GET /v2/{project_id}/{resource_type}/{resource_id}/tags

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details about how to obtain a project ID, see Obtaining a Project ID.

resource_type

Yes

String

Resource type.

  • ief-edge_node
  • ief-deployment
  • ief-application
  • ief-device

resource_id

Yes

String

Resource ID.

Request

None

Response

Table 2 Body parameter

Parameter

Type

Description

tags

Array of resource_tag objects

A list of tags.

count

Integer

Number of tags.

Table 3 resource_tag

Parameter

Type

Description

key

String

Tag key.

value

String

Tag value.

Response example
{
    "tags": [
        {
            "value": "",
            "key": "testtest"
        },
        {
            "value": "",
            "key": "test"
        }
    ],
    "count": 0
}

Error Codes

For details, see Error Codes.