Querying Tags of a Task
Function
This API is used to query tags of a specified task.
URI
GET /v5/{project_id}/jobs/{resource_type}/{job_id}/tags
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID of a tenant in a region. For details, see Obtaining a Project ID. |
resource_type |
Yes |
String |
Resource type.
Enumerated values:
|
job_id |
Yes |
String |
Task ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
Content-Type |
Yes |
String |
MIME type of the request body. Use the default value application/json. For APIs used to upload objects or images, the value varies depending on the flow type. The default value is application/json. |
X-Auth-Token |
Yes |
String |
User token obtained from IAM. It is a response to the API for obtaining a user token. After a request is processed, the value of X-Subject-Token in the header is the token value. |
X-Language |
No |
String |
Request language type. Default value: en-us Enumerated values:
|
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
tags |
Array of objects |
Tag list. For details, see Table 4. |
Parameter |
Type |
Description |
---|---|---|
key |
String |
Tag key.
Minimum length: 1 Maximum length: 128 |
value |
String |
Tag value. This parameter is optional for deleting a tag.
Maximum length: 255 |
Example Request
Querying real-time synchronization task tags
https://{endpoint}/v5/246765b9f59445c3919fce121ea801f4/jobs/sync/e6842695-3ade-4937-827b-ff92776jb20a/tags
Example Response
Status code: 200
OK
{ "tags": [ { "key": "aaa", "value": "bbbb" } ] }
Status Code
Status Code |
Description |
---|---|
200 |
OK |
Error Code
For details, see Error Code.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot