本篇文章给大家带来的内容是关于如何快速简单的在安全组内查询安全组详情,有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。
DescribeSecurityGroupAttribute
请求参数
返回参数
示例
请求示例
https://ecs.aliyuncs.com/?Action=DescribeSecurityGroupAttribute &RegionId=cn-hangzhou &SecurityGroupId=sg-F876FF7BA &<公共请求参数>
返回示例
XML 格式
<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 格式
{ "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" }] } }
错误码
以下为本接口特有的错误码。更多错误码,请访问 API 错误中心。
Atas ialah kandungan terperinci 如何快速简单的在安全组内查询安全组详情. Untuk maklumat lanjut, sila ikut artikel berkaitan lain di laman web China PHP!