CLI Command Reference (Basic Edition)
Organization Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Creating an Organization | hcloud SWR CreateNamespace | Create an organization. | |
| Querying the List of Organizations | hcloud SWR ListNamespaces | Query the list of organizations. | |
| Deleting an Organization | hcloud SWR DeleteNamespaces | Delete an organization. | |
| Obtaining Organization Details | hcloud SWR ShowNamespace | Obtain organization details. |
Image Repository Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Creating an Image Repository in an Organization | hcloud SWR CreateRepo | Create an image repository in an organization. | |
| Deleting an Image Repository in an Organization | hcloud SWR DeleteRepo | Delete an image repository in an organization. | |
| Updating the Brief Information on an Image Repository | hcloud SWR UpdateRepo | Update the brief information on an image in an organization of the account, including the **category**, **is_public**, and **description**. | |
| Querying the Brief Information on an Image Repository | hcloud SWR ShowRepository | Query the brief information on an image repository. | |
| Querying Image Repository List | hcloud SWR ListReposDetails | Query image repository list. | |
| Querying Details About the Image Repository List | hcloud SWR ListRepoDetails | Querying Details About the Image Repository List. | |
| Querying the List of Shared Images | hcloud SWR ListSharedReposDetails | Query the list of shared images. | |
| Querying the List of Shared Images | hcloud SWR ListSharedRepoDetails | Query the list of shared images. |
Image Tag Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Querying the List of Image Tags | hcloud SWR ListRepositoryTags | Query the list of image tags. | |
| Creating an Image Tag | hcloud SWR CreateRepoTag | Creating an Image Tag | |
| Querying Details About an Image Tag List | hcloud SWR ListRepositoryTag | Querying Details About an Image Tag List | |
| Query the list of image accessories | hcloud SWR ListRepoAccessories | Query the list of image accessories | |
| Listing the Signed Image Tags Associated with a Signing Image | hcloud SWR ListReferences | Query the list of signed image tags associated with a signing image | |
| Query the Image with a Specified Tag | hcloud SWR ShowRepoTag | Query the image with a specified tag in an image repository. | |
| Deleting the Image with a Specified Tag | hcloud SWR DeleteRepoTag | Delete the image with a specified tag in an image repository. |
Shared Account Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Creating a Shared Account | hcloud SWR CreateRepoDomains | Create a shared account. After pushing a private image, you can share it with other users and grant them permissions to pull the image. | |
| Obtaining the List of Shared Accounts | hcloud SWR ListRepoDomains | Obtain the list of shared accounts. | |
| Deleting a Shared Account | hcloud SWR DeleteRepoDomains | Delete a shared account. | |
| Updating a Shared Account | hcloud SWR UpdateRepoDomains | Update a shared account. | |
| Checking the Existence of a Shared Account | hcloud SWR ShowAccessDomain | Check the existence of a shared tenant. |
API Version Information
Organization Permission Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Creating Organization Permissions | hcloud SWR CreateNamespaceAuth | Create organization permissions. | |
| Deleting Organization Permissions | hcloud SWR DeleteNamespaceAuth | Delete organization permissions. | |
| Updating Organization Permissions | hcloud SWR UpdateNamespaceAuth | Update organization permissions. | |
| Querying Organization Permissions | hcloud SWR ShowNamespaceAuth | Query organization permissions. |
Image Permission Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Creating Image Permissions | hcloud SWR CreateUserRepositoryAuth | Create image permissions. | |
| Deleting Image Permissions | hcloud SWR DeleteUserRepositoryAuth | Delete image permissions. | |
| Updating Image Permissions | hcloud SWR UpdateUserRepositoryAuth | Update image permissions. | |
| Querying Image Permissions | hcloud SWR ShowUserRepositoryAuth | Query image permissions. |
Image Replication Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Obtaining the List of Automatic Image Replication Tasks | hcloud SWR ShowSyncJob | Obtain information required for an image replication task. | |
| Obtaining the List of Automatic Image Replication Tasks | hcloud SWR ListImageAutoSyncReposDetails | Obtain all automatic image replication tasks of a repository. | |
| Creating an Automatic Image Replication Task | hcloud SWR CreateImageSyncRepo | Create an automatic image replication task. New images and image updates can be automatically replicated between regions. Existing images must be manually replicated. For details, see Manually Replicating Images. | |
| Deleting an Automatic Image Replication Task | hcloud SWR DeleteImageSyncRepo | Delete a specified automatic image replication task based on the target region and organization. | |
| Manually Replicating Images | hcloud SWR CreateManualImageSyncRepo | Existing images must be manually replicated. Check whether image replication succeeded using the following two ways: 1. If the response status code is 200 and no errors are reported, the image replication succeeded. 2. Use the SWR console or call the API of querying image repository information, if the replicated image tag exists in the target organization of the target region, the image replication succeeded. | |
| Obtain the list of regions where image synchronization is available. | hcloud SWR ListSyncRegions | Obtain the list of regions where image synchronization is available. You can manually synchronize images or configure automatic image synchronization to the regions returned by this API. |
Trigger Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Creating a Trigger | hcloud SWR CreateTrigger | Create a trigger. | |
| Obtaining the Trigger List of a Specific Image Repository | hcloud SWR ListTriggersDetails | Obtain the trigger list of a specific image repository. | |
| Deleting a Trigger | hcloud SWR DeleteTrigger | Delete a trigger. | |
| Obtaining Information About a Trigger | hcloud SWR ShowTrigger | Obtain information about a trigger. | |
| Updating Trigger Settings | hcloud SWR UpdateTrigger | Update trigger settings. |
Image Retention Policy Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Adding an Image Retention Policy | hcloud SWR CreateRetention | Add an image retention policy. | |
| Obtaining the List of Image Retention Policies | hcloud SWR ListRetentions | Obtain the list of image retention policies. | |
| Deleting an Image Retention Policy | hcloud SWR DeleteRetention | Delete an image retention policy. | |
| Obtaining an Image Retention Policy Record | hcloud SWR ShowRetention | Obtain the records of image retention policies. | |
| Modifying an Image Retention Policy | hcloud SWR UpdateRetention | Modify an image retention policy. | |
| Obtaining Image Retention Records | hcloud SWR ListRetentionHistories | Obtain image retention records. |
Temporary Login Command
| API Name | Command | Description | Operation |
|---|---|---|---|
| Generating a Temporary Login Command | hcloud SWR CreateSecret | Generate a temporary login command using the value of **X-Swr-Dockerlogin** in the response header and the value of **host** in the response body. | |
| Generating Enhanced Login Instructions (New) | hcloud SWR CreateAuthorizationToken | This API is invoked to obtain the value of X-Swr-Dockerlogin in the response message header and the value of host in the response message body to generate an enhanced login command, Note: This API can be invoked only on the new IAM plane. |
Quota Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Obtaining Quota Information | hcloud SWR ListQuotas | Obtain quota information. |
Other
| API Name | Command | Description | Operation |
|---|---|---|---|
| Querying Service Feature Status | hcloud SWR ShowShareFeatureGates | Querying Service Feature Status | |
| Querying Tenant Resource Statistics | hcloud SWR ShowDomainResourceReports | Querying Tenant Resource Statistics | |
| Querying the Tenant Resource Overview | hcloud SWR ShowDomainOverview | Querying the Tenant Resource Overview | |
| Create the agency | hcloud SWR CreateAgency | When you use SWR for the first time, an agency for SWR will be created. This API is called by the console, and you do not need to call it. | |
| Check if an agency has been created. | hcloud SWR CheckAgency | Check if you have authorized SWR to invoke CCE and CCI through the trigger function. This API is called by the console, and you do not need to call it. |
What is your overall rating for this page?
Thank 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