You can configure custom sales settings for a private service as a service provider. This allows you to specify the validity period of the service instances that are created based on the private service. This also allows you to customize the data that can be accessed by applications or software for the private service instances. The data that you customize is called custom metadata. This topic describes how to configure and modify custom sales settings for a private service as a service provider.
Limits
You can configure custom sales settings only for private services.
The validity period is applicable to private service instances that are created in Compute Nest.
Custom metadata is applicable to private service instances that are created in Alibaba Cloud Marketplace or Compute Nest.
Configure or modify custom sales settings
Configure or modify the custom sales settings, such as validity period or custom metadata, for a private service.
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, find the private service for which you want to configure custom sales settings.
Click the service name to go to the Service Details page. In the Sales Configuration section of the Service Details tab, click Custom Sales Configuration.

Configure custom sales settings.
In the Custom Sales Configuration dialog box, turn on Custom Sales Configuration.
Set the Validity Period parameter.
NoteYou can set the validity period to up to 1,000 days. When the validity period of a service instance ends, the resources in the service instance are not released.
Click Add Metadata. In the Add Metadata dialog box, configure the following parameters, and click OK.
Template: the template that you used to create the service.
Plan: the parameter set that you configured when you created the service. If no parameter set is available, you can leave the Plan parameter empty. If at least one parameter set is available, you must set this parameter.
Custom Metadata: the data that you customized.
NoteAfter you define the custom metadata, you can call the CheckOutLicense operation in the software deployed in the service instance to query the defined custom metadata.
Test and publish the service.
NoteIf the service has been published, skip this step. You can directly create a service instance.
Test the created service to ensure that the service is available. For more information, see Test a service.
Submit the service for review. After the service passes the review, publish the service. For more information, see Publish a service.
Create a service instance.
You must create a service instance based on the service to verify whether the custom sales settings are valid. If the validity period of the service instance is displayed on the Create Service Instance page, the custom sales settings are valid. For more information about how to create a service instance, see the "Create a service instance in the Compute Nest console" section of the Create a private service instance topic.
ImportantThe custom sales settings that you configure or modify take effect only for the service instances that are created after the custom sales settings are configured or modified.
You cannot modify the custom sales settings of a service instance that is created before the custom sales settings are configured.
You can modify the custom sales settings of a service instance that is created before the custom sales settings are modified. For more information, see the Modify the custom sales settings of a service instance section of this topic.

Modify the custom sales settings of a service instance
You can modify the validity period and custom metadata of a service instance created by a customer. If the service instance expires and your customer still wants to use the service instance, you can extend the validity period of the service instance.
Log on to the Compute Nest console.
In the left-side navigation pane, click Service Instance.
On the Service Instance page, click the Customer's Service Instances tab. On the Customer's Service Instances tab, click the Private Service tab. On the Private Service tab, find the service instance that your customer created.
Click Modify Custom Sales Configurations in the Actions column.

In the Modify Custom Sales Configurations dialog box, modify the parameters and click OK.
Modify Validity Period: If you turn on Modify Validity Period, you can directly terminate the license of the service instance or extend the validity period of the service instance.
You can extend the validity period of the service instance by day or by date.
Modify Custom Metadata: Enter the custom metadata that limits the usage of the service instance.
