Setting an Agency for Executing Multiple Tasks
Function
This API is used to set an agency for executing multiple tasks. Once configured, you can perform builds using this agent's identity.
Calling Method
For details, see Calling APIs.
URI
POST /v1/job/batch-agency
Request Parameters
Parameter | Mandatory | Type | Description |
|---|---|---|---|
job_ids | Yes | Array of strings | Definition A list of job_ids. Constraints N/A. Range Build task ID. Default Value N/A. |
agency_urn | No | String | Definition Agency URN. It can be obtained from IAM. Constraints N/A Range It is left blank by default. |
Response Parameters
Status code: 200
Parameter | Type | Description |
|---|---|---|
status | String | Definition API response status. Range ● success: The API call is successful. ● fail: The API call failed. |
error | Object | Definition Error message. Range N/A. |
result | String | Definition Data returned after the API is successfully called. Range N/A. |
Example Requests
POST https://{endpoint}/v1/job/batch-agency
{
"job_ids" : [ "436ab57485c94629b60d5c5fb02cb037", "34b1146d863044b6ade25d527169330d" ],
"agency_urn" : "iam::60021bab32fd450aa2cb89226f425e06:agency:build_admin_trust"
} Example Responses
Status code: 200
OK
{
"status" : "success"
} Status Codes
Status Code | Description |
|---|---|
200 | OK |
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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot
