Execute API
The atomic action can be used to invoke the OpenAPI of a cloud service registered with the API Explorer. If the OpenAPI is an asynchronous call, you can use the atomic action of Wait API to wait for the target object to reach the expected state.
Procedure
- Log in to COC.
- In the navigation pane on the left, choose Resource O&M > Automated O&M. In the Routine O&M area, click Jobs.
Figure 1 Jobs
- Click the Custom Jobs tab and click Create Job.
Figure 2 Clicking Create Job
- Enter the basic job information. You can follow the steps in section Managing Tags to create a tag. After the required parameters are set, click Next.
Figure 3 Entering basic job information
- Select a job template. If no proper template is available, click Customize, and click Next.
Figure 4 Selecting a job template
- Perform job orchestration. Click + Add Task, and click + Operation Type. On the displayed dialog box, click Execute API.
Figure 5 Adding tasks
- Enter the task name and operation description.
Figure 6 Configuring basic information
- Click Input, select service (product short name) and apiName (API name),
and set the required OpenAPI parameters.
Figure 7 Adding input information
- Click Output and configure the output content as required. For example, you can add slow_log_list in the API response as the parameter of the string type, and name it outputValue. If output parameters are not required, you do not need to add output parameters.
Figure 8 Adding output information
- Click Troubleshooting and configure the policy for the action upon an execution error: Terminate Job or Go to Next Step.
Figure 9 Adding troubleshooting policy
- Click OK.
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