Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: Dong, Qiu Jian <qiujiandong1@huawei.com> Co-committed-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
9.9 KiB
Deleting an Account Used for Image Sharing
Function
Delete an account used for image sharing.
URI
DELETE /v2/manage/namespaces/{namespace}/repositories/{repository}/access-domains/{access_domain}
For details about parameters, see Table 1.
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
namespace |
Yes |
String |
Organization name. An organization name contains 1 to 64 characters. It must start with a lowercase letter and end with a lowercase letter or digit. Only lowercase letters, digits, periods (.), underscores (_), and hyphens (-) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed. |
repository |
Yes |
String |
Image repository name. |
access_domain |
Yes |
String |
Name of the account used for image sharing. |
Request
- Request parameters
Table 2 Request header parameters Parameter
Mandatory
Type
Description
Content-Type
Yes
String
Message body type (format). The value can be application/json or charset=utf-8 application/json.
The default value is application/json.
X-Auth-Token
Yes
String
User token.
The token can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token.
- Example request
DELETE https://{Endpoint}/v2/manage/namespaces/group/repositories/busybox/access-domains/domain_name
Response
N/A
Status Code
Status Code |
Description |
---|---|
204 |
Deleted successfully. |
400 |
Request error. |
401 |
Authentication failed. |
500 |
Failed to complete the request because of an internal service error. |
Error Codes
For details, see Error Codes.