API Name of v2.0 | API Name of v3.0 | Description | Latest Resource Description Method |
CreateCCRNamespace | CreateNamespacePersonal | Creates a namespace of Personal Edition | qcs::tcr:$region:$account:repo/$namespace |
DeleteUserNamespace | DeleteNamespacePersonal | Deletes a namespace of Personal Edition | qcs::tcr:$region:$account:repo/$namespace |
GetUserRepositoryList | DescribeRepositoryOwnerPersonal | Queries all repositories of Personal Edition | qcs::tcr:$region:$account:repo/* |
CreateRepository | CreateRepositoryPersonal | Creates an image repository of Personal Edition | qcs::tcr:$region:$account:repo/$namespace/$repo |
DeleteRepository | DeleteRepositoryPersonal | Deletes an image repository of Personal Edition | qcs::tcr:$region:$account:repo/$namespace/$repo |
BatchDeleteRepository | BatchDeleteRepositoryPersonal | Deletes image repositories of Personal Edition in batches | qcs::tcr:$region:$account:repo/$namespace/* |
DeleteTag | DeleteImagePersonal | Deletes the repository tag of Personal Edition | qcs::tcr:$region:$account:repo/$namespace/$repo |
BatchDeleteTag | BatchDeleteImagePersonal | Deletes the repository tags of Personal Edition in batches | qcs::tcr:$region:$account:repo/$namespace/$repo |
pull | PullRepositoryPersonal | Pulls the images in the image repository of Personal Edition | qcs::tcr:$region:$account:repo/$namespace/$repo |
push | PushRepositoryPersonal | Pushes the images in the image repository of Personal Edition | qcs::tcr:$region:$account:repo/$namespace/$repo |
ccr
as the product prefix, and the API name is version 2.0. For example, create a namespace as ccr:CreateCCRNamespace
.ccr
as the product name, and there is only a repo
resource type. For example, to describe the image repository repo-b
under the namespace namespace-a
, it would be qcs::ccr:::repo/namespace-a/repo-b
. If $region
and $account
are left empty, all regions will be used by default, and the account will be the root account of the CAM user who created the policy by default.
For more information on authorization solution, see TKE Image Registry Resource-level Permission Settings.tcr
as the product prefix, and the API name is version 3.0. For example, create a namespace of Personal Edition as tcr:CreateNamespacePersonal
.tcr
as the product name, and there are three resource types: instance
, repository
and repo
. Among them, repo
is a dedicated resource type of the Personal Edition. For example, to describe the image repository repo-b
under the namespace of Personal Edition namespace-a
, it would be qcs::tcr:$region:$account:repo/namespace-a/repo-b
. If $region
and $account
are left empty, all regions will be used by default, and the account will be the root account of the CAM user who created the policy by default.
For more information on authorization solution, see CAM APIs for Personal Edition and Example of Authorization Solution of the Personal Edition.repo-b
(an image repository of Personal Edition) under the namespace namespace-a
in the default region. Then this account can only query the repository information and pull the image in the repository, but cannot modify the repository attributes, push images, and delete the repository.{"version": "2.0","statement": [{"action": ["ccr:pull"],"resource": "qcs::ccr:::repo/namespace-a/repo-b","effect": "allow"}]}
{"version": "2.0","statement": [{"action": ["tcr:PullRepositoryPersonal"],"resource": "qcs::tcr:::repo/namespace-a/repo-b","effect": "allow"}]}
Was this page helpful?