本文在介绍如何查询创建的安全组的基本信息并且返回列表按照安全组ID降序排列的基础上,重点探讨了其具体步骤,本文内容紧凑,希望大家可以有所收获。
DescribeSecurityGroups
请求参数
返回参数
示例
请求示例
https://ecs.aliyuncs.com/?Action=DescribeSecurityGroups &RegionId=cn-hangzhou &<公共请求参数>
返回示例
XML格式
<DescribeSecurityGroupsResponse> <RequestId>94D38899-626D-434A-891F-7E1F77A81525</RequestId> <TotalCount>4</TotalCount> <PageNumber>1</PageNumber> <PageSize>10</PageSize> <RegionId>cn-hangzhou</RegionId> <SecurityGroups> <SecurityGroup> <SecurityGroupId>sg-F876FF7BA</SecurityGroupId> <Description>Test</Description> </SecurityGroup> <SecurityGroup> <SecurityGroupId>sg-086FFC27A</SecurityGroupId> <Description>test00212</Description> </SecurityGroup> <SecurityGroup> <SecurityGroupId>sg-BA4B7975B</SecurityGroupId> <Description>cn-hangzhou test group</Description> </SecurityGroup> <SecurityGroup> <SecurityGroupId>sg-35F20777C</SecurityGroupId> <Description>cn-hangzhou test group</Description> </SecurityGroup> </SecurityGroups> </DescribeSecurityGroupsResponse>
JSON格式
{ "RequestId": "94D38899-626D-434A-891F-7E1F77A81525", "TotalCount": 4, "PageSize": "10", "RegionId": "cn-hangzhou", "PageNumber": "1", "SecurityGroups": { "SecurityGroup": [{ "SecurityGroupId": "sg-F876FF7BA", "Description": "TestByXcf" }, { "SecurityGroupId": "sg-086FFC27A", "Description": "test00212" }, { "SecurityGroupId": "sg-BA4B7975B", "Description": "cn-hangzhou test group" }, { "SecurityGroupId": "sg-35F20777C", "Description": "cn-hangzhou test group" }] } }
错误码
全是公共错误码。更多错误码,请访问 API错误中心。
以上是如何查询创建的安全组的基本信息并且返回列表按照安全组ID降序排列的详细内容。更多信息请关注PHP中文网其他相关文章!