forked from docs/doc-exports
Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
14 KiB
14 KiB
Querying Instance Tags (a V3 API)
Function
This API is used to query instance tags.
Constraints
None
URI
GET /v3/{project_id}/instances/{instance_id}/tags
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Project ID of a tenant in a region |
instance_id |
Yes |
String |
Instance ID |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. You can obtain the token by calling the IAM API used to obtain a user token. |
Example Request
Querying instance tags
GET https://ddm.eu-de.otc.t-systems.com/v3/74f57817ca8f42e19318eb0e0ad41d18/instances/2f0324a93859487eb5566d75951fcd2din09/tags
Response
- Normal response
Parameter |
Type |
Description |
|---|---|---|
tags |
Array of QueryInstanceTagInfo objects |
Tag list |
- Normal response example
{
"tags": [
{
"key": "test",
"value": "1"
}
]
}
- Abnormal response
For details, see Abnormal Request Results.
Status Codes
- Normal
- Abnormal
For details, see Status Codes.
Error Codes
For details, see Error Codes.
Parent topic: Tag Management