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.
- Federated users cannot create or use long-term credentials.
- 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
- Log in to the SWR console. In the upper left corner, switch to your region. On the displayed page, click the name of the target repository.
- In the navigation pane, choose Access > Access Credentials.
- On the Long-Term Credentials tab page, click Create Long-Term Credential.
- In the displayed dialog box, enter a credential name.
- Click OK.
A long-term credential in .csv format will be automatically downloaded.
For container images, a credential is used by the container engine to access image repositories. For details about how to use an image repository, see Image Management Overview.
Creating a Temporary Credential
- Log in to the SWR console. In the upper left corner, switch to your region. On the displayed page, click the name of the target repository.
- In the navigation pane, choose Access > Access Credentials. Click the Temporary Credentials tab.
- Choose Image or chart and click Generate 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 Management Overview.
Follow-up Operations
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.