全部產品
Search
文件中心

Optimization Solver:查詢購買License的資訊

更新時間:Feb 28, 2025

擷取購買License的資訊。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

請求參數

名稱

類型

是否必選

樣本值

描述

Action String GetOrderInfo

系統規定參數。取值:GetOrderInfo

RelService String MP

指定購買的最佳化求解器License類別資訊,包含一種類別:

  • MP:數學規劃
ResourceType Integer 1

指定購買的求解器版本資訊,目前僅支援一種:

  • 1:本地運行版
ListReleased Boolean true

是否包含已釋放的執行個體

返回資料

名稱

類型

樣本值

描述

Code String 0

返回結果碼

Message String success

返回結果資訊

Data Array of data

返回業務資料,licenseKey:授權認證key;currentConcurrency:並發度;instanceId:執行個體id;totalDays:總購買天數;currentDays:當前剩餘天數。

currentConcurrency Integer 1

並發度

totalDays Integer 10

總購買天數

currentDays Integer 1

當前剩餘天數。

licenseKey String xxxxxxxx

授權認證key

instanceId String opt_mplicense_public_cn-xxxxxx

執行個體id

bizType String 0

商品類型

remark String remark

執行個體備忘

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. 內部錯誤。建議重試,如果多次重試報錯請提交工單。

訪問錯誤中心查看更多錯誤碼。