You can customize O&M operations that can be performed on service instances as a service provider when you create a private service. For example, you can use a CloudOps Orchestration Service (OOS) O&M template to implement automated O&M or embed the URL of the O&M manual. This topic describes how to configure custom O&M operations as a service provider.
Background information
The O&M management feature of Compute Nest allows you to customize O&M operations. When you create a service, you can customize an O&M template or an O&M manual based on the features of the service. This helps your customers perform O&M operations on service instances.
After a customer creates a service instance, the customer can perform O&M operations on the service instance in the Compute Nest console. O&M operations can be performed by using common O&M management templates such as Elastic Scaling, Bulky Start Instances, and Upload File. Service providers and customers can customize O&M operations.
You can customize O&M operations by using one of the following methods:
Add an OOS template: You can customize an OOS template to perform O&M operations. You can manually import a template, select an existing custom template, or enter the URL of a template. For more information about how to create a template, see Create a template.
Embed the URL of the O&M manual: You can embed the URL of the O&M manual in the console. Customers can perform O&M operations on service instances based on the content described in the O&M manual.
Configure custom O&M operations
Log on to the Compute Nest console.
In the left-side navigation pane, click My Services. On the Created Services tab of the My Services page, click Create Service.
On the Create Service page, select Private Service in the Select Service Type section and configure the service information.
In this example, only the parameters that are required to configure custom O&M operations are described. For more information about other parameters, see Create a private service.
In the Service O&M (Optional) section, click Add O&M Operation.
In the Add O&M Operation dialog box, configure the parameters.
You can configure parameters on the Custom O&M Items or Basic O&M Items tab.
On the Custom O&M Items tab, select OOS Template or Page URL.
If you select OOS Template, you must configure the parameters that are described in the following table.
Parameter
Description
Operation Name
The name of the O&M operation.
Operator
The operator who performs the custom O&M operation. Valid values: All and Customer.
If you set the Operator parameter to All, the service provider and the customers have the permissions to perform the O&M operation. If you set the Operator parameter to Customer, the customers have the permissions to perform the O&M operation.
Import Method
The method that is used to import the OOS template. Valid values: Manual Import, Custom Template, and Template URL.
If you set the Import Method parameter to Manual Import, you must manually enter the content of the OOS template in the Template Content field.
If you set the Import Method parameter to Custom Template, you must select a region and a custom template. The content is automatically entered in the Template Content field.
If you set the Import Method parameter to Template URL, you must enter a valid HTTP or HTTPS URL of a template and click Verify URL. After the template URL is verified, the template content is automatically entered in the Template Content field.
If you select Page URL, you must configure the parameters that are described in the following table.
Parameter
Description
Operation Name
The name of the O&M operation.
Operator
The operator who performs the custom O&M operation. Valid values: All and Customer.
URL of Custom O&M Operations Page
The URL of the O&M manual provided by the service provider. You can enter a fixed URL or use the
{{output}}variable to reference the output parameter in the service template.
On the Basic O&M Items tab, select the basic O&M operations that you want to enable, including start, stop, and restart.
The basic O&M operations that you need to enable vary based on the service scenarios.
If the service is created by using Elastic Compute Service (ECS), the basic O&M operations are performed to start or stop the ECS instance.
If the service is created by using Container Service for Kubernetes (ACK), select the parameter that specifies the number of pod replicas. To stop the service, change the value of the selected parameter to 0. To restart the service, restore the value of the selected parameter to the original value.
Click Create Service. In the dialog box that appears, select the check boxes and click OK.
Perform O&M operations on the service instance
After the service instance is deployed, customers can perform O&M operations preset by the service provider or common O&M operations on the service instance on the O&M Management tab of the Service Instance Details page.