文档首页> 统一身份认证服务 IAM> API参考> API> 版本信息管理> 查询Keystone API的3.0版本信息
更新时间:2023-07-05 GMT+08:00

查询Keystone API的3.0版本信息

功能介绍

该接口用于查询Keystone API的3.0版本的信息。

该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:地区和终端节点

URI

GET /v3

请求参数

响应参数

表1 响应Body参数

参数

参数类型

描述

version

Object

Keystone API的3.0版本信息。

表2 version

参数

参数类型

描述

status

String

版本状态。

updated

String

最后更新时间。

links

Array of objects

版本的资源链接信息。

id

String

版本号,如v3.6。

media-types

Array of objects

支持的消息格式。

表3 version.links

参数

参数类型

描述

rel

String

链接类型。self:自助链接包含了版本链接的资源。bookmark:书签链接提供了一个永久资源的永久链接。alternate:备用链接包含了资源的替换表示形式。

href

String

资源链接地址。

表4 version.media-types

参数

参数类型

描述

type

String

媒体类型。

base

String

基础类型。

请求示例

查询Keystone API的3.0版本信息。

GET https://iam.myhuaweicloud.com/v3

响应示例

状态码为 200 时:

请求成功。

{
    "version": {
        "media-types": [
            {
                "type": "application/vnd.openstack.identity-v3+json",
                "base": "application/json"
            }
        ],
        "links": [
            {
                "rel": "self",
                "href": "https://iam.myhuaweicloud.com/v3/"
            }
        ],
        "id": "v3.6",
        "updated": "2016-04-04T00:00:00Z",
        "status": "stable"
    }
}

返回值

返回值

描述

200

请求成功。

400

参数无效。

404

未找到相应的资源。

503

服务不可用。

错误码