Checks whether a Compute Nest service instance expires.
Usage notes
CheckOutLicense supports only the following service instances:
Service instances for which custom sales configuration is specified
Service instances created through Alibaba Cloud Marketplace
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| ServiceId | string | No | The service ID. | service-1e2e93c150084exxxxxx |
| ServiceInstanceName | string | No | The name of the service instance. | test |
Response parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| RequestId | string | The request ID. | B22723B7-FC31-18F5-A33E-1AF4C82736AA |
| ServiceInstanceId | string | The ID of the service instance. | si-8722386303094axxxxxx |
| LicenseMetadata | string | The metadata defined in the custom sales configuration. | {"TemplateName":"Custom_Image_Ecs","SpecificationName":"","CustomData":"xxxx"} |
| TrialType | string | The trial policy. Valid values:<br>- Trial: trials are supported.<br>- NotTrial: trials are not supported. | NotTrial |
| Token | string | The digital signature. For information about how to verify a digital signature, see Verify a digital signature. | 58d4574bd0d967bb431cd8936b5e80c4 |
| ExpireTime | string | The time when the service instance expires. | 2023-08-28T06:27:08Z |
| ServiceId | string | The service ID. | service-1e2e93c150084exxxxxx |
| Components | string | The additional billing items of Alibaba Cloud Marketplace. | {"package_version":"yuncode55xxxxxxxx","SystemDiskSize":"40","DataDiskSize":"100"} |
Error codes
| Error code | Error message | Description |
|---|---|---|
| EntityNotExist.Service | The provided parameter "ServiceId" is invalid. | The specified service ID is invalid. |
| EntityNotExist.ServiceInstance | The specified service instance cannot be found. | The service instance does not exist. The service instance is not an Elastic Compute Service (ECS) instance created by Compute Nest. |
| LicenseExpired | The license of the current service instance ${serviceInstanceId} has expired. | The pay-as-you-go service instance has overdue payments or failed verification. |
| LicenseExpired | The license of the current service instance ${serviceInstanceId} has expired. expired time ${Time}. | The non-pay-as-you-go service instance has expired. |
| LicenseExpired | The service instance Prometheus is deleted. | The Prometheus instance associated with the service instance is deleted. |
Examples
Call CheckOutLicense to check the validity period of a service instance and whether payments are overdue. For a complete example, see Check the validity period of a service instance.
该文章对您有帮助吗?