doc-exports/docs/css/api-ref/css_03_0078.html
Zheng, Xiu c8d7a6f7c1 CSS API 20230223 Version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Zheng, Xiu <zhengxiu@huawei.com>
Co-committed-by: Zheng, Xiu <zhengxiu@huawei.com>
2023-02-28 10:52:22 +00:00

10 KiB

Querying Tags of a Specified Cluster

Function

This API is used to query the tag information about a specified cluster.

URI

GET /v1.0/{project_id}/css-cluster/{cluster_id}/tags
Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

cluster_id

Yes

String

ID of the cluster to be queried.

Request

None

Response

Table 2 describes the response parameters.

Table 2 Response

Parameter

Type

Description

tags

Array of tag objects

Tags in a cluster.

Table 3 tags field description

Parameter

Type

Description

key

String

Tag key.

value

String

Tag value.

Examples

Example request

GET v1.0/458d905f22da49c39f609e3347d65723/css-cluster/4f3deec3-efa8-4598-bf91-560aad1377a3/tags

Example response

{
    "tags": [
        {
            "key": "key1",
            "value": "value1"
        },
        {
            "key": "key2",
            "value": "value3"
        }
    ]
}

Status Code

Table 4 describes the status code.

Table 4 Status code

Status Code

Message

Description

400

BadRequest

Invalid request.

The client should not repeat the request without modifications.

404

NotFound

The requested resource cannot be found.

The client should not repeat the request without modifications.

200

OK

The request is processed successfully.