Updating Image Information

Function

This API is used to update image information.

Only active images can be updated.

URI

PATCH /v2/cloudimages/{image_id}

Table 1 lists the parameters in the URI.

Table 1 Parameter description

Parameter

Mandatory

Type

Description

image_id

Yes

String

Private image ID

For details about how to obtain the image ID, see Querying Images.

Request

Example Request

Changing an image name to ims_test

1
2
3
4
5
6
7
8
PATCH https://{Endpoint}/v2/cloudimages/33ad552d-1149-471c-8190-ff6776174a00
[
    {
        "op": "replace",
        "path": "/name",
        "value": "ims_test"
    }
]

Response

Returned Values