Updated on 2025-09-19 GMT+08:00

SWR Resources

A resource is an object that exists within a service. SWR resources include repo and namespace. You can select these resources by specifying their paths.

Table 1 SWR resources and their paths

Resource

Resource Name

Path

repo

Image repository

[Format]

swr:*:*:repo:image repository name

The first * is regionid, and the second * is domainid.

[Note]

IAM automatically generates the path prefix SWR:*:*:repo:.

For the path of a specific repository, add the image repository name to the end. You can also use a wildcard character (*) to indicate any image repository. Example:

swr:*:*:repo:test/nginx*: image repository whose name starts with nginx in the test organization

swr:*:*:repo:test/nginx: image repository whose name is nginx in the test organization

namespace

Organization

[Format]

SWR:*:*:namespace:organization name

The first * is regionid, and the second * is domainid.

[Note]

For the path of an organization, IAM automatically generates the resource path prefix SWR:*:*:namespace:. You can add the organization name to the end. You can also use a wildcard character (*) to indicate any organization. Example:

swr:*:*:namespace:test*: organization whose name starts with test

swr:*:*:namespace:test: organization whose name is test