All Products
Search
Document Center

Compute Nest:CheckOutLicense

Last Updated:Mar 27, 2025

Checks whether a Compute Nest service instance expires.

Usage notes

The CheckOutLicense operation supports only service instances for which custom sales configuration is specified or that are created by using 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.

This data is defined in the custom sales configuration.

{\"TemplateName\":\"Custom_Image_Ecs\",\"SpecificationName\":\"\",\"CustomData\":\"xxxx\"}

TrialType

string

The trial policy. Valid values:

  • Trial: Trials are supported.

  • NotTrial: Trials are not supported.

NotTrial

Token

string

The digital signature. For more 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 does not pass the verification.

The license of the current service instance ${serviceInstanceId} has expired. expired time ${Time}.

The non-pay-as-you-go service instance has expired.

The service instance Prometheus is deleted.

The Prometheus instance corresponding to the service instance is deleted.

Example

You can call the CheckOutLicense operation to check the validity period of a service instance and whether a service instance has overdue payments. For more information about the example of calling the CheckOutLicense operation, see Check the validity period of a service instance.