Updating Image Permissions
Function
Update image permissions.
URI
URI format
PATCH /v2/manage/namespaces/{namespace}/repos/{repository}/access
Parameter description
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| namespace | Yes | String | Organization name |
| repository | Yes | String | Image name |
Request
Request parameters
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. |
Request body parameter description
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| user_id | Yes | String | User ID, which needs to be obtained from the IAM service. |
| user_name | Yes | String | Username, which needs to be obtained from the IAM service. |
| auth | Yes | Integer | User permission that is configured. |
Request example
[
{
"user_id": "fb3f175c1fd146ab8cdae3272be6107b",
"user_name": "liugenping01",
"auth": 7
}
] Response
N/A
Status Code
| Status Code | Description |
|---|---|
| 201 | Updated successfully. |
| 400 | Request error. |
| 401 | Authentication failed. |
| 404 | The image or the image permission does not exist. |
| 500 | Internal error. |
Last Article: Deleting Image Permissions
Next Article: Querying Image Permissions
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.