You can call this operation to activate a license.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ActivateLicense

The operation that you want to perform. Set the value to ActivateLicense.

LicenseCode String Yes APSEDH8TA5CSGK-********_6CNTACBH9EQPOATFXJQL4B2COE7M43VVQ7GUGKAA

The license to activate.

Identification String No 129****1111

The unique ID (aliyunUid) of the Alibaba Cloud account for which the license is to be activated.

Response parameters

Parameter Type Example Description
RequestId String 6EF60BEC-0242-43AF-BB20-270359FB54A7

The ID of the request.

Success Boolean true

Indicates whether the call of the operation was successful.

Examples

Sample requests

http(s)://market.aliyuncs.com/? Action=ActivateLicense
&LicenseCode=APSEDH8TA5CSGK-********_6CNTACBH9EQPOATFXJQL4B2COE7M43VVQ7GUGKAA
&Identification=129****1111
&<Common request parameters>

Sample success responses

XML format

<ActivateLicenseResponse>
  <RequestId>6EF60BEC-0242-43AF-BB20-270359FB54A7</RequestId>
  <Success>true</Success>
</ActivateLicenseResponse>

JSON format

{
    "RequestId": "6EF60BEC-0242-43AF-BB20-270359FB54A7",
    "Success": "true"
}

Error codes

HTTP status code Error code Error message Description
400 Auth.CallerType RAM users or STS tokens are not supported. The error message returned because RAM users or STS tokens are not supported.
400 License.Invalid The specified license is invalid. The error message returned because the specified license is invalid.
400 License.Expired The specified license has expired. The error message returned because the specified license has expired.
400 License.Discard The specified license has been discarded. The error message returned because the specified license has been discarded.
400 License.NotFound The specified license does not exist. The error message returned because the specified license does not exist.
400 Auth.ISV Only ISV accounts are allowed to call the specified API operation. The error message returned because only ISV accounts are allowed to call the operation.
400 Auth.Match The product to be enabled by the specified license does not belong to the ISV. The error message returned because the product to be activated by using the specified license does not belong to the ISV.
400 Auth.Authorized The specified RAM user is not authorized. The error message returned because the specified RAM user is not authorized.

For a list of error codes, visit the API Error Center.