文档首页/ 主机迁移服务 SMS/ API参考(联盟区域)/ API/ 查询API版本信息/ 查询主机迁移服务指定API版本信息
更新时间:2025-12-08 GMT+08:00

查询主机迁移服务指定API版本信息

功能介绍

查询主机迁移服务指定API版本信息。

调用方法

请参见如何调用API

URI

GET /{version}

表1 路径参数

参数

是否必选

参数类型

描述

version

String

版本信息

最小长度:1

最大长度:10

请求参数

响应参数

状态码:200

表2 响应Body参数

参数

参数类型

描述

id

String

API版本号。

最小长度:0

最大长度:255

links

Array of Link objects

API链接地址信息。

数组长度:0 - 1024

status

String

版本状态。 SUPPORTED表示支持的版本

最小长度:0

最大长度:255

updated

String

版本更新时间。 格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指UTC时间。例如:2018-09-30T00:00:00Z

最小长度:0

最大长度:255

请求示例

获取版本信息。

GET https://{endpoint}/v3

{
  "links" : [ {
    "rel" : "self",
    "href" : "https://{endpoint}/v3"
  } ],
  "id" : "v3",
  "updated" : "2020-09-02T17:50:00Z",
  "status" : "SUPPORTED"
}

响应示例

状态码:200

查询主机迁移服务指定API版本信息成功

{
  "links" : [ {
    "rel" : "self",
    "href" : "https://{endpoint}/v3"
  } ],
  "id" : "v3",
  "updated" : "2020-09-02T17:50:00Z",
  "status" : "SUPPORTED"
}

状态码

状态码

描述

200

查询主机迁移服务指定API版本信息成功

错误码

请参见错误码