Server Migration Service (SMS)
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.
- For details about how to use these elements to create an IAM custom identity policy, see Creating a Custom Identity Policy.
- 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 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.
|
Action |
Description |
Access Level |
Resource Type (*: required) |
Condition Key |
Alias |
|---|---|---|---|---|---|
|
sms:template:list |
Grants permission to list templates. |
list |
template |
- |
sms:server:queryServer |
|
sms:template:create |
Grants permission to create a template. |
write |
template |
- |
sms:server:migrationServer |
|
sms:template:batchDelete |
Grants permission to batch delete templates. |
write |
template |
- |
- |
|
sms:template:get |
Grants permission to query the information about a template. |
read |
template |
- |
sms:server:queryServer |
|
sms:template:update |
Grants permission to modify a template. |
write |
template |
- |
sms:server:migrationServer |
|
sms:template:getTargetPassword |
Grants permission to query the target server password in a template. |
read |
template |
- |
sms:server:queryServer |
|
sms:template:delete |
Grants permission to delete a template. |
write |
template |
- |
sms:server:migrationServer |
|
sms:server:listErrors |
Grants permission to list failed source servers. |
list |
server |
- |
server:queryServer |
|
sms:server:list |
Grants permission to list source servers. |
list |
server |
sms:server:queryServer |
|
|
sms:server:register |
Grants permission to register a source server with SMS. |
write |
server |
sms:server:registerServer |
|
|
sms:server:batchDelete |
Grants permission to batch delete source server records. |
write |
server |
- |
|
|
sms:server:get |
Grants permission to query the details about a source server. |
read |
server |
sms:server:queryServer |
|
|
sms:server:update |
Grants permission to modify a source server name. |
write |
server |
sms:server:migrationServer |
|
|
sms:server:delete |
Grants permission to delete a source server record. |
write |
server |
sms:server:migrationServer |
|
|
sms:server:updateDiskInfo |
Grants permission to update disk information. |
write |
server |
sms:server:registerServer |
|
|
sms:server:overview |
Grants permission to obtain the summary of source servers. |
read |
server |
- |
sms:server:queryServer |
|
sms:server:updateState |
Grants permission to update the migration task status for a source server. |
write |
server |
sms:server:migrationServer |
|
|
sms:server:listTask |
Grants permission to list migration tasks. |
list |
server |
sms:server:queryServer |
|
|
sms:server:createTask |
Grants permission to create a migration task. |
write |
server |
sms:server:migrationServer |
|
|
sms:server:batchDeleteTask |
Grants permission to batch delete migration tasks. |
write |
server |
- |
|
|
sms:server:getTask |
Grants permission to query the details about a migration task. |
read |
server |
sms:server:queryServer |
|
|
sms:server:updateTask |
Grants permission to update a migration task. |
write |
server |
sms:server:migrationServer |
|
|
sms:server:deleteTask |
Grants permission to delete a migration task. |
write |
server |
sms:server:deleteTask |
|
|
sms:server:manageTask |
Grants permission to manage migration tasks. |
write |
server |
sms:server:migrationServer |
|
|
sms:server:updateTaskProgress |
Grants permission to report the migration progress and rate. |
write |
server |
sms:server:migrationServer |
|
|
sms:server:unlock |
Grants permission to unlock a target server. |
write |
server |
- |
|
|
sms:server:collectLog |
Grants permission to upload migration task logs. |
write |
server |
sms:server:migrationServer |
|
|
sms:server:getTaskPassphrase |
Grants permission to query a certificate passphrase. |
read |
server |
sms:server:queryServer |
|
|
sms:server:checkNetwork |
Grants permission to check NICs and security groups. |
read |
server |
- |
- |
|
sms:server:getTaskSpeedLimit |
Grants permission to query the traffic limiting rules of a migration task. |
read |
server |
sms:server:getTaskSpeedLimit |
|
|
sms:server:updateTaskSpeedLimit |
Grants permission to set traffic limiting rules for a migration task. |
write |
server |
sms:server:migrationServer |
|
|
sms:server:getCommand |
Grants permission to obtain commands from SMS. |
read |
server |
sms:server:migrationServer |
|
|
sms:server:updateCommandResult |
Grants permission to report command execution results to SMS. |
write |
server |
sms:server:migrationServer |
|
|
sms:server:getCert |
Grants permission to obtain an SSL certificate and private key. |
read |
server |
sms:server:queryServer |
|
|
sms:migproject:list |
Grants permission to list migration projects. |
list |
migproject |
- |
sms:server:queryServer |
|
sms:migproject:create |
Grants permission to create a migration project. |
write |
migproject |
- |
sms:server:migrationServer |
|
sms:migproject:get |
Grants permission to query details about a migration project. |
read |
migproject |
- |
sms:server:queryServer |
|
sms:migproject:update |
Grants permission to update a migration project. |
write |
migproject |
- |
sms:server:migrationServer |
|
sms:migproject:delete |
Grants permission to delete a migration project. |
write |
migproject |
- |
sms:server:migrationServer |
|
sms:migproject:update |
Grants permission to change the default migration project. |
write |
migproject |
- |
sms:server:migrationServer |
|
sms::getConfig |
Grants permission to obtain Agent configuration information. |
read |
- |
- |
sms:server:queryServer |
|
sms:server:updateNetworkCheckInfo |
Grants permission to update network measurement information. |
write |
task |
sms:server:migrationServer |
|
|
sms:server:getTaskConfig |
Grants permission to query the settings of advanced migration options of a task. |
read |
task |
sms:server:queryServer |
|
|
sms:server:updateTaskConfig |
Grants permission to set advanced migration options for a task. |
write |
task |
sms:server:migrationServer |
Each API of SMS usually supports one or more actions. Table 2 lists the supported actions and dependencies.
|
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 |
|
|
GET /v3/sources/{source_id} |
sms:server:get |
- |
|
PUT /v3/sources/{source_id} |
sms:server:update |
- |
|
DELETE /v3/sources/{source_id} |
sms:server:delete |
|
|
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 |
|
|
GET /v3/tasks/{task_id} |
sms:server:getTask |
- |
|
PUT /v3/tasks/{task_id} |
sms:server:updateTask |
- |
|
DELETE /v3/tasks/{task_id} |
sms:server:deleteTask |
|
|
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:server: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 |
- |
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.
|
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot