Deleting Image Permissions

Function

Delete image permissions.

URI

URI format

DELETE /v2/manage/namespaces/{namespace}/repos/{repository}/access

Parameter

Mandatory

Type

Description

namespace

Yes

String

Organization name

repository

Yes

String

Image name

Request

Request parameters

Table 1 Request header parameter description

Parameter

Mandatory

Type

Description

Content-Type

Yes

String

Enter application/json;charset=utf8 for this field.

X-Auth-Token

Yes

String

User token, which needs to be obtained from the Identity and Access Management (IAM) service.

Table 2 Request body parameter description

Parameter

Mandatory

Type

Description

-

Yes

Array of String

User ID, which needs to be obtained from the IAM service.

Request example

["fb3f175c1fd146ab8cdae3272be6107b"]

Response

N/A

Status Code

Status Code

Description

204

Deleted successfully.

400

Request error.

401

Authentication failed.

404

The image does not exist.

500

Internal error.