• Image Management Service

ims
  1. Help Center
  2. Image Management Service
  3. API Reference
  4. Native OpenStack APIs
  5. Image Schema (Native OpenStack APIs)
  6. Querying the Image Member List Schema

Querying the Image Member List Schema

Function

This API is used to query the image member list schema, which allows you to view image member attributes and their data types.

URI

URI format

GET /v2/schemas/members

Request

Example request
GET /v2/schemas/members

Response

  • Parameter description

    Parameter

    Type

    Description

    name

    string

    Specifies the schema name.

    links

    string

    Specifies the URL for accessing the schema.

    properties

    dict

    Describes basic image member attributes, including the value type and usage of each attribute.

  • Example response
    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"
            }
        }
    }

Returned Value

  • Normal

    200

  • Abnormal

    Returned Value

    Description

    400 Bad Request

    Request error.

    401 Unauthorized

    Authentication failed.

    403 Forbidden

    You do not have the rights to perform the operation.

    404 Not Found

    The requested resource was not found.

    500 Internal Server Error

    Internal service error.

    503 Service Unavailable

    The service is unavailable.