获取License使用量。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 |
类型 |
是否必选 |
示例值 |
描述 |
Action | String | 是 | GetOrderUsage | 系统规定参数。取值: |
RelService | String | 是 | MP | 指定购买的优化求解器License类别信息,包含一种类别:
|
ResourceType | Integer | 是 | 1 | 指定购买的求解器版本信息,目前仅支持一种:
|
LicenseKey | String | 是 | eya5169y2bg96zef03s7 | 求解器LicenseKey |
TimeRange | Integer | 否 | 1 |
|
返回数据
名称 |
类型 |
示例值 |
描述 |
Message | String | success | 返回结果信息 |
Data | Array of Object | [{"dateTime":"2021-08-17 15:00:00","actualConcurrency":0,"maxConcurrency":2},{"dateTime":"2021-08-17 16:00:00","actualConcurrency":0,"maxConcurrency":2},{"dateTime":"2021-08-17 17:00:00","actualConcurrency":0,"maxConcurrency":2}] | 数据项,其中具体字段含义如下:
|
RequestId | String | 5D6653C5-CA2B-14EC-9CF0-50AA0FF49C31 | 请求唯一标识 |
Success | Boolean | true | 请求是否成功 |
示例
请求示例
https://opt.cn-beijing.aliyuncs.com/?Action=GetOrderUsage
&ResourceType=1
&RelService=MP
&TimeRange=1
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<GetOrderUsageResponse>
<Message>Success</Message>
<RequestId>B26B09CF-8F7F-1E6D-8E21-CD37A1BB32DB</RequestId>
<Data>
<dateTime>2021-08-17 15:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-17 16:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-17 17:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-17 18:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-17 19:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-17 20:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-17 21:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-17 22:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-17 23:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 00:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 01:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 02:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 03:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 04:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 05:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 06:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 07:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 08:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 09:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 10:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 11:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 12:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 13:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 14:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 15:00:00</dateTime>
<actualConcurrency>0</actualConcurrency>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 16:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 17:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 18:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 19:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 20:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 21:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 22:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-18 23:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-19 00:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-19 01:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-19 02:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-19 03:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-19 04:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-19 05:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-19 06:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-19 07:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-19 08:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-19 09:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-19 10:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-19 11:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-19 12:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-19 13:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-19 14:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Data>
<dateTime>2021-08-19 15:00:00</dateTime>
<maxConcurrency>2</maxConcurrency>
</Data>
<Success>true</Success>
</GetOrderUsageResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"Message" : "Success",
"RequestId" : "B26B09CF-8F7F-1E6D-8E21-CD37A1BB32DB",
"Data" : [ {
"dateTime" : "2021-08-17 15:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-17 16:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-17 17:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-17 18:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-17 19:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-17 20:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-17 21:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-17 22:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-17 23:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 00:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 01:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 02:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 03:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 04:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 05:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 06:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 07:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 08:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 09:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 10:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 11:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 12:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 13:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 14:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 15:00:00",
"actualConcurrency" : 0,
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 16:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 17:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 18:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 19:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 20:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 21:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 22:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-18 23:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-19 00:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-19 01:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-19 02:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-19 03:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-19 04:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-19 05:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-19 06:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-19 07:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-19 08:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-19 09:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-19 10:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-19 11:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-19 12:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-19 13:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-19 14:00:00",
"maxConcurrency" : 2
}, {
"dateTime" : "2021-08-19 15:00:00",
"maxConcurrency" : 2
} ],
"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. | 内部错误。建议重试,如果多次重试报错请提交工单。 |
访问错误中心查看更多错误码。
文档内容是否对您有帮助?