API Overview
You can query information about organizations, image repositories, and images, and manage organizations, image repositories, and images by using APIs provided by SWR.
Organization Management
API |
Description |
---|---|
Creates an organization. |
|
Deletes an organization. |
|
Queries the list of organizations. |
|
Queries the details of an organization, including its ID, name, creator, and user permissions. |
Image Repository Management
API |
Description |
Creates an image repository in an organization. |
|
Deletes an image repository in an organization. |
|
Updates the brief information on an image repository in an organization, including the category, is_public, and description. |
|
Queries the brief information on an image repository in an organization, including the image's repository ID, organization ID, repository name, description of the repository, the creator and capacity of the repository, and the image pull address. |
|
Queries the image repository list. |
|
Views the list of shared images. |
Image Tag Management
API |
Description |
Queries all image tags of an image repository. |
|
Deletes the image with a specified tag in an image repository. |
Shared Account Management
API |
Description |
Creates an account used for image sharing. You can share your private images with other users, granting them permissions to pull the images. |
|
Deletes an account used for image sharing. |
|
Updates an account used for image sharing. |
|
Check whether an account used for image sharing exists. |
|
Obtains the list of accounts used for image sharing. |
API Version
API |
Description |
Queries all available API versions of SWR. |
|
Query a specific API version of SWR. |
Organization Permission Management
API |
Description |
Grants permissions of an organization to certain users so that they can manage, edit, and read images from the organization. |
|
Deletes the organization operation permissions of certain users. |
|
Updates the organization operation permission types for certain users. |
|
Queries organization permissions. |
Image Permission Management
API |
Description |
Grants permissions of an image to certain users so that they can manage, edit, and read the image. |
|
Deletes the image operation permissions of certain users. |
|
Updates the image operation permission types for certain users. |
|
Queries image permissions. |
Automatic Image Synchronization Task Management
API |
Description |
Obtaining Information About an Automatic Image Synchronization Task |
Obtains information required for an image synchronization task. |
Obtains all automatic image synchronization tasks of a repository. |
|
Creates an automatic image synchronization task. New images and image updates can be automatically synchronized between regions. Existing images must be manually synchronized. For details, see Manually Replicating Images. |
|
Deletes a specified automatic image synchronization task based on the target region and organization. |
|
Existing images must be manually synchronized. Check whether image synchronization succeeded using the following two ways:
|
Trigger Management
API |
Description |
Creates a trigger. |
|
Obtains the trigger list of a specific image repository. |
|
Deletes a trigger. |
|
Obtains information about a trigger. |
|
Updates the status of a trigger. |
Image Retention Policy Management
API |
Description |
Adds an image retention policy. |
|
Obtains the list of image retention policies. |
|
Deletes an image retention policy. |
|
Obtains the records of image retention policies. |
|
Modifies an image retention policy. |
|
Obtains image retention records. |
Temporary Login Command
API |
Description |
Generates a temporary login command using the value of X-Swr-Dockerlogin in the response header and the value of host in the response body. |
Quota Management
API |
Description |
Obtains quota information. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot