forked from docs/doc-exports
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Co-authored-by: wanghuijuan738 <wanghuijuan738@huawei.com> Co-committed-by: wanghuijuan738 <wanghuijuan738@huawei.com>
9.6 KiB
9.6 KiB
Listing Project Tags
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 list all tags attached to a specified project.
Request
None
Response
Table 2 describes the response parameters.
Parameter |
Type |
Description |
|---|---|---|
tags |
Array of objects |
Specifies the tag list. For details, see Table 3. |
Parameter |
Type |
Description |
|---|---|---|
key |
String |
Specifies the tag key.
|
values |
Array of strings |
Specifies the tag value.
|
Example Request
List all tags attached to a specified project.
GET https://{endpoint}/v1/{project_id}/cloudservers/tags
Example Response
{
"tags": [
{
"key": "key1",
"values": [
"value1",
"value2"
]
},
{
"key": "key2",
"values": [
"value1",
"value2"
]
}
]
}
Returned Values
Error Codes
See Error Codes.
Parent topic: Tag Management