Querying Resource Tags
Function
This API is used to query tags attached to the specified resource.
URI
GET https://{endpoint}/v1/organizations/{resource_type}/tags
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
resource_type |
Yes |
String |
Resource type. It can be organizations:policies, organizations:ous, organizations:accounts, or organizations:roots. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Security-Token |
No |
String |
Security token (session token) of your temporary security credentials. If a temporary security credential is used, this header is required. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
tags |
Array of TagsDTO objects |
A custom key-value pair. |
Example Requests
Querying resource tags
GET https://{endpoint}/v1/organizations/{resource_type}/tags
Example Responses
Status code: 200
Successful
{ "tags" : [ { "key" : "key1", "values" : [ "value1", "velua2" ] } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
Successful |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.