文档

查询License状态

更新时间:

本接口用于无影应用中心轮询查询ISV创建软件License的状态。

接口说明

创建License的过程中,无影应用中心需要轮询查询License状态,直到返回License创建成功或者创建失败。

请求参数

名称

类型

是否必选

示例值

描述

action

String

QUERY_ORDER

请求操作类型。取值:QUERY_ORDER。

orderId

Long

123451****

订单ID。

请求示例如下:

{
   "action": "QUERY_ORDER",
   "orderId": 123451****
}

返回数据

名称

类型

示例值

描述

isvOrderStatus

String

DEPLOYED

License状态。可能值:

  • CREATING:创建中

  • DEPLOYED:创建成功

  • DEPLOY_FAILED:创建失败

licenseInfo

Array

{"effet":true,"licenseUserCount":10}

如果创建成功,则返回License相关信息集合。

effect

Boolean

true

是否生效License。

licenseUserCount

Integer

10

License包含的用户数。

startTime

Long

1625097600

License生效时间,格式为Unix时间戳。

endTime

Long

1656633600

License到期时间,格式为Unix时间戳。

errorMessage

String

err msg description

如果创建失败,则返回具体的错误信息。

errorCode

String

XXX_YYY

如果创建失败,则返回具体的错误码。

返回示例如下:

  • 创建中

    {
        "isvOrderStatus": "CREATING",
        "licenseInfo": null,
        "errorMessage": null,
        "errorCode": null
    }
  • 创建成功

    {
          "isvOrderStatus": "DEPLOYED",
          "licenseInfo": {
          "effect": true,
          "licenseUserCount": 10,
          "startTime": 1625097600,
          "endTime": 1656633600,
        },
        "errorMessage": null,
        "errorCode": null
    }
  • 创建失败

    {
        "isvOrderStatus": "DEPLOY_FAILED",
        "licenseInfo": null,
        "errorMessage": "err msg description",
        "errorCode": "XXX_YYY"
    }

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