Home > Article > Operation and Maintenance > How to query the assigned instance RAM role on one or more ECS instances
This article introduces how to query the assigned instance RAM role on one or more ECS instances, and focuses on the specific steps. The content of this article is compact, and I hope you can gain something from it.
DescribeInstanceRamRole
Request Parameters
Return Parameters
##Example
Request Example
https://ecs.aliyuncs.com/?Action=DescribeInstanceRamRole &RegionId=cn-hangzhou &InstanceIds=["i-instance1"] &<公共请求参数>
Return example
XML format
<DescribeInstanceRamRoleResponse> <RequestId>8F4CAE3F-7892-4662-83A5-2C2FFD639553</RequestId> <InstanceRamRoleSets> <InstanceRamRoleSet> <InstanceId>i-instance1</InstanceId> <RamRoleName>RamRoleTest</RamRoleName> </InstanceRamRoleSet> </InstanceRamRoleSets> <TotalCount>1</TotalCount> </DescribeInstanceRamRoleResponse>
JSON format
{ "RequestId": "8F4CAE3F-7892-4662-83A5-2C2FFD639553", "InstanceRamRoleSets": { "InstanceRamRoleSet": [ { "InstanceId": "i-instance1", "RamRoleName": "RamRoleTest" } ] }, "TotalCount": 1 }
Error codes
The following are error codes unique to this interface. For more error codes, please visit the API Error Center.The above is the detailed content of How to query the assigned instance RAM role on one or more ECS instances. For more information, please follow other related articles on the PHP Chinese website!