文档

查询购买License的信息

获取购买License的信息。

调试

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

请求参数

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

系统规定参数。取值:GetOrderInfo

RelService String MP

指定购买的优化求解器License类别信息,包含一种类别:

  • MP:数学规划
ResourceType Integer 1

指定购买的求解器版本信息,目前仅支持一种:

  • 1:本地运行版

返回数据

名称 类型 示例值 描述
Code String 0

返回结果码

Message String success

返回结果信息

Data Map

返回业务数据,licenseKey:授权证书key;currentConcurrency:并发度;instanceId:实例id;totalDays:总购买天数;currentDays:当前剩余天数。

RequestId String 5D6653C5-CA2B-14EC-9CF0-50AA0FF49C31

请求唯一标识

Success Boolean true

请求是否成功

示例

请求示例

https://opt.cn-beijing.aliyuncs.com?Action=GetOrderInfo
&ResourceType=1
&RelService=MP
&<公共请求参数>

正常返回示例

XML格式

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

<GetOrderInfoResponse>
    <Message>Success</Message>
    <RequestId>3FCE6765-742C-1CE7-A44B-83D35C07F286</RequestId>
    <Data>
        <licenseKey>eems7ri3b1u5nuil***</licenseKey>
        <currentConcurrency>2</currentConcurrency>
        <instanceId>opt_mplicense_public_cn-****</instanceId>
        <totalDays>124</totalDays>
        <currentDays>103</currentDays>
    </Data>
    <Code>0</Code>
    <Success>true</Success>
</GetOrderInfoResponse>

JSON格式

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

{
  "Message" : "Success",
  "RequestId" : "3FCE6765-742C-1CE7-A44B-83D35C07F286",
  "Data" : {
    "licenseKey" : "eems7ri3b1u5nuil***",
    "currentConcurrency" : 2,
    "instanceId" : "opt_mplicense_public_cn-****",
    "totalDays" : 124,
    "currentDays" : 103
  },
  "Code" : 0,
  "Success" : true
}

错误码

HttpCode 错误码 错误信息 描述
400 InvalidParameter The parameter is invalid. Please check again. 参数校验不通过,请检查参数的合法性。
401 LicenseKeyInvaild The license key format is invalid, or the license key does not belong to the user. 授权证书格式错误,或者不属于此用户
403 Unauthorized The user has not passed RAM verification and is not authorized to perform the operation. RAM权限校验未通过,用户无法执行此操作
409 ConcurrencyOverLimit The concurrency exceeds the upper limit allowed by the license key. 并发数超过了此授权证书允许的最大值。
410 LicenseKeyExpired LicenseKey has expired. 授权证书已过期。
500 InternalError The request processing has failed due to some unknown error. 内部错误。建议重试,如果多次重试报错请提交工单。

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

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