Help Center/ Server Migration Service/ API Reference/ Permissions and Supported Actions/ Actions Supported by Identity Policy-based Authorization
Updated on 2026-02-05 GMT+08:00

Actions Supported by Identity Policy-based Authorization

IAM provides system-defined identity policies to define common actions supported by cloud services. You can also create custom identity policies using the actions supported by cloud services for more refined access control.

In addition to IAM, the Organizations service also 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 an organizational unit (OU) or a member account, the SCPs do not directly grant permissions to that OU or member account. Instead, the SCPs just determine what permissions are available for that member account or those member accounts under that OU. The granted permissions can be applied only if they are allowed by the SCPs.

To learn more about how IAM is different from Organizations for access control, see What Are the Differences in Access Control Between IAM and Organizations?

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

Actions

Actions are specific operations that are allowed or denied in an identity policy.

  • 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 identity policy.
  • 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 identity policy statements.
    • If this column includes a resource type, you must specify a URN for the Resource element in your identity policy 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 SMS, see Resources.

  • The Condition Key column contains keys that you can specify in the Condition element of an identity policy 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 SMS, see Conditions.

  • The Alias column lists the policy actions that are configured in identity policies. With these actions, you can use APIs for policy-based authorization. For details, see Policies and Identity Policies.

The following table lists the actions that you can define in identity policy statements for SMS.

Table 1 Actions supported by SMS

Action

Description

Access Level

Resource Type (*: required)

Condition Key

Alias

sms:template:list

Grants the permission to list templates.

list

template

-

sms:server:queryServer

sms:template:create

Grants the permission to create a server template.

write

template

-

sms:server:migrationServer

sms:template:batchDelete

Grants the permission to delete templates in batches.

write

template

-

-

sms:template:get

Grants the permission to query templates.

read

template

-

sms:server:queryServer

sms:template:update

Grants the permission to update templates.

write

template

-

sms:server:migrationServer

sms:template:getTargetPassword

Grants the permission to query the target server password configured in a template.

read

template

-

sms:server:queryServer

sms:template:delete

Grants the permission to delete templates.

write

template

-

sms:server:migrationServer

sms:server:listErrors

Grants the permission to query server errors.

list

server

-

server:queryServer

sms:server:list

Grants the permission to list servers.

list

server

g:EnterpriseProjectId

sms:server:queryServer

sms:server:register

Grants the permission to report the source server list.

write

server

g:EnterpriseProjectId

sms:server:registerServer

sms:server:batchDelete

Grants the permission to delete servers in batches.

write

server

g:EnterpriseProjectId

-

sms:server:get

Grants the permission to query servers.

read

server

g:EnterpriseProjectId

sms:server:queryServer

sms:server:update

Grants the permission to update servers.

write

server

g:EnterpriseProjectId

sms:server:migrationServer

sms:server:delete

Grants the permission to delete servers.

write

server

g:EnterpriseProjectId

sms:server:migrationServer

sms:server:updateDiskInfo

Grants the permission to update server disk information.

write

server

g:EnterpriseProjectId

sms:server:registerServer

sms:server:overview

Grants the permission to query general information of servers.

read

server

-

sms:server:queryServer

sms:server:updateState

Grants the permission to update the server status.

write

server

g:EnterpriseProjectId

sms:server:migrationServer

sms:server:listTask

Grants the permission to query the task list.

list

server

g:EnterpriseProjectId

sms:server:queryServer

sms:server:createTask

Grants the permission to create tasks.

write

server

g:EnterpriseProjectId

sms:server:migrationServer

sms:server:batchDeleteTask

Grants the permission to delete tasks in batches.

write

server

g:EnterpriseProjectId

-

sms:server:getTask

Grants the permission to query tasks.

read

server

g:EnterpriseProjectId

sms:server:queryServer

sms:server:updateTask

Grants the permission to update a task.

write

server

g:EnterpriseProjectId

sms:server:migrationServer

sms:server:deleteTask

Grants the permission to delete tasks.

write

server

g:EnterpriseProjectId

sms:server:deleteTask

sms:server:manageTask

Grants the permission to manage tasks.

write

server

g:EnterpriseProjectId

sms:server:migrationServer

sms:server:updateTaskProgress

Grants the permission to report the migration progress.

write

server

g:EnterpriseProjectId

sms:server:migrationServer

sms:server:unlock

Grants the permission to unlock the target endpoint.

write

server

g:EnterpriseProjectId

-

sms:server:collectLog

Grants the permission to upload logs.

write

server

g:EnterpriseProjectId

sms:server:migrationServer

sms:server:getTaskPassphrase

Grants the permission to query certificates' passphrases.

read

server

g:EnterpriseProjectId

sms:server:queryServer

sms::checkNetwork

Grants the network check permission.

read

server

-

-

sms:server:getTaskSpeedLimit

Grants the permission to query the task rate limit.

read

server

g:EnterpriseProjectId

sms:server:getTaskSpeedLimit

sms:server:updateTaskSpeedLimit

Grants the permission to set the rate limit of migration tasks.

write

server

g:EnterpriseProjectId

sms:server:migrationServer

sms:server:getCommand

Grants the permission to query server commands.

read

server

g:EnterpriseProjectId

sms:server:migrationServer

sms:server:updateCommandResult

Grants the permission to update the server command execution result.

write

server

g:EnterpriseProjectId

sms:server:migrationServer

sms:server:getCert

Grants the permission to obtain keys.

read

server

g:EnterpriseProjectId

sms:server:queryServer

sms:migproject:list

Grants the permission to list migration projects.

list

migproject

-

sms:server:queryServer

sms:migproject:create

Grants the permission to create migration projects.

write

migproject

-

sms:server:migrationServer

sms:migproject:get

Grants the permission to query migration projects.

read

migproject

-

sms:server:queryServer

sms:migproject:update

Grants the permission to update migration projects.

write

migproject

-

sms:server:migrationServer

sms:migproject:delete

Grants the permission to delete migration projects.

write

migproject

-

sms:server:migrationServer

sms::getConfig

Grants the permission to obtain Agent configurations.

read

-

-

sms:server:queryServer

sms:server:updateNetworkCheckInfo

Grants the permission to update network check information.

write

task

g:EnterpriseProjectId

sms:server:migrationServer

sms:server:getTaskConfig

Grants the permission to query task configurations.

read

task

g:EnterpriseProjectId

sms:server:queryServer

sms:server:updateTaskConfig

Grants the permission to update task configurations.

write

task

g:EnterpriseProjectId

sms:server:migrationServer

sms:server:getConsistencyCheckResult

Grants the permission to query consistency check results.

read

server

g:EnterpriseProjectId

sms:server:queryServer

sms:server:updateConsistencyCheckResult

Grants the permission to update consistency check results.

write

server

g:EnterpriseProjectId

sms:server:migrationServer

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

Table 2 Actions and dependencies supported by SMS APIs

API

Action

Dependencies

GET /v3/vm/templates

sms:template:list

-

POST /v3/vm/templates

sms:template:create

-

POST /v3/vm/templates/delete

sms:template:batchDelete

-

GET /v3/vm/templates/{id}

sms:template:get

-

PUT /v3/vm/templates/{id}

sms:template:update

-

GET /v3/vm/templates/{id}/target-password

sms:template:getTargetPassword

-

DELETE /v3/vm/templates/{id}

sms:template:delete

-

GET /v3/errors

sms:server:listErrors

-

GET /v3/sources

sms:server:list

-

POST /v3/sources

sms:server:register

-

POST /v3/sources/delete

sms:server:batchDelete

  • ecs:cloudServers:showServer
  • ecs:cloudServers:attach
  • evs:volumes:use
  • ecs:cloudServers:stop
  • ecs:cloudServers:start
  • ecs:cloudServers:detachVolume
  • evs:volumes:delete
  • evs:snapshots:delete
  • evs:volumes:get

GET /v3/sources/{source_id}

sms:server:get

-

PUT /v3/sources/{source_id}

sms:server:update

-

DELETE /v3/sources/{source_id}

sms:server:delete

  • ecs:cloudServers:showServer
  • ecs:cloudServers:attach
  • evs:volumes:use
  • ecs:cloudServers:stop
  • ecs:cloudServers:start
  • ecs:cloudServers:detachVolume
  • evs:volumes:delete
  • evs:snapshots:delete
  • evs:volumes:get

PUT /v3/sources/{source_id}/diskinfo

sms:server:updateDiskInfo

-

GET /v3/sources/overview

sms:server:overview

-

PUT /v3/sources/{source_id}/changestate

sms:server:updateState

-

GET /v3/tasks

sms:server:listTask

-

POST /v3/tasks

sms:server:createTask

-

POST /v3/tasks/delete

sms:server:batchDeleteTask

  • ecs:cloudServers:showServer
  • ecs:cloudServers:attach
  • evs:volumes:use
  • ecs:cloudServers:stop
  • ecs:cloudServers:start
  • ecs:cloudServers:detachVolume
  • evs:volumes:delete
  • evs:snapshots:delete
  • evs:volumes:get

GET /v3/tasks/{task_id}

sms:server:getTask

-

PUT /v3/tasks/{task_id}

sms:server:updateTask

-

DELETE /v3/tasks/{task_id}

sms:server:deleteTask

  • ecs:cloudServers:showServer
  • ecs:cloudServers:attach
  • evs:volumes:use
  • ecs:cloudServers:stop
  • ecs:cloudServers:start
  • ecs:cloudServers:detachVolume
  • evs:volumes:delete
  • evs:snapshots:delete
  • evs:volumes:get

POST /v3/tasks/{task_id}/action

sms:server:manageTask

-

PUT /v3/tasks/{task_id}/progress

sms:server:updateTaskProgress

-

POST /v3/tasks/{task_id}/unlock

sms:server:unlock

-

POST /v3/tasks/{task_id}/log

sms:server:collectLog

-

GET /v3/tasks/{task_id}/passphrase

sms:server:getTaskPassphrase

-

GET /v3/tasks/{t_project_id}/networkacl/{t_network_id}/check

sms::checkNetwork

-

GET /v3/tasks/{task_id}/speed-limit

sms:server:getTaskSpeedLimit

-

POST /v3/tasks/{task_id}/speed-limit

sms:server:updateTaskSpeedLimit

-

GET /v3/sources/{server_id}/command

sms:server:getCommand

-

POST /v3/sources/{server_id}/command_result

sms:server:updateCommandResult

-

GET /v3/tasks/{task_id}/certkey

sms:server:getCert

-

GET /v3/migprojects

sms:migproject:list

-

POST /v3/migprojects

sms:migproject:create

-

GET /v3/migprojects/{mig_project_id}

sms:migproject:get

-

PUT /v3/migprojects/{mig_project_id}

sms:migproject:update

-

DELETE /v3/migprojects/{mig_project_id}

sms:migproject:delete

-

PUT /v3/migprojects/{mig_project_id}/default

sms:migproject:update

-

GET /v3/config

sms::getConfig

-

POST /v3/{task_id}/update-network-check-info

sms:server:updateNetworkCheckInfo

-

POST /v3/tasks/{task_id}/configuration-setting

sms:server:updateTaskConfig

-

GET /v3/tasks/{task_id}/consistency-result

sms:server:getConsistencyCheckResult

-

POST /v3/tasks/{task_id}/consistency-result

sms:server:updateConsistencyCheckResult

-

Resources

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

The following table lists the resource types that you can specify in identity policy statements for SMS.

Table 3 Resource types supported by SMS

Resource Type

URN

server

sms::<account-id>:server:*

sms::<account-id>:server:<server-id>

Task

sms::<account-id>:task:*

sms::<account-id>:task:<task-id>

template

sms::<account-id>:template:*

sms::<account-id>:template:<template-id>

migproject

sms::<account-id>:migproject:*

sms::<account-id>:migproject:<migproject-id>

Conditions

SMS does not support service-specific condition keys in identity policies.

It can only use global condition keys applicable to all services. For details, see Global Condition Keys.