Obtaining Resource Tags of Nodes
Function
This API is used to obtain resource tags of a specified node.
URI
GET /v1/{project_id}/nodes/{node_name}/tags
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID and Name. |
|
node_name |
Yes |
String |
Node ID. The value is the metadata.name field in the node details. |
Request Parameters
None
Response Parameters
Status code: 204
|
Parameter |
Type |
Description |
|---|---|---|
|
tags |
Tag object |
Resource tag list |
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 |
Status code: 404
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error codes of ModelArts |
|
error_msg |
String |
Error message |
Example Requests
Obtain resource tags of a specified node.
https://{endpoint}/v1/{project_id}/nodes/os-node-create-48d13/tags
Example Responses
Status code: 204
Tags obtained.
{
"tags" : [ {
"key" : "dev",
"value" : "dev1"
} ]
}
Status Codes
|
Status Code |
Description |
|---|---|
|
204 |
Tags obtained. |
|
400 |
Invalid parameter. |
|
401 |
Authentication failed. |
|
403 |
Insufficient permission. |
|
404 |
Resource not found. |
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.