检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Creating an Image Repository Scenario This section describes how to create and delete an image repository using APIs. For details on how to call APIs, see Calling APIs.
Adding an Image Retention Policy Scenario You can add a retention policy to an image in SWR to automatically delete any unused image tags. The policy takes effect immediately after you set it.
Application Scenarios Image Lifecycle Management You can use SWR to build, push, pull, synchronize, and delete container images. Advantages Proprietary acceleration makes image pull faster during high concurrency.
Deleting an Organization Description Delete an organization. Constraints None API Calling For details, see Calling APIs. URI DELETE /v2/manage/namespaces/{namespace} Table 1 Path parameter Parameter Mandatory Type Description namespace Yes String Organization name.
Deleting an Automatic Image Replication Task Description Delete a specified automatic image replication task based on the target region and organization. Constraints None API Calling For details, see Calling APIs.
Deleting Organization Permissions Description Delete organization permissions. Constraints None API Calling For details, see Calling APIs.
Deleting an Image Repository in an Organization Description Delete an image repository in an organization. Constraints None API Calling For details, see Calling APIs.
Deleting a Shared Account Description Delete a shared account. Constraints None API Calling For details, see Calling APIs.
Deleting Image Permissions Description Delete image permissions. Constraints None API Calling For details, see Calling APIs.
Deleting the Image with a Specified Tag Description Delete the image with a specified tag in an image repository. Constraints None API Calling For details, see Calling APIs.
Deleting an Image Retention Policy Description Delete an image retention policy. Constraints None API Calling For details, see Calling APIs.
Deleting a Trigger Description Delete a trigger. Constraints None API Calling For details, see Calling APIs.
To delete permissions, click Delete in the row of the desired username on the Users tab page, and then click OK.
URI format DELETE /v2/manage/namespaces/{namespace}/repos/{repository}/retentions/{retention_id} For details, see Deleting an Image Retention Policy Example request DELETE https://{endpoint}/v2/manage/namespaces/group/repos/test/retentions/34 Example response {} Parent Topic: Example
Please first delete the software package. 500 SVCSTG.SWR.5000054 Internal server error: Saving fails. 400 SVCSTG.SWR.4000055 No search content. 400 SVCSTG.SWR.4000056 Invalid page size. 500 SVCSTG.SWR.5000057 Internal server error: Failed to obtain the organization. 404 SVCSTG.SWR
Function Description Phase Documentation 1 Image retention policy You can add a retention policy to an image in SWR to automatically delete any unused image tags.
For example, if you want some software developers in your enterprise to be able to use SWR resources but not be able to delete the resources or perform any other high-risk operations, you can create IAM users and grant permission to use SWR resources but not permission to delete them
Status Codes Normal Returned Value Description 200 OK The results of GET and PUT operations are returned as expected. 201 Created The results of the POST operation are returned as expected. 202 Accepted The request has been accepted for processing. 204 No Content The results of the DELETE
DELETE Requests the server to delete specified resources, for example, an object. HEAD Same as GET except that the server must return only the response header. PATCH Requests the server to update partial content of a specified resource.
Deleting an Organization Before deleting an organization, delete all the images in the organization. Log in to the SWR console. Click in the upper left corner and select the desired region and project. In the navigation pane, choose Organizations.