调用 ActivateLicense 激活授权码。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String ActivateLicense

系统规定参数。取值:ActivateLicense。

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

授权码。

Identification String 129****1111

激活的身份信息,用户的 aliyunUid。

返回数据

名称 类型 示例值 描述
RequestId String 6EF60BEC-0242-43AF-BB20-270359FB54A7

请求 ID

Success Boolean true

成功状态标识

示例

请求示例

http(s)://market.aliyuncs.com/?Action=ActivateLicense
&LicenseCode=APSEDH8TA5CSGK-********_6CNTACBH9EQPOATFXJQL4B2COE7M43VVQ7GUGKAA
&Identification=129****1111
&<公共请求参数>

正常返回示例

XML 格式

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

JSON 格式

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

错误码

HttpCode 错误码 错误信息 描述
400 Auth.CallerType RAM users or STS tokens are not supported. 不支持子账号或 STS 账号调用
400 License.Invalid The specified license is invalid. 无效的授权码
400 License.Expired The specified license has expired. 授权码已过期
400 License.Discard The specified license has been discarded. 授权码已废弃
400 License.NotFound The specified license does not exist. 授权码不存在
400 Auth.ISV Only ISV accounts are allowed to call the specified API operation. 非服务商账号,仅供服务商账号调用
400 Auth.Match The product to be enabled by the specified license does not belong to the ISV. 授权码对应的商品不属于该服务商
400 Auth.Authorized The specified RAM user is not authorized. 子账号没有授权

访问错误中心查看更多错误码。