All Products
Search
Document Center

:ActivateLicense

Last Updated:Nov 25, 2024

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

ParameterTypeRequiredExampleDescription
ActionStringYesActivateLicense

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

LicenseCodeStringYesAPSEDH8TA5CSGK-********_6CNTACBH9EQPOATFXJQL4B2COE7M43VVQ7GUGKAA

The license to activate.

IdentificationStringNo129****1111

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

Response parameters

ParameterTypeExampleDescription
RequestIdString6EF60BEC-0242-43AF-BB20-270359FB54A7

The ID of the request.

SuccessBooleantrue

Indicates whether the call of the operation was successful.

Examples

Sample requests

http(s)://market.ap-southeast-1.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 codeError codeError messageDescription
400Auth.CallerTypeRAM users or STS tokens are not supported.The error message returned because RAM users or STS tokens are not supported.
400License.InvalidThe specified license is invalid.The error message returned because the specified license is invalid.
400License.ExpiredThe specified license has expired.The error message returned because the specified license has expired.
400License.DiscardThe specified license has been discarded.The error message returned because the specified license has been discarded.
400License.NotFoundThe specified license does not exist.The error message returned because the specified license does not exist.
400Auth.ISVOnly ISV accounts are allowed to call the specified API operation.The error message returned because only ISV accounts are allowed to call the operation.
400Auth.MatchThe 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.
400Auth.AuthorizedThe 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.