文档

ModifyInstance - 修改实例

更新时间:

修改指定实例配置。

调试

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

授权信息

当前API暂无授权信息透出。

请求语法

PUT /v2/openapi/instances/{instanceId}

请求参数

名称类型必填描述示例值
instanceIdstring

实例 ID。

airec-cn-****

返回参数

名称类型描述示例值
object

返回参数。

resultobject

返回参数。

regionIdstring

实例所在的区域。

cn-beijing
typestring

实例类型。

取值:

  • Algorithm_configuration:算法配置版。

  • Industry_operation:行业运营版。

  • Cold_start:冷启动版。

Algorithm_configuration
lockModestring

实例锁定状态。

取值:

  • Unlock:未锁定。

  • ManualLock:手动锁定。

  • LockByExpiration:欠费锁定。

Unlock
expiredTimestring

实例过期时间,单位为 UTC 时间。

2019-01-06T16:00:00.000Z
statusstring

实例运行状态。

取值:

  • Initializing:初始化中。

  • Ready:待数据导入。

  • Running:运行中。

Running
gmtCreatestring

实例创建时间,单位为 UTC 时间。

2018-12-06T06:14:01.000Z
chargeTypestring

实例付费类型。

取值:

  • PREPAY:预付费(包年包月)。

  • POSTPAY:后付费(按量付费)。

POSTPAY
industrystring

实例行业类型。

取值:

  • content:内容型。

  • item:商品型。

  • news:新闻型。

news
commodityCodestring

Airec 商品代码。

airecpre
gmtModifiedstring

实例最后修改时间。

2020-04-23T06:08:48.000Z
dataSetVersionstring

当前实例在线服务的数据集版本。

20181206170353
namestring

实例名称。

实例1
instanceIdstring

实例 ID。

airec-cn-****
codestring

错误码。

200
requestIdstring

请求 ID。

9B5AA8EF-DB75-5BE9-ADFD-E645F9EA7374
messagestring

错误信息。

successful

示例

正常返回示例

JSON格式

{
  "result": {
    "regionId": "cn-beijing",
    "type": "Algorithm_configuration",
    "lockMode": "Unlock",
    "expiredTime": "2019-01-06T16:00:00.000Z",
    "status": "Running",
    "gmtCreate": "2018-12-06T06:14:01.000Z",
    "chargeType": "POSTPAY",
    "industry": "news",
    "commodityCode": "airecpre",
    "gmtModified": "2020-04-23T06:08:48.000Z",
    "dataSetVersion": "20181206170353",
    "name": "实例1",
    "instanceId": "airec-cn-****"
  },
  "code": "200",
  "requestId": "9B5AA8EF-DB75-5BE9-ADFD-E645F9EA7374",
  "message": "successful"
}

错误码

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

变更历史

变更时间变更内容概要操作
暂无变更历史
  • 本页导读 (0)
文档反馈