文档

获取所有服务的开通状态

获取优化求解器内所有服务的开通状态,目前包含数学规划服务。

调试

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

请求参数

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

系统规定参数。取值:GetOpenStatus

返回数据

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

结果状态码

Message String success

结果消息

Data Map

详细数据,mpStatus:数学规划服务开通状态,1开通,0未开通;pk:云账号id;parentPk:父账号id。

RequestId String 0EB-FCAC-1B78-BBB8-500ED951E9EB

请求唯一标识

Success Boolean true

请求是否成功

示例

请求示例

https://opt.cn-beijing.aliyuncs.com/?Action=GetOpenStatus
&<公共请求参数>

正常返回示例

XML格式

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

<GetOpenStatusResponse>
    <Message>Success</Message>
    <RequestId>D66E40EB-FCAC-1B78-BBB8-500ED951E9EB</RequestId>
    <Data>
        <gmtModified>2021-07-27T04:00:00.000+00:00</gmtModified>
        <mpStatus>1</mpStatus>
        <id>11</id>
        <pk>1084126944995576</pk>
        <gmtCreate>2021-07-27T04:00:00.000+00:00</gmtCreate>
        <parentPk>1084126944995576</parentPk>
    </Data>
    <Code>0</Code>
    <Success>true</Success>
</GetOpenStatusResponse>

JSON格式

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

{
  "Message" : "Success",
  "RequestId" : "D66E40EB-FCAC-1B78-BBB8-500ED951E9EB",
  "Data" : {
    "gmtModified" : "2021-07-27T04:00:00.000+00:00",
    "mpStatus" : 1,
    "id" : 11,
    "pk" : "1084126944995576",
    "gmtCreate" : "2021-07-27T04:00:00.000+00:00",
    "parentPk" : "1084126944995576"
  },
  "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)
文档反馈