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

 

功能介紹

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

調(diào)試

您可以在API Explorer中調(diào)試該接口。

URI

GET /v2/schemas/member

請求消息

請求參數(shù)

請求示例

查詢鏡像成員視圖。

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

響應(yīng)消息

  • 響應(yīng)參數(shù)

    參數(shù)

    參數(shù)類型

    描述

    name

    String

    視圖名稱。

    properties

    Object

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

    具體參數(shù)說明可參考鏡像屬性

  • 響應(yīng)樣例
    STATUS CODE 200
    {
        "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"
            }
        }
    }
    

返回值

  • 正常

    200

  • 異常

    返回值

    說明

    400 Bad Request

    請求錯誤。

    401 Unauthorized

    鑒權(quán)失敗。

    403 Forbidden

    沒有操作權(quán)限。

    404 Not Found

    找不到資源。

    500 Internal Server Error

    服務(wù)內(nèi)部錯誤。

    503 Service Unavailable

    服務(wù)不可用。