Home  >  Article  >  Operation and Maintenance  >  How to query the assigned instance RAM role on one or more ECS instances

How to query the assigned instance RAM role on one or more ECS instances

坏嘻嘻
坏嘻嘻Original
2018-09-20 09:26:461537browse

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

How to query the assigned instance RAM role on one or more ECS instances

Return Parameters

How to query the assigned instance RAM role on one or more ECS instances

##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.

How to query the assigned instance RAM role on one or more ECS instances

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn