這篇文章帶給大家的內容是關於如何快速簡單的在安全群組內查詢安全群組詳情,有一定的參考價值,有需要的朋友可以參考一下,希望對你有所幫助。
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 錯誤中心。
以上是如何快速簡單的在安全群組內查詢安全群組詳情的詳細內容。更多資訊請關注PHP中文網其他相關文章!