Queries the RAM policy required to execute a template.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oos:GenerateExecutionPolicy |
get |
*Template
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| TemplateName |
string |
No |
The name of the template. |
vmeixme |
| TemplateVersion |
string |
No |
The version of the template. The latest version is used by default. |
v2 |
| RamRole |
string |
No |
The RAM role. |
AliyunServiceRoleForOOSBandwidthScheduler |
| TemplateContent |
string |
No |
The content of the template in JSON or YAML format. Specify this parameter to check the access policies that are required by the template content. |
{ "Description": "Example template, describe instances in some status", "FormatVersion": "OOS-2019-06-01", "Parameters": {}, "Tasks": [ { "Name": "describeInstances", "Action": "ACS::ExecuteAPI", "Description": "desc-en", "Properties": { "Service": "ECS", "API": "DescribeInstances", "Parameters": { "Status": "Running" } } } ] } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|
||
| Policy |
string |
The RAM policy. |
{} |
| RequestId |
string |
The request ID. |
14A07460-EBE7-47CA-9757-12CC4761D47A |
| MissingPolicy |
string |
The list of missing permissions. |
[{'Action': ['ecs:DescribeInvocationResults', 'ecs:DescribeInstances', 'ecs:RunCommand', 'ecs:DescribeInvocations'], 'ServiceName': 'ecs', 'Resources': '*'}] |
Examples
Success response
JSON format
{
"Policy": "{}",
"RequestId": "14A07460-EBE7-47CA-9757-12CC4761D47A",
"MissingPolicy": "[{'Action': ['ecs:DescribeInvocationResults', 'ecs:DescribeInstances', 'ecs:RunCommand', 'ecs:DescribeInvocations'], 'ServiceName': 'ecs', 'Resources': '*'}]"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.