Querying Project Tags

Function Description

This API is used to query all resource tags of a tenant in a specified project.

URI

  • URI format

    GET /v1/{project_id}/waf/tags

  • Parameter description

    Table 1 Path parameters

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Specifies the project ID.

Request

Request parameters

None

Response

Response parameters

Table 2 Parameter description

Parameter

Type

Description

tags

Table 3

Specifies the tag list.

Table 3 tags

Parameter

Type

Description

key

String

Specifies the key. It contains a maximum of 36 Unicode characters.

The key value must comply with Character Set Specifications.

values

List<String>

Specifies the list of values. Each value contains a maximum of 43 Unicode characters.

The value must comply with Character Set Specifications.

Example

Response example

{
      "tags": [
        {
            "key": "key1",
            "values": [
                "value1",
                "value2"
                 ]
        },
        {
            "key": "key2",
            "values": [
                "value1",
                "value2"
                 ]
        }
    ]
}

Status Code

Table 4 describes the normal status code returned by the API.

Table 4 Status code

Status Code

Description

Meaning

200

OK

The request has succeeded.

For details about error status codes, see Status Codes.