華為云計算 云知識 查詢鏡像成員列表視圖(OpenStack原生)GlanceListImageMemberSchemas
查詢鏡像成員列表視圖(OpenStack原生)GlanceListImageMemberSchemas

 

功能介紹

該接口主要用于查詢 鏡像 成員列表視圖,通過視圖,用戶可以了解到鏡像成員包含哪些屬性,同時也可以了解每個屬性的數據類型。

調試

您可以在API Explorer中調試該接口。

URI

GET /v2/schemas/members

請求消息

請求參數

請求示例

查詢鏡像成員列表視圖。

GET https://{Endpoint}/v2/schemas/members

響應消息

  • 響應參數

    參數

    參數類型

    描述

    name

    String

    視圖名稱。

    links

    Array of objects

    視圖鏈接。

    詳情請參見表1。

    properties

    Object

    鏡像屬性說明,主要是對基礎屬性的說明,包含每個屬性的取值類型,用途。

    具體參數說明可參考鏡像屬性

    表1 links字段說明

    參數

    參數類型

    描述

    href

    String

    域名。

    rel

    String

    域名描述。

  • 響應樣例
    STATUS CODE 200
    {
        "name": "members",
        "links": [
            {
                "href": "{schema}",
                "rel": "describedby"
            }
        ],
        "properties": {
            "members": {
                "items": {
                    "name": "member",
                    "properties": {
                        "status": {
                            "enum": [
                                "pending",
                                "accepted",
                                "rejected"
                            ],
                            "type": "string",
                            "description": "The status of this image member"
                        },
                        "created_at": {
                            "type": "string",
                            "description": "Date and time of image member creation"
                        },
                        "updated_at": {
                            "type": "string",
                            "description": "Date and time of last modification of image member"
                        },
                        "image_id": {
                            "pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$",
                            "type": "string",
                            "description": "An identifier for the image"
                        },
                        "member_id": {
                            "type": "string",
                            "description": "An identifier for the image member (tenantId)"
                        },
                        "schema": {
                            "readOnly": true,
                            "type": "string"
                        }
                    }
                },
                "type": "array"
            },
            "schema": {
                "type": "string"
            }
        }
    }
    

返回值

  • 正常

    200

  • 異常

    返回值

    說明

    400 Bad Request

    請求錯誤。

    401 Unauthorized

    鑒權失敗。

    403 Forbidden

    沒有操作權限。

    404 Not Found

    找不到資源。

    500 Internal Server Error

    服務內部錯誤。

    503 Service Unavailable

    服務不可用。