Updated on 2024-12-25 GMT+08:00

SoftWare Repository for Container (SWR)

The Organizations service provides Service Control Policies (SCPs) to set access control policies.

SCPs do not actually grant any permissions to a principal. They only set the permissions boundary for the principal. When SCPs are attached to a member account or an organizational unit (OU), they do not directly grant permissions to that member account or OU. Instead, the SCPs just determine what permissions are available for that member account or the member accounts under that OU.

This section describes the elements used by Organizations SCPs. The elements include actions, resources, and conditions.

For details about how to use these elements to create a custom SCP, see Creating an SCP.

Actions

Actions are specific operations that are allowed or denied in an SCP.

  • The Access Level column describes how the action is classified (List, Read, or Write). This classification helps you understand the level of access that an action grants when you use it in an SCP.
  • The Resource Type column indicates whether the action supports resource-level permissions.
    • You can use a wildcard (*) to indicate all resource types. If this column is empty (-), the action does not support resource-level permissions, and you must specify all resources ("*") in your SCP statements.
    • If this column includes a resource type, you must specify the URN in the Resource element of your statements.
    • Required resources are marked with asterisks (*) in the table. If you specify a resource in a statement using this action, then it must be of this type.

    For details about the resource types defined by SWR, see Resources.

  • The Condition Key column contains keys that you can specify in the Condition element of an SCP statement.
    • If the Resource Type column has values for an action, the condition key takes effect only for the listed resource types.
    • If the Resource Type column is empty (-) for an action, the condition key takes effect for all resources that action supports.
    • If the Condition Key column is empty (-) for an action, the action does not support any condition keys.

    For details about the condition keys defined by SWR, see Conditions.

The following table lists the actions that you can define in SCP statements for SWR.

Table 1 Actions supported by SWR

Action

Description

Access Level

Resource Type (*: required)

Condition Key

swr:namespace:createNamespace

(Shared Edition) Grants permission to create an organization.

Write

namespace *

-

swr:namespace:deleteNamespace

(Shared Edition) Grants permission to delete an organization.

Write

namespace *

-

swr:namespace:listNamespaces

(Shared Edition) Grants permission to list organizations.

List

namespace *

-

swr:namespace:getNamespace

(Shared Edition) Grants permission to query details about an organization.

Read

namespace *

-

swr:repo:createRepo

(Shared Edition) Grants permission to create a repository.

Write

repo *

-

-

swr:AllowPublicAccess

swr:repo:deleteRepo

(Shared Edition) Grants permission to delete a repository.

Write

repo *

-

swr:repo:listRepos

(Shared Edition) Grants permission to list repositories.

List

repo *

-

swr:repo:listSharedRepos

(Shared Edition) Grants permission to list shared images.

List

repo *

-

swr:repo:getRepo

(Shared Edition) Grants permission to query brief information about a repository.

Read

repo *

-

swr:repo:updateRepo

(Shared Edition) Grants permission to update brief information about a repository.

Write

repo *

-

-

swr:AllowPublicAccess

swr:repo:deleteRepoTag

(Shared Edition) Grants permission to delete images with specified tags.

Write

repo *

-

swr:repo:createRepoTag

(Shared Edition) Grants permission to create an image tag.

Write

repo *

-

swr:repo:listRepoTags

(Shared Edition) Grants permission to list image tags.

List

repo *

-

swr:repo:createRepoDomain

(Shared Edition) Grants permission to share images with other accounts.

Permission_management

repo *

-

-

swr:repo:deleteRepoDomain

(Shared Edition) Grants permission to delete accounts from an image sharing list.

Permission_management

repo *

-

swr:repo:listRepoDomains

(Shared Edition) Grants permission to list accounts an image is shared with.

List

repo *

-

swr:repo:getRepoDomain

(Shared Edition) Grants permission to check whether images are shared with an account.

Read

repo *

-

swr:repo:updateRepoDomain

(Shared Edition) Grants permission to update an account images are shared with.

Permission_management

repo *

-

swr:repo:createRepoShare

(Shared Edition) Grants permission to create an image sharing policy.

Permission_management

repo *

-

-

swr:repo:deleteRepoShare

(Shared Edition) Grants permission to delete an image sharing policy.

Permission_management

repo *

-

swr:repo:listRepoShares

(Shared Edition) Grants permission to list image sharing policies.

List

repo *

-

swr:repo:getRepoShare

(Shared Edition) Grants permission to query details about an image sharing policy.

Read

repo *

-

swr:repo:updateRepoShare

(Shared Edition) Grants permission to update an image sharing policy.

Permission_management

repo *

-

swr:repo:createAutoSyncRepoJob

(Shared Edition) Grants permission to create an automatic image synchronization task.

Write

repo *

-

-

swr:TargetRegion

swr:repo:createManualSyncRepoJob

(Shared Edition) Grants permission to manually synchronize images.

Write

repo *

-

-

swr:TargetRegion

swr:repo:deleteAutoSyncRepoJob

(Shared Edition) Grants permission to delete an automatic image synchronization task.

Write

repo *

-

swr:repo:listAutoSyncRepoJobs

(Shared Edition) Grants permission to list automatic image synchronization tasks.

List

repo *

-

swr:repo:getSyncRepoJobInfo

(Shared Edition) Grants permission to query details about an image synchronization task.

Read

repo *

-

swr:repo:createTrigger

(Shared Edition) Grants permission to create a trigger.

Write

repo *

-

swr:repo:deleteTrigger

(Shared Edition) Grants permission to delete a trigger.

Write

repo *

-

swr:repo:listTriggers

(Shared Edition) Grants permission to list triggers.

List

repo *

-

swr:repo:getTrigger

(Shared Edition) Grants permission to query details about a trigger.

Read

repo *

-

swr:repo:updateTrigger

(Shared Edition) Grants permission to update a trigger.

Write

repo *

-

swr:repo:createRetention

(Shared Edition) Grants permission to create an image retention policy.

Write

repo *

-

swr:repo:deleteRetention

(Shared Edition) Grants permission to delete an image retention policy.

Write

repo *

-

swr:repo:listRetentionHistories

(Shared Edition) Grants permission to list image retention records.

List

repo *

-

swr:repo:listRetentions

(Shared Edition) Grants permission to list image retention policies.

List

repo *

-

swr:repo:getRetention

(Shared Edition) Grants permission to query details about an image retention policy record.

Read

repo *

-

swr:repo:updateRetention

(Shared Edition) Grants permission to modify an image retention policy.

Write

repo *

-

swr::createLoginSecret

(Shared Edition) Grants permission to generate a temporary login command.

Write

-

-

swr::listQuotas

(Shared Edition) Grants permission to list quotas.

List

-

-

swr::getDomainOverview

(Shared Edition) Grants permission to query brief resource information of a tenant.

Read

-

-

swr::getDomainResourceReports

(Shared Edition) Grants permission to query resource statistics of a tenant.

Read

-

-

swr:namespace:multipartUpload

(Shared Edition) Grants permission to upload an image in multipart mode.

Write

namespace *

-

swr:namespace:createNamespaceAccess

(Shared Edition) Grants permission to create an organization permission.

Permission_management

namespace *

-

swr:namespace:deleteNamespaceAccess

(Shared Edition) Grants permission to delete an organization permission.

Permission_management

namespace *

-

swr:namespace:getNamespaceAccess

(Shared Edition) Grants permission to query details about an organization permission.

Read

namespace *

-

swr:namespace:updateNamespaceAccess

(Shared Edition) Grants permission to update an organization permission.

Permission_management

namespace *

-

swr:repo:createRepoAccess

(Shared Edition) Grants permission to create an image permission.

Permission_management

repo *

-

swr:repo:deleteRepoAccess

(Shared Edition) Grants permission to delete an image permission.

Permission_management

repo *

-

swr:repo:getRepoAccess

(Shared Edition) Grants permission to query details about an image permission.

Read

repo *

-

swr:repo:updateRepoAccess

(Shared Edition) Grants permission to update an image permission.

Permission_management

repo *

-

swr:repo:upload

(Shared Edition) Grants permission to upload an image.

Write

repo *

-

swr:repo:download

(Shared Edition) Grants permission to download an image.

Read

repo *

-

swr:repository:createImmutableRule

(Enterprise Edition) Grants permission to create an immutability rule.

Write

repository *

swr:repository:deleteImmutableRule

(Enterprise Edition) Grants permission to delete an immutability rule.

Write

repository *

swr:repository:listImmutableRules

(Enterprise Edition) Grants permission to list immutability rules.

List

repository *

swr:repository:updateImmutableRule

(Enterprise Edition) Grants permission to modify an immutability rule.

Write

repository *

swr:repository:listArtifacts

(Enterprise Edition) Grants permission to list artifacts.

List

repository *

swr:repository:getArtifact

(Enterprise Edition) Grants permission to query details about an artifact.

Read

repository *

swr:repository:deleteArtifact

(Enterprise Edition) Grants permission to delete an artifact.

Write

repository *

swr:repository:listAccessories

(Enterprise Edition) Grants permission to list artifact accessories.

List

repository *

swr:repository:getArtifactAddition

(Enterprise Edition) Grants permission to query additional information about an artifact.

Read

repository *

swr:instance:getConfigurations

(Enterprise Edition) Grants permission to query specifications of an instance.

Read

instance *

swr:instance:updateConfigurations

(Enterprise Edition) Grants permission to update specifications of an instance.

Write

instance *

swr:instance:listResourceInstances

(Enterprise Edition) Grants permission to list instances.

List

instance *

-

-

swr:instance:getResourceInstancesCount

(Enterprise Edition) Grants permission to query the number of instances.

Read

instance *

-

-

swr:instance:createResourceTags

(Enterprise Edition) Grants permission to batch create a resource tag.

Tagging

instance *

-

swr:instance:deleteResourceTags

(Enterprise Edition) Grants permission to batch delete a resource tag.

Tagging

instance *

-

swr:instance:getProjectTags

(Enterprise Edition) Grants permission to query project tags.

Read

-

-

swr:instance:getResourceTags

(Enterprise Edition) Grants permission to query resource tags.

Read

instance *

swr:instance:create

(Enterprise Edition) Grants permission to create an instance.

Write

instance *

-

-

swr:instance:list

(Enterprise Edition) Grants permission to list instances.

List

instance *

-

swr:instance:get

(Enterprise Edition) Grants permission to query details about an instance.

Read

instance *

swr:instance:delete

(Enterprise Edition) Grants permission to delete an instance.

Write

instance *

swr:instance:getAuditLogs

(Enterprise Edition) Grants permission to query audit logs of an instance.

Read

instance *

swr:instance:getStatistics

(Enterprise Edition) Grants permission to query statistics on an instance.

Read

instance *

swr:instance:listJobs

(Enterprise Edition) Grants permission to list tasks.

List

instance *

-

swr:instance:getJobs

(Enterprise Edition) Grants permission to query details about a task.

Read

instance *

-

swr:instance:deleteJob

(Enterprise Edition) Grants permission to delete a task.

Write

instance *

-

swr:repository:createNamespace

(Enterprise Edition) Grants permission to create a namespace (an organization).

Write

repository *

-

swr:EnablePublicNameSpace

swr:repository:listNamespaces

(Enterprise Edition) Grants permission to list namespaces (organizations).

List

repository *

swr:repository:getNamespace

(Enterprise Edition) Grants permission to query details about a namespace (an organization).

Read

repository *

swr:repository:updateNamespace

(Enterprise Edition) Grants permission to modify a namespace (an organization).

Write

repository *

-

swr:EnablePublicNameSpace

swr:repository:deleteNamespace

(Enterprise Edition) Grants permission to delete a namespace (an organization).

Write

repository *

swr:repository:listRepositories

(Enterprise Edition) Grants permission to list artifact repositories.

List

repository *

swr:repository:getRepository

(Enterprise Edition) Grants permission to query details about an artifact repository.

Read

repository *

swr:repository:updateRepository

(Enterprise Edition) Grants permission to modify an artifact repository.

Write

repository *

swr:repository:deleteRepository

(Enterprise Edition) Grants permission to delete an artifact repository.

Write

repository *

swr:repository:listTags

(Enterprise Edition) Grants permission to list artifact tags.

List

repository *

swr:repository:getTag

(Enterprise Edition) Grants permission to query details about an artifact tag.

Read

repository *

swr:repository:deleteTag

(Enterprise Edition) Grants permission to delete an artifact tag.

Write

repository *

swr:repository:getTagAddition

(Enterprise Edition) Grants permission to query additional information about an artifact tag.

Read

repository *

swr:repository:createRetentionPolicy

(Enterprise Edition) Grants permission to create a tag retention policy.

Write

repository *

swr:repository:listRetentionPolicies

(Enterprise Edition) Grants permission to list tag retention policies.

List

repository *

swr:repository:getRetentionPolicy

(Enterprise Edition) Grants permission to query details about a tag retention policy.

Read

repository *

swr:repository:updateRetentionPolicy

(Enterprise Edition) Grants permission to modify a tag retention policy.

Write

repository *

swr:repository:deleteRetentionPolicy

(Enterprise Edition) Grants permission to delete a tag retention policy.

Write

repository *

swr:repository:executeRetentionPolicy

(Enterprise Edition) Grants permission to execute tag retention policies.

Write

repository *

swr:repository:listRetentionPolicyExecutions

(Enterprise Edition) Grants permission to list tag retention records.

List

repository *

swr:repository:listRetentionPolicyExecTasks

(Enterprise Edition) Grants permission to list tag retention tasks.

List

repository *

swr:repository:listRetentionPolicyExecSubTasks

(Enterprise Edition) Grants permission to list tag retention subtasks.

List

repository *

swr:repository:createWebhook

(Enterprise Edition) Grants permission to create a trigger.

Write

repository *

swr:repository:listWebhooks

(Enterprise Edition) Grants permission to list triggers.

List

repository *

swr:repository:getWebhook

(Enterprise Edition) Grants permission to query details about a trigger.

Read

repository *

swr:repository:updateWebhook

(Enterprise Edition) Grants permission to modify a trigger.

Write

repository *

swr:repository:deleteWebhook

(Enterprise Edition) Grants permission to delete a trigger.

Write

repository *

swr:repository:listWebhookJobs

(Enterprise Edition) Grants permission to list triggering records.

List

repository *

swr:instance:createRegistry

(Enterprise Edition) Grants permission to create a destination registry.

Write

instance *

swr:instance:listRegistries

(Enterprise Edition) Grants permission to list destination registries.

List

instance *

swr:instance:getRegistry

(Enterprise Edition) Grants permission to query details about a destination registry.

Read

instance *

swr:instance:updateRegistry

(Enterprise Edition) Grants permission to modify a destination registry.

Write

instance *

swr:instance:deleteRegistry

(Enterprise Edition) Grants permission to delete a destination repository.

Write

instance *

swr:instance:createReplicationPolicy

(Enterprise Edition) Grants permission to create a replication policy.

Write

instance *

swr:instance:listReplicationPolicies

(Enterprise Edition) Grants permission to list replication policies.

List

instance *

swr:instance:getReplicationPolicy

(Enterprise Edition) Grants permission to query details about a replication policy.

Read

instance *

swr:instance:updateReplicationPolicy

(Enterprise Edition) Grants permission to modify a replication policy.

Write

instance *

swr:instance:deleteReplicationPolicy

(Enterprise Edition) Grants permission to delete a replication policy.

Write

instance *

swr:instance:executeReplicationPolicy

(Enterprise Edition) Grants permission to execute replication policies.

Write

instance *

swr:instance:stopReplicationPolicyExecution

(Enterprise Edition) Grants permission to stop replication tasks.

Write

instance *

swr:instance:listReplicationPolicyExecutions

(Enterprise Edition) Grants permission to list replication records.

List

instance *

swr:instance:listReplicationPolicyExecTasks

(Enterprise Edition) Grants permission to list replication tasks.

List

instance *

swr:instance:listReplicationPolicyExecSubTasks

(Enterprise Edition) Grants permission to list replication subtasks.

List

instance *

swr:repository:createSignPolicy

(Enterprise Edition) Grants permission to create a sign policy.

Write

repository *

swr:repository:listSignPolicies

(Enterprise Edition) Grants permission to list sign policies.

List

repository *

swr:repository:getSignPolicy

(Enterprise Edition) Grants permission to query details about a sign policy.

Read

repository *

swr:repository:updateSignPolicy

(Enterprise Edition) Grants permission to modify a sign policy.

Write

repository *

swr:repository:deleteSignPolicy

(Enterprise Edition) Grants permission to delete a sign policy.

Write

repository *

swr:repository:executeSignPolicy

(Enterprise Edition) Grants permission to execute sign policies.

Write

repository *

swr:repository:listSignPolicyExecutions

(Enterprise Edition) Grants permission to list signing records.

List

repository *

swr:repository:listSignPolicyExecTasks

(Enterprise Edition) Grants permission to list signing tasks.

List

repository *

swr:repository:listSignPolicyExecSubTasks

(Enterprise Edition) Grants permission to list signing subtasks.

List

repository *

swr:repository:createScanPolicy

(Enterprise Edition) Grants permission to create a scan policy.

Write

repository *

swr:repository:listScanPolicies

(Enterprise Edition) Grants permission to list scan policies.

List

repository *

swr:repository:getScanPolicy

(Enterprise Edition) Grants permission to query details about a scan policy.

Read

repository *

swr:repository:updateScanPolicy

(Enterprise Edition) Grants permission to modify a scan policy.

Write

repository *

swr:repository:deleteScanPolicy

(Enterprise Edition) Grants permission to delete a scan policy.

Write

repository *

swr:repository:executeScanPolicy

(Enterprise Edition) Grants permission to execute scan policies.

Write

repository *

swr:repository:listScanPolicyExecutions

(Enterprise Edition) Grants permission to list scanning records.

List

repository *

swr:repository:listScanPolicyExecTasks

(Enterprise Edition) Grants permission to list scanning tasks.

List

repository *

swr:repository:createBlockPolicy

(Enterprise Edition) Grants permission to create a block policy.

Write

repository *

swr:repository:listBlockPolicies

(Enterprise Edition) Grants permission to list block policies.

List

repository *

swr:repository:getBlockPolicy

(Enterprise Edition) Grants permission to query details about a block policy.

Read

repository *

swr:repository:updateBlockPolicy

(Enterprise Edition) Grants permission to modify a block policy.

Write

repository *

swr:repository:deleteBlockPolicy

(Enterprise Edition) Grants permission to delete a block policy.

Write

repository *

swr:repository:listBlockPolicyRecords

(Enterprise Edition) Grants permission to list blocking records.

List

repository *

swr:instance:updateEndpointPolicy

(Enterprise Edition) Grants permission to update the whitelist for public network access.

Write

instance *

swr:instance:updateEndpointPolicyStatus

(Enterprise Edition) Grants permission to update the whitelist status for public network access.

Write

instance *

swr:instance:getEndpointPolicy

(Enterprise Edition) Grants permission to query the whitelist for public network access.

Read

instance *

swr:instance:createInternalEndpoint

(Enterprise Edition) Grants permission to allow a connection from the intranet.

Write

instance *

-

swr:instance:getInternalEndpoint

(Enterprise Edition) Grants permission to query details about an allowed connection from the intranet.

Read

instance *

swr:instance:deleteInternalEndpoint

(Enterprise Edition) Grants permission to deny a connection from the intranet.

Write

instance *

swr:instance:listInternalEndpoints

(Enterprise Edition) Grants permission to list allowed connections from the intranet.

List

instance *

swr:repository:uploadArtifact

(Enterprise Edition) Grants permission to upload artifacts.

Write

repository *

swr:repository:downloadArtifact

(Enterprise Edition) Grants permission to download artifacts.

Read

repository *

swr:instance:createTempCredential

(Enterprise Edition) Grants permission to create a temporary access credential.

Write

instance *

swr:instance:createLTCredential

(Enterprise Edition) Grants permission to create a long-term access credential.

Write

instance *

swr:instance:updateLTCredential

(Enterprise Edition) Grants permission to enable or disable long-term access credentials.

Write

instance *

swr:instance:listLTCredentials

(Enterprise Edition) Grants permission to list long-term access credentials.

List

instance *

swr:instance:deleteLTCredential

(Enterprise Edition) Grants permission to delete a long-term access credential.

Write

instance *

swr:instance:addDomainName

(Enterprise Edition) Grants permission to add a domain name.

Write

instance *

swr:instance:deleteDomainName

(Enterprise Edition) Grants permission to delete a domain name.

Write

instance *

swr:instance:updateDomainName

(Enterprise Edition) Grants permission to update a domain name.

Write

instance *

swr:instance:listDomainNames

(Enterprise Edition) Grants permission to list domain names.

List

instance *

Each API of SWR usually supports one or more actions. Table 2 lists the supported actions and dependencies.

Table 2 Actions and dependencies supported by SWR APIs

API

Action

Dependencies

POST /v2/manage/namespaces

swr:namespace:createNamespace

-

DELETE /v2/manage/namespaces/{namespace}

swr:namespace:deleteNamespace

-

GET /v2/manage/namespaces

swr:namespace:listNamespaces

-

GET /v2/manage/namespaces/{namespace}

swr:namespace:getNamespace

-

POST /v2/manage/namespaces/{namespace}/repos

swr:repo:createRepo

-

DELETE /v2/manage/namespaces/{namespace}/repos/{repository}

swr:repo:deleteRepo

-

GET /v2/manage/repos

swr:repo:listRepos

-

GET /v2/manage/shared-repositories

swr:repo:listSharedRepos

-

GET /v2/manage/namespaces/{namespace}/repos/{repository}

swr:repo:getRepo

-

PATCH /v2/manage/namespaces/{namespace}/repos/{repository}

swr:repo:updateRepo

-

DELETE /v2/manage/namespaces/{namespace}/repos/{repository}/tags/{tag}

swr:repo:deleteRepoTag

-

POST /v2/manage/namespaces/{namespace}/repos/{repository}/tags

swr:repo:createRepoTag

-

GET /v2/manage/namespaces/{namespace}/repos/{repository}/tags

swr:repo:listRepoTags

-

POST /v2/manage/namespaces/{namespace}/repositories/{repository}/access-domains

swr:repo:createRepoDomain

-

DELETE /v2/manage/namespaces/{namespace}/repositories/{repository}/access-domains/{access_domain}

swr:repo:deleteRepoDomain

-

GET /v2/manage/namespaces/{namespace}/repositories/{repository}/access-domains

swr:repo:listRepoDomains

-

GET /v2/manage/namespaces/{namespace}/repositories/{repository}/access-domains/{access_domain}

swr:repo:getRepoDomain

-

PATCH /v2/manage/namespaces/{namespace}/repositories/{repository}/access-domains/{access_domain}

swr:repo:updateRepoDomain

-

POST /v2/manage/namespaces/{namespace}/repos/{repository}/shares

swr:repo:createRepoShare

-

DELETE /v2/manage/namespaces/{namespace}/repos/{repository}/shares/{share_id}

swr:repo:deleteRepoShare

-

GET /v2/manage/namespaces/{namespace}/repos/{repository}/shares

swr:repo:listRepoShares

-

PATCH /v2/manage/namespaces/{namespace}/repos/{repository}/shares/{share_id}

swr:repo:updateRepoShare

-

POST /v2/manage/namespaces/{namespace}/repos/{repository}/sync_repo

swr:repo:createAutoSyncRepoJob

  • swr::createLoginSecret
  • swr:repo:download
  • swr:repo:upload

POST /v2/manage/namespaces/{namespace}/repos/{repository}/sync_images

swr:repo:createManualSyncRepoJob

  • swr::createLoginSecret
  • swr:repo:download
  • swr:repo:upload

DELETE /v2/manage/namespaces/{namespace}/repos/{repository}/sync_repo

swr:repo:deleteAutoSyncRepoJob

-

GET /v2/manage/namespaces/{namespace}/repos/{repository}/sync_repo

swr:repo:listAutoSyncRepoJobs

-

GET /v2/manage/namespaces/{namespace}/repos/{repository}/sync_job

swr:repo:getSyncRepoJobInfo

-

POST /v2/manage/namespaces/{namespace}/repos/{repository}/triggers

swr:repo:createTrigger

-

DELETE /v2/manage/namespaces/{namespace}/repos/{repository}/triggers/{trigger}

swr:repo:deleteTrigger

-

GET /v2/manage/namespaces/{namespace}/repos/{repository}/triggers

swr:repo:listTriggers

-

GET /v2/manage/namespaces/{namespace}/repos/{repository}/triggers/{trigger}

swr:repo:getTrigger

-

PATCH /v2/manage/namespaces/{namespace}/repos/{repository}/triggers/{trigger}

swr:repo:updateTrigger

-

POST /v2/manage/namespaces/{namespace}/repos/{repository}/retentions

swr:repo:createRetention

-

DELETE /v2/manage/namespaces/{namespace}/repos/{repository}/retentions/{retention_id}

swr:repo:deleteRetention

-

GET /v2/manage/namespaces/{namespace}/repos/{repository}/retentions/histories

swr:repo:listRetentionHistories

-

GET /v2/manage/namespaces/{namespace}/repos/{repository}/retentions

swr:repo:listRetentions

-

GET /v2/manage/namespaces/{namespace}/repos/{repository}/retentions/{retention_id}

swr:repo:getRetention

-

PATCH /v2/manage/namespaces/{namespace}/repos/{repository}/retentions/{retention_id}

swr:repo:updateRetention

-

POST /v2/manage/utils/secret

swr::createLoginSecret

-

GET /v2/manage/projects/{project_id}/quotas

swr::listQuotas

-

GET /v2/manage/overview

swr::getDomainOverview

-

GET /v2/manage/reports/{resource_type}/{frequency}

swr::getDomainResourceReports

-

POST /v2/manage/namespaces/{namespace}/access

swr:namespace:createNamespaceAccess

-

DELETE /v2/manage/namespaces/{namespace}/access

swr:namespace:deleteNamespaceAccess

-

GET /v2/manage/namespaces/{namespace}/access

swr:namespace:getNamespaceAccess

-

PATCH /v2/manage/namespaces/{namespace}/access

swr:namespace:updateNamespaceAccess

-

POST /v2/manage/namespaces/{namespace}/repos/{repository}/access

swr:repo:createRepoAccess

-

DELETE /v2/manage/namespaces/{namespace}/repos/{repository}/access

swr:repo:deleteRepoAccess

-

GET /v2/manage/namespaces/{namespace}/repos/{repository}/access

swr:repo:getRepoAccess

-

PATCH /v2/manage/namespaces/{namespace}/repos/{repository}/access

swr:repo:updateRepoAccess

-

Resources

A resource type indicates the resources that an SCP applies to. If you specify a resource type for any action in Table 3, the resource URN must be specified in the SCP statements using that action, and the SCP applies only to resources of this type. If no resource type is specified, the Resource element is marked with an asterisk (*) and the SCP applies to all resources. You can also set condition keys in an SCP to define resource types.

The following table lists the resource types that you can define in SCP statements for SWR.

Table 3 Resource types supported by SWR

Resource Type

URN

repo

swr:<region>:<account-id>:repo:<namespace-name>/<repo-name>

repository

swr:<region>:<account-id>:repository:<instance-name>/<repository-path>

instance

swr:<region>:<account-id>:instance:<instance-name>

namespace

swr:<region>:<account-id>:namespace:<namespace-name>

Conditions

A Condition element lets you specify conditions for when an SCP is in effect. It contains condition keys and operators.

  • The condition key that you specify can be a global condition key or a service-specific condition key.
    • Global condition keys (with the g: prefix) apply to all actions. Cloud services do not need to provide user identity information. Instead, IAM automatically obtains such information and authenticates users. For details, see Global Condition Keys.
    • Service-specific condition keys (with the abbreviation of a service name plus a colon as the prefix, for example, swr:) only apply to operations of the SWR service. For details, see Table 4.
    • The number of values associated with a condition key in the request context of an API call makes the condition key single-valued or multivalued. Single-valued condition keys have at most one value in the request context of an API call. Multivalued condition keys can have multiple values in the request context of an API call. For example, a request can originate from at most one VPC endpoint, so g:SourceVpce is a single-valued condition key. You can tag resources and include multiple tag key-value pairs in a request, so g:TagKeys is a multivalued condition key.
  • A condition operator, condition key, and a condition value together constitute a complete condition statement. An SCP can be applied only when its request conditions are met. For supported condition operators, see Condition operators.

The following table lists the condition keys that you can define in SCPs for SWR. You can include these condition keys to specify conditions for when your SCP is in effect.

Table 4 Service-specific condition keys supported by SWR

Condition Key

Value Type

Single-valued/Multivalued

Description

swr:TargetOrgPath

string

Single-valued

Controls permissions of target sharing accounts based on their organization paths.

swr:TargetOrgId

string

Single-valued

Controls permissions of target sharing accounts based on their organization IDs.

swr:TargetAccountId

string

Single-valued

Controls permissions of target sharing accounts based on their IDs.

swr:VpcId

string

Single-valued

Controls permissions based on VPC IDs.

swr:SubnetId

string

Single-valued

Controls permissions based on subnet IDs.

swr:EnablePublicNameSpace

boolean

Single-valued

Controls whether public organizations can be created in SWR Enterprise Edition.

swr:EnableObsEncrypt

boolean

Single-valued

Controls whether buckets must be encrypted in SWR Enterprise Edition.

swr:AllowPublicAccess

boolean

Single-valued

Controls whether images can be public.

swr:TargetRegion

string

Single-valued

Controls permissions based on destination regions.