Get the RAM policy for a template

更新时间:
复制 MD 格式

This topic describes how to use the OOS console or OpenAPI to get the required permissions to execute a template and identify any missing permissions for a specified RAM role.

Console

  1. Log on to the OOS console. In the left navigation pane, choose Automated Task > Public Template or Custom Template. Find the template you want and click Create an execution..

  2. On the Basic Information page, click Next: Set Parameters.

  3. On the Parameter Settings page, expand Advanced. In the RAM Role Assumed by OOS section, select Specify RAM Role and Use Permissions Granted to This Role.

  4. Hover over View the permission policy required to execute this template to view the minimum required permission policy.

OpenAPI

  1. Open the GenerateExecutionPolicy API debugging page.

  2. Enter values for TemplateName and RamRole, and then click Call Now.image

    Important
    • To execute with the current account's permissions, leave the RamRole parameter empty.

    • To execute with a specific RAM role, enter its name in the RamRole parameter.

  3. In the response, the Policy field contains the required permission policy, and the MissingPolicy field lists the permissions the specified RAM role lacks.

  4. After you obtain the policy, grant the required permissions. For more information, see Grant permissions to a RAM user and Manage the permissions of a RAM role.