How to quickly and easily query security group details within a security group

坏嘻嘻
Release: 2018-09-25 14:13:56
Original
3491 people have browsed it

The content of this article is about how to quickly and easily query the security group details within the security group. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

DescribeSecurityGroupAttribute

Request Parameters

How to quickly and easily query security group details within a security group

##Return Parameters

How to quickly and easily query security group details within a security group

Example

Request Example

https://ecs.aliyuncs.com/?Action=DescribeSecurityGroupAttribute
&RegionId=cn-hangzhou
&SecurityGroupId=sg-F876FF7BA
&<公共请求参数>
Copy after login

Return example

XML format

<DescribeSecurityGroupAttributeResponse>
     <RequestId>1651FBB6-4FBF-49FF-A9F5-DF5D696C7EC6</RequestId>
     <RegionId>cn-hangzhou</RegionId>
     <SecurityGroupId>C0003E8B-B930-4F59-ADC0-0E209A9012B0</SecurityGroupId>
     <Description>for demo</Description>
     <InnerAccessPolicy>Accept</InnerAccessPolicy>
        <Permissions>
         <Permission>
              <IpProtocol>ALL</IpProtocol>
              <PortRange>-1/-1</PortRange>
                <SourceGroupId>8dsmf982</SourceGroupId>
                <SourceGroupOwnerAccount>test@aliyun.com</SourceGroupOwnerAccount>
              <Policy>Accept</Policy>
              <NicType>intranet</NicType>
         </Permission>
          <Permission>
              <IpProtocol>tcp</IpProtocol>
              <PortRange>1/65535</PortRange>
              <SourceCidrIp>0.0.0.0/0</SourceCidrIp>
              <Policy>accept</Policy>
              <NicType>internet</NicType>
         </Permission>
     </Permissions>
</DescribeSecurityGroupAttributeResponse>
Copy after login

JSON format

{
    "RequestId": "1651FBB6-4FBF-49FF-A9F5-DF5D696C7EC6",
    "RegionId": "cn-hangzhou",
    "SecurityGroupId": "C0003E8B-B930-4F59-ADC0-0E209A9012B0",
    "Description": "for demo",
    "Permissions": {
        "Permission": [{
            "IpProtocol": "ALL",
            "PortRange": "-1/-1",
            "SourceGroupId": "8dsmf982",
            "SourceGroupOwnerAccount": "test@aliyun.com"
            "Policy": "Accept",
            "NicType": "intranet"
        },
        {
            "IpProtocol": "tcp",
            "PortRange": "1/65535",
            "SourceCidrIp": "0.0.0.0/0",
            "Policy": "accept",
            "NicType": "internet"
        }]
    }
}
Copy after login

Error codes

The following are the error codes unique to this interface. For more error codes, please visit the API Error Center.

How to quickly and easily query security group details within a security group

The above is the detailed content of How to quickly and easily query security group details within a security group. 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