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

坏嘻嘻
Release: 2018-09-20 09:26:46
Original
1554 people have browsed it

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"]
&<公共请求参数>
Copy after login

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>
Copy after login

JSON format

{
    "RequestId": "8F4CAE3F-7892-4662-83A5-2C2FFD639553",
    "InstanceRamRoleSets": {
        "InstanceRamRoleSet": [
            {
                "InstanceId": "i-instance1",
                "RamRoleName": "RamRoleTest"
            }
        ]
    },
    "TotalCount": 1
}
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template