文档

DescribeLicense

更新时间:
一键部署

查询激活码信息

调试

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

请求参数

名称

类型

是否必选

示例值

描述

Action String DescribeLicense

系统规定参数。取值:DescribeLicense

LicenseCode String xxxxxx

激活码

返回数据

名称

类型

示例值

描述

RequestId String 6EF60BEC-0242-43AF-BB20-270359FB54A7

请求 ID

License Object

激活码对象

ActivateTime String 2019-05-25 09:00:00

激活时间

LicenseStatus String ACTIVATED

激活码状态

  • ACTIVATED
  • INACTIVATED
  • DISCARD
  • EXPIRED
ProductName String LNMP环境

商品名称

ExpiredTime String 2019-06-25 09:00:00

过期时间

ProductSkuId String cmgj02****-prepay

商品规格ID

CreateTime String 2019-05-25 09:00:00

创建时间

LicenseCode String -

激活码

InstanceId String 1551111111

业务实例ID

SupplierName String **科技股份有限公司

供应商名称

ProductCode String cmgj02****

商品Code

ExtendArray Array of LicenseAttribute

扩展对象数组

LicenseAttribute
Code String package_version:对应商品规格code;orderBizId:云市场实例ID;activeAddress:激活地址;orderId:包含新购和续费订单ID,逗号分割;aliUid:用户阿里云Uid;expiresTime:授权码过期时间;

对象code

Value String -

对象值

ExtendInfo Object

扩展属性

AliUid Long 190311111111****

阿里云UID

AccountQuantity Long -

账号信息

Email String id***@**.com

邮箱

Mobile String 129****1111

电话

示例

请求示例

http(s)://[Endpoint]/?Action=DescribeLicense
&LicenseCode=xxxxxx
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeLicenseResponse>
    <RequestId>6EF60BEC-0242-43AF-BB20-270359FB54A7</RequestId>
    <License>
        <ActivateTime>2019-05-25 09:00:00</ActivateTime>
        <LicenseStatus>ACTIVATED</LicenseStatus>
        <ProductName>LNMP环境</ProductName>
        <ExpiredTime>2019-06-25 09:00:00</ExpiredTime>
        <ProductSkuId>cmgj02****-prepay</ProductSkuId>
        <CreateTime>2019-05-25 09:00:00</CreateTime>
        <LicenseCode>-</LicenseCode>
        <InstanceId>1551111111</InstanceId>
        <SupplierName>**科技股份有限公司</SupplierName>
        <ProductCode>cmgj02****</ProductCode>
        <ExtendArray>
            <Code>-</Code>
            <Value>-</Value>
        </ExtendArray>
        <ExtendInfo>
            <Email>id***@**.com</Email>
            <Mobile>129****1111</Mobile>
        </ExtendInfo>
    </License>
</DescribeLicenseResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "6EF60BEC-0242-43AF-BB20-270359FB54A7",
  "License" : {
    "ActivateTime" : "2019-05-25 09:00:00",
    "LicenseStatus" : "ACTIVATED",
    "ProductName" : "LNMP环境",
    "ExpiredTime" : "2019-06-25 09:00:00",
    "ProductSkuId" : "cmgj02****-prepay",
    "CreateTime" : "2019-05-25 09:00:00",
    "LicenseCode" : "-",
    "InstanceId" : "1551111111",
    "SupplierName" : "**科技股份有限公司",
    "ProductCode" : "cmgj02****",
    "ExtendArray" : [ {
      "Code" : "-",
      "Value" : "-"
    } ],
    "ExtendInfo" : {
      "Email" : "id***@**.com",
      "Mobile" : "129****1111"
    }
  }
}

错误码

HttpCode

错误码

错误信息

描述

400 Auth.SubAccount.Error The specified AccessKey information does not belong to the RAM user. 该AccessKey不是子账号的AccessKey。
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.Error 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. 子账号没有授权。

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

  • 本页导读 (0)
文档反馈