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
##Return Parameters
Example
Request Example
https://ecs.aliyuncs.com/?Action=DescribeSecurityGroupAttribute &RegionId=cn-hangzhou &SecurityGroupId=sg-F876FF7BA &<公共请求参数>
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>
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" }] } }
Error codes
The following are the 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 quickly and easily query security group details within a security group. For more information, please follow other related articles on the PHP Chinese website!