- Service Overview
- Getting Started
-
User Guide
- COC Enablement and Permissions Granting
- Overview
-
Application and Resource Management
- Resource Management
-
Application Management
- Creating an Application
- Modifying an Application
- Deleting an Application
- Editing an Application Topology
- Creating a Component
- Modifying a Component
- Deleted a Component
- Creating a Group
- Modifying a Group
- Deleting a Group
- Manually Associating Resources with a Group
- Intelligently Associating Resources with a Group
- Transferring Resources
- Disassociating a Resource from an Application Group
- Viewing Resource Details
- Viewing Capacity Rankings
- Multi-cloud Configurations
- Cross-Account Resources
- Resource O&M
- Automated O&M
- Faults
- Change Management
- Resilience Center
- Task Management
- Basic Configurations
- Viewing Logs
- Best Practices
- API Reference
-
FAQs
- Product Consulting
- Resource Management FAQs
-
FAQs About Resource O&M
-
Patch Management FAQs
- What Can I Do If the Patch Baselines Do Not Take Effect?
- What Are the Differences Between the Installation Rule Baselines And User-defined Baselines?
- What Can I Do If Exception all mirrors were tried Is Recorded in the Patch Service Ticket Log?
- Why Can't I Select a Node?
- What Can I Do If the Compliance Report Still Reports Non-compliance for a Patch After the Patch Has Been Repaired?
- What Can I Do If the lsb_release not found Error Occurs During Patch Operations?
- Automation FAQs
- Batch Operation FAQs
- FAQs About Parameter Management
- Resource O&M Permissions and Supported Actions
-
Patch Management FAQs
- FAQs About Fault Management
- FAQs About Change Ticket Management
- Resilience Center FAQs
- Change History
- General Reference
Show all
Copied.
Creating a Custom Job
The custom job creation and step compilation capabilities are provided.
Scenarios
Create a custom job on COC.
Precautions
Confirm and fill in the risk level of the operation according to the operation procedure.
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 Job Management page
- Click the Custom Jobs tab and click Create Job.
Figure 2 Clicking Create Jobs
- 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
- Orchestrate the job. Job orchestration includes global parameters and job steps.
Figure 5 Orchestrating a job
- Click + Add Parameter to add global parameters. After setting the parameters, click OK.
You can manually set the global parameters or obtain them from the parameter warehouse. If you click Custom, you need to enter the parameter name, preset value, and parameter description. If you click Parameter Warehouse, you need to select the region where the parameter is located, parameter name, and parameter association mode.Figure 6 Selecting Custom and adding global parametersFigure 7 Obtaining and adding Global parameters from the parameter warehouse
Table 1 Parameter association modes Parameter Association Mode
Description
Use the current parameter value in all environments
This parameter is used during job execution. The parameter value is that displayed in the parameter basic information when the parameter is added during job creation.
Use the latest parameter value in the corresponding environment
This parameter is used during job execution. The parameter value is the latest parameter value obtained from the parameter warehouse in real time.
- Click
to add a new step.
Figure 8 Adding a step - Click the step name or
to change the step name.
Figure 9 Changing the step name - If there are unnecessary steps, click
to delete them.
Figure 10 Deleting steps - Click + Add Task to add a task for the step. After the task is added, click OK. After all tasks are added, click OK.
Figure 11 Adding tasks
- Click + Operation Type to set the operation type of the current task. The operation type can be Cloud service API Task, Controls, or Custom Scripts.
- Cloud service API Task: include ECS-related operation atoms, execution APIs, and Wait API. For details about ECS-related operations, see Batch Operations on ECSs.
- Controls: includes review, pause, and sleep.
- Custom Scripts: You can select Execute script or Execute Command. After a custom script is created, a custom atom record is automatically registered.
Figure 12 Selecting an operation type - Based on the selected operation type, specify basic information such as the name and operation description, parameters, and troubleshooting policy, and click OK.
Figure 13 Configuring basic informationFigure 14 Set input parameters.Figure 15 Set the troubleshooting policy.
- After the job orchestration is complete, set the risk level of the job based on the operation risks, set Reviewer Notification Mode, and click Submit.
NOTE:
- Manual Review is enabled by default for jobs whose risk level is High.
- If you select Shift for Reviewer, the users in the current schedule are reviewers. If you select Individual, specify some users as reviewers.
- Notification Mode specifies in which mode the reviewer will be notified of the review request.
Figure 16 Advanced settings
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