本接口支持查询图片服务的开通状态详情,支持返回账号 ID、已购商品和已购商品配置等信息。
说明
该接口属于历史版本 API,建议您使用新版 GetImageServiceSubscription 接口。
说明
veImageX 在全球多个区域部署,每个区域有自己对应的 OpenAPI 域名,不支持跨区域调用。具体详情请查看服务地址。
以下请求参数列表仅列出了该接口的部分公共参数,完整公共参数列表见公共参数。
| 参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| Action | String | 是 | 接口名称。 |
| Version | String | 是 | 接口版本。veImageX 当前 API 的版本为 2018-08-01。 |
| 参数 | 类型 | 描述 |
|---|---|---|
| AccountId | String | 账号 ID。 |
| InstanceId | String | 开通后的实例 ID。 |
| Product | String | 购买的商品,仅返回参数imagex。 |
| Configuration | String | 购买的商品配置,如imagex.monthly.bandwidth表示按月结算的带宽计费方式。 |
InstanceType | Integer | 实例类型,取值如下所示:
|
| BeginTime | String | 生效开始时间,日期格式按照ISO8601表示法,格式为:YYYY-MM-DDThh:mm:ss±hh:mm,比如2019-06-02T00:00:00+08:00。 |
| ExpiredTime | String | 生效结束时间,日期格式按照ISO8601表示法,格式为:YYYY-MM-DDThh:mm:ss±hh:mm,比如2019-06-02T00:00:00+08:00。 |
BusinessStatus | Integer | 使用状态,取值如下所示:
|
Status | Integer | 实例状态,取值如下所示:
|
| EventTime | String | 待生效事件时间。如BusinessStatus取值为3时,表示更配生效时间。 |
GET https://imagex.volcengineapi.com/?Action=GetImageServiceSubscription&Version=2018-08-01
{ "ResponseMetadata": { "RequestId": "20201203200011010008061205150A7CC4", "Action": "GetImageServiceSubscription", "Version": "2018-08-01", "Service": "imagex", "Region": "cn-north-1" }, "Result": { "AccountId": "2000000409", "InstanceId": "ImageX6623822620858736*", "Product": "imagex", "Configuration": "imagex.monthly.bandwidth", "InstanceType": 2, "BeginTime": "2020-01-17T14:26:18+08:00", "ExpiredTime": "2200-01-01T00:00:00+08:00", "BusinessStatus": 0, "Status": 1 } }
{ "ResponseMetadata": { "RequestId": "202012032000330100120200981F0A58EE", "Action": "GetImageServiceSubscription", "Version": "2018-08-01", "Service": "imagex", "Region": "cn-north-1" "Error": { "CodeN": 601001, "Code": "", "Message": "account subscription not found" } }, "Result": null }