Updated on 2025-04-30 GMT+08:00

Access Credentials

Scenarios

Image repositories can only be accessed after you have obtained an access credential. Access credentials can be long-term valid or temporary.

  • Long-term credentials: permanently valid after being created and can be disabled or deleted. A long-term credential can be used for preliminary tests, CI/CD pipelines, and image pull to container clusters.

    Keep long-term credentials safe after they are created. If they are lost, disable or delete them in a timely manner.

  • Temporary credentials: valid for 24 hours and cannot be disabled or deleted after being created. A temporary credential can be used for temporary use, one-time authorization, or other purposes. For example, it can also be used in production clusters that require high security, if it is periodically refreshed.

Creating a Long-Term Credential

  1. Log in to the SWR console. In the upper left corner, switch to your region. In the navigation pane, choose Repositories. Click your repository name.
  2. In the navigation pane, choose Access > Access Credentials.
  3. On the Long-Term Credentials tab page, click Create Long-Term Credential.
  4. In the displayed dialog box, enter a credential name.

    Figure 1 Creating a long-term credential

  5. Click OK.

    A long-term credential in .csv format will be automatically downloaded.

    For container images, a credential is a Docker command that is used to access image repositories. For details about how to use an image repository, see Image Repositories.

Creating a Temporary Credential

  1. Log in to the SWR console. In the upper left corner, switch to your region.
  2. In the navigation pane, choose Access > Access Credentials. Click the Temporary Credentials tab.
  3. Choose Image or chart and click Generate a temporary access credential.

    Figure 2 Generating a temporary access credential

    The generated credential is displayed on the current page. You can copy and use it.

    For container images, a credential is a Docker command that is used to access image repositories. For details about how to use an image repository, see Image Repositories.

Follow-up Operations