Checks whether the specified service roles are granted to Container Service for Kubernetes (ACK) within the current Alibaba Cloud account. ACK can access other cloud services, such as Elastic Compute Service (ECS), Object Storage Service (OSS), File Storage NAS (NAS), and Server Load Balancer (SLB), only after ACK is assigned the required service roles.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:CheckServiceRole |
none |
*All Resource
|
None | None |
Request syntax
POST /ram/check-service-role HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| roles |
array<object> |
Yes |
The list of service roles you want to check. |
|
|
object |
No |
The information about a service role. |
||
| name |
string |
Yes |
The server role name. For more information about the service roles and their permissions in ACK, see ACK roles. |
AliyunCSManagedAutoScalerRole |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| roles |
array<object> |
The check results. |
|
|
object |
The service roles. |
||
| name |
string |
The name of the service role. |
AliyunCSManagedAutoScalerRole |
| granted |
boolean |
Indicates whether the service role is assigned to ACK. Valid values:
Valid values:
|
true |
| message |
string |
The message that is displayed for a role that is not assigned to ACK. |
The role does not exist: AliyunCSManagedAutoScalerRole |
Examples
Success response
JSON format
{
"roles": [
{
"name": "AliyunCSManagedAutoScalerRole",
"granted": true,
"message": "The role does not exist: AliyunCSManagedAutoScalerRole"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.