CheckOutLicense

更新时间:
复制 MD 格式

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

ParameterTypeRequiredDescriptionExample
ServiceIdstringNoThe service ID.service-1e2e93c150084exxxxxx
ServiceInstanceNamestringNoThe name of the service instance.test

Response parameters

ParameterTypeDescriptionExample
RequestIdstringThe request ID.B22723B7-FC31-18F5-A33E-1AF4C82736AA
ServiceInstanceIdstringThe ID of the service instance.si-8722386303094axxxxxx
LicenseMetadatastringThe metadata defined in the custom sales configuration.{"TemplateName":"Custom_Image_Ecs","SpecificationName":"","CustomData":"xxxx"}
TrialTypestringThe trial policy. Valid values:<br>- Trial: trials are supported.<br>- NotTrial: trials are not supported.NotTrial
TokenstringThe digital signature. For information about how to verify a digital signature, see Verify a digital signature.58d4574bd0d967bb431cd8936b5e80c4
ExpireTimestringThe time when the service instance expires.2023-08-28T06:27:08Z
ServiceIdstringThe service ID.service-1e2e93c150084exxxxxx
ComponentsstringThe additional billing items of Alibaba Cloud Marketplace.{"package_version":"yuncode55xxxxxxxx","SystemDiskSize":"40","DataDiskSize":"100"}

Error codes

Error codeError messageDescription
EntityNotExist.ServiceThe provided parameter "ServiceId" is invalid.The specified service ID is invalid.
EntityNotExist.ServiceInstanceThe 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.
LicenseExpiredThe license of the current service instance ${serviceInstanceId} has expired.The pay-as-you-go service instance has overdue payments or failed verification.
LicenseExpiredThe license of the current service instance ${serviceInstanceId} has expired. expired time ${Time}.The non-pay-as-you-go service instance has expired.
LicenseExpiredThe 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.