- API Reference
- Out-of-Date APIs
- Tag Management
- Querying Project Tags (Discarded)
Querying Project Tags (Discarded)¶
Function¶
Projects are used to group and isolate OpenStack resources, which include computing, storage, and network resources. A project can be a department or a team. Multiple projects can be created for the same account.
This API is used to query all tags used by a user in a specified project.
Note
This API has been discarded. Use the API described in Querying Project Tags.
URI¶
GET /v1/{project_id}/servers/tags
Table 1 lists the parameter.
Parameter | Mandatory | Description |
---|---|---|
project_id | Yes | Specifies the project ID. |
Request¶
None
Response¶
Table 2 describes the response parameter.
Parameter | Type | Description |
---|---|---|
tags | Array of objects | Specifies tags. |
Parameter | Type | Description |
---|---|---|
key | String | Specifies the tag key.
|
values | Array of strings | Specifies the tag value.
|
Examples¶
Example Request
GET https://{endpoint}/v1/{project_id}/servers/tags
Example Response
{ "tags": [ { "key": "key1", "values": [ "value1", "value2" ] }, { "key": "key2", "values": [ "value1", "value2" ] } ] }
Returned Values¶
Error Codes¶
See Error Codes.