Configuring Job Tags
Function
This API is used to configure job tags.
URI
- Parameter description
Table 1 URI parameters Parameter
Mandatory
Type
Description
project_id
Yes
String
Project ID. For details about how to obtain a project ID, see Project ID and Account ID.
job_name
Yes
String
Job name
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
workspace |
No |
String |
Workspace ID
|
X-Auth-Token |
Yes |
String |
IAM Token Minimum length: 0 Maximum length: 4096 |
Content-Type |
No |
String |
This parameter is mandatory if the body is available. If the body is unavailable, you do not need to set and verify this parameter. Example: Content-Type: application/json;charset=UTF-8 |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
tag_names |
No |
List<String> |
Tag list. If the list is empty, all tags of the job will be deleted. Example: ["tag1", "tag2"] |
Response Parameters
None
Example Request
POST /v2/b384b9e9ab9b4ee8994c8633aabc9505/factory/jobs/myJob/tags { "tag_names": ["tag1"] }
POST /v2/b384b9e9ab9b4ee8994c8633aabc9505/factory/jobs/myJob/tags { "tag_names": [] }
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