Authorize a RAM user for PAI-Rec

更新时间:
复制 MD 格式

All PAI-Rec APIs now require authorization. By default, RAM users have no permissions for PAI-Rec. You must use your Alibaba Cloud account to grant the required permissions to your RAM users in the RAM Console.

  1. Go to the Policies page in the RAM Console and click Create Policy.

  1. On the Create Policy page, click the Script tab, paste the following policy content, and then click Next.

{
  "Version": "1",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "pairec:*",
      "Resource": "*"
    }
  ]
}
  1. Enter a name for the policy, such as PAIRecFullAccess, and click OK.

  1. Go to the Permissions page in the RAM Console and click Add Permissions.

  1. Select the principal (the RAM user to be authorized), select the PAIRecFullAccess custom policy that you created, and click OK.