• Image Management Service

ims
  1. Help Center
  2. Image Management Service
  3. API Reference
  4. APIs
  5. Image Sharing (Extension APIs)
  6. Deleting Image Members

Deleting Image Members

Function

This API is an extension one and used to stop sharing images by deleting tenants with whom the image is shared in batches.

URI

URI format

DELETE /v1/cloudimages/members

Request

  • Parameter description

    Parameter

    Mandatory

    Type

    Description

    images

    Yes

    List<String>

    Specifies the image IDs.

    projects

    Yes

    List<String>

    Specifies the project IDs.

  • Example request
    DELETE /v1/cloudimages/members
    {
      "images": [
            "d164b5df-1bc3-4c3f-893e-3e471fd16e64",
            "0b680482-acaa-4045-b14c-9a8c7dfe9c70"
        ],
        "projects": [
            "9c61004714024f9586705d090530f9fa",
            "edc89b490d7d4392898e19b2deb34797"
        ]
    }

Response

  • Parameter description

    Parameter

    Type

    Description

    job_id

    String

    Specifies the asynchronous job ID.

  • Example response
    STATUS CODE 200
    {
        "job_id": "edc89b490d7d4392898e19b2deb34797"
    }

Returned Values

  • Normal

    200

  • Abnormal

    Returned Value

    Description

    400 Bad Request

    Request error. For details, see Error Codes.

    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.