Querying All Tags of a Resource Pool
Function
This API is used to query all tags of a resource pool in the current project. By default, all workspaces are queried. Tag data is not returned for workspaces on which the user does not have permission.
URI
GET /v1/{project_id}/pools/tags
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID and Name. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
limit |
No |
Integer |
Maximum number of records returned on each page. The default value is 200. Minimum: 1 Default: 200 |
offset |
No |
Integer |
Start page for pagination display. The default value is 0. Minimum: 0 Default: 0 |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
tags |
Array of CombineTag objects |
Data structure of merged tags with the same key Array Length: 0 - 200 |
Parameter |
Type |
Description |
---|---|---|
key |
String |
Tag key Minimum: 1 Maximum: 128 |
values |
Array of strings |
Merged tag values with the same key Array Length: 0 - 200 |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error codes of ModelArts |
error_msg |
String |
Error message |
Status code: 401
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error codes of ModelArts |
error_msg |
String |
Error message |
Status code: 403
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error codes of ModelArts |
error_msg |
String |
Error message |
Example Requests
https://{endpoint}/v1/{project_id}/pools/tags
Example Responses
Status code: 200
All tags of the specified resource type in the project are returned.
{ "tags" : [ { "key" : "model_version", "values" : [ "0.1", "0.2" ] }, { "key" : "conda_version", "values" : [ "10.2", "11.0" ] } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
All tags of the specified resource type in the project are returned. |
400 |
Invalid parameter. |
401 |
Authentication failed. |
403 |
Insufficient permission. |
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.