本文由 DTcms素材网 – DT素材网 发布,转载请注明出处,如有问题请联系我们!如何查询创建的安全组的基本信息并且返回列表按照安全组ID降序排列
收藏 本文在介绍如何查询创建的安全组的基本信息并且返回列表按照安全组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错误中心。