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.
-
Go to the Policies page in the RAM Console and click Create Policy.
-
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": "*"
}
]
}
-
Enter a name for the policy, such as
PAIRecFullAccess, and click OK.
-
Go to the Permissions page in the RAM Console and click Add Permissions.
-
Select the principal (the RAM user to be authorized), select the
PAIRecFullAccesscustom policy that you created, and click OK.
该文章对您有帮助吗?