public class DescribeSecurityGroupsRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
DescribeSecurityGroupsRequest.DescribeSecurityGroupsRequestTag |
限定符和类型 | 字段和说明 |
---|---|
Boolean |
dryRun
Specifies whether to perform only a dry run, without performing the actual request.
|
Boolean |
fuzzyQuery
This parameter is deprecated.
|
Boolean |
isQueryEcsCount
Specifies whether to query the capacity of the security group.
|
Integer |
maxResults
The maximum number of entries per page.
|
String |
networkType
The network type of the security group.
|
String |
nextToken
The pagination token that is used in the next request to retrieve a new page of results.
|
String |
ownerAccount |
Long |
ownerId |
Integer |
pageNumber
The page number.
|
Integer |
pageSize
The number of entries per page.
|
String |
regionId
The region ID.
|
String |
resourceGroupId
The ID of the resource group to which the security group belongs.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
securityGroupId
The security group ID.
|
String |
securityGroupIds
The security group IDs.
|
String |
securityGroupName
The name of the security group.
|
String |
securityGroupType
The type of the security group.
|
Boolean |
serviceManaged
Specifies whether to query managed security groups.
|
List<DescribeSecurityGroupsRequest.DescribeSecurityGroupsRequestTag> |
tag
The tags to add to the security groups.
|
String |
vpcId
The ID of the virtual private cloud (VPC) to which the security group belongs.
|
构造器和说明 |
---|
DescribeSecurityGroupsRequest() |
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether to perform only a dry run, without performing the actual request. Valid values:
Default value: false.
example:false
@NameInMap(value="FuzzyQuery") public Boolean fuzzyQuery
example:This parameter is deprecated.
null
@NameInMap(value="IsQueryEcsCount") public Boolean isQueryEcsCount
Specifies whether to query the capacity of the security group. If you set this parameter to True, the EcsCount
and AvailableInstanceAmount
values in the response are valid.
example:This parameter is deprecated.
null
@NameInMap(value="MaxResults") public Integer maxResults
The maximum number of entries per page. If you specify this parameter, both MaxResults
and NextToken
are used for a paged query.
Maximum value: 100.
Default value: 10.
example:10
@NameInMap(value="NetworkType") public String networkType
The network type of the security group. Valid values:
vpc
@NameInMap(value="NextToken") public String nextToken
The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.
example:e71d8a535bd9cc11
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PageNumber") public Integer pageNumber
The page number.
Pages start from page 1.
Default value: 1.
example:This parameter will be removed in the future. We recommend that you use NextToken and MaxResults for a paged query.
1
@NameInMap(value="PageSize") public Integer pageSize
The number of entries per page.
Valid values: 1 to 50.
Default value: 10.
example:This parameter will be removed in the future. We recommend that you use NextToken and MaxResults for a paged query.
10
@NameInMap(value="RegionId") public String regionId
The region ID. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which the security group belongs. If this parameter is specified to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response. You can call the ListResourceGroups operation to query the most recent resource group list.
example:Resources in the default resource group are displayed in the response regardless of how this parameter is configured.
rg-bp67acfmxazb4p****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SecurityGroupId") public String securityGroupId
The security group ID.
example:sg-bp67acfmxazb4p****
@NameInMap(value="SecurityGroupIds") public String securityGroupIds
The security group IDs. Set this parameter to a JSON array that consists of up to 100 security group IDs. Separate the security group IDs with commas (,).
example:["sg-bp67acfmxazb4p****", "sg-bp67acfmxazb4p****", "sg-bp67acfmxazb4p****",....]
@NameInMap(value="SecurityGroupName") public String securityGroupName
The name of the security group.
example:SGTestName
@NameInMap(value="SecurityGroupType") public String securityGroupType
The type of the security group. Valid values:
example:If you do not specify this parameter, both basic and advanced security groups are queried.
normal
@NameInMap(value="ServiceManaged") public Boolean serviceManaged
Specifies whether to query managed security groups. Valid values:
false
if can be null:true
@NameInMap(value="Tag") public List<DescribeSecurityGroupsRequest.DescribeSecurityGroupsRequestTag> tag
The tags to add to the security groups.
@NameInMap(value="VpcId") public String vpcId
The ID of the virtual private cloud (VPC) to which the security group belongs.
example:vpc-bp67acfmxazb4p****
public static DescribeSecurityGroupsRequest build(Map<String,?> map) throws Exception
Exception
public DescribeSecurityGroupsRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public DescribeSecurityGroupsRequest setFuzzyQuery(Boolean fuzzyQuery)
public Boolean getFuzzyQuery()
public DescribeSecurityGroupsRequest setIsQueryEcsCount(Boolean isQueryEcsCount)
public Boolean getIsQueryEcsCount()
public DescribeSecurityGroupsRequest setMaxResults(Integer maxResults)
public Integer getMaxResults()
public DescribeSecurityGroupsRequest setNetworkType(String networkType)
public String getNetworkType()
public DescribeSecurityGroupsRequest setNextToken(String nextToken)
public String getNextToken()
public DescribeSecurityGroupsRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public DescribeSecurityGroupsRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public DescribeSecurityGroupsRequest setPageNumber(Integer pageNumber)
public Integer getPageNumber()
public DescribeSecurityGroupsRequest setPageSize(Integer pageSize)
public Integer getPageSize()
public DescribeSecurityGroupsRequest setRegionId(String regionId)
public String getRegionId()
public DescribeSecurityGroupsRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public DescribeSecurityGroupsRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public DescribeSecurityGroupsRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public DescribeSecurityGroupsRequest setSecurityGroupId(String securityGroupId)
public String getSecurityGroupId()
public DescribeSecurityGroupsRequest setSecurityGroupIds(String securityGroupIds)
public String getSecurityGroupIds()
public DescribeSecurityGroupsRequest setSecurityGroupName(String securityGroupName)
public String getSecurityGroupName()
public DescribeSecurityGroupsRequest setSecurityGroupType(String securityGroupType)
public String getSecurityGroupType()
public DescribeSecurityGroupsRequest setServiceManaged(Boolean serviceManaged)
public Boolean getServiceManaged()
public DescribeSecurityGroupsRequest setTag(List<DescribeSecurityGroupsRequest.DescribeSecurityGroupsRequestTag> tag)
public List<DescribeSecurityGroupsRequest.DescribeSecurityGroupsRequestTag> getTag()
public DescribeSecurityGroupsRequest setVpcId(String vpcId)
public String getVpcId()
Copyright © 2024. All rights reserved.