public static class AuthorizeSecurityGroupRequest.AuthorizeSecurityGroupRequestPermissions
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
description
The description of the security group rule.
|
String |
destCidrIp
The destination IPv4 CIDR block.
|
String |
ipProtocol
The protocol.
|
String |
ipv6DestCidrIp
The destination IPv6 CIDR block.
|
String |
ipv6SourceCidrIp
The source IPv6 CIDR block of the security group rule.
|
String |
nicType
The network interface controller (NIC) type of the security group rule if the security group resides in the classic network.
|
String |
policy
The action of the security group rule.
|
String |
portRange
The range of destination port numbers for the protocols specified in the security group rule.
|
String |
priority
The priority of the security group rule.
|
String |
sourceCidrIp
The source IPv4 CIDR block of the security group rule.
|
String |
sourceGroupId
The ID of the source security group that is specified in the security group rule.
|
String |
sourceGroupOwnerAccount
The Alibaba Cloud account that manages the source security group specified in the security group rule.
|
Long |
sourceGroupOwnerId
The ID of the Alibaba Cloud account that manages the source security group specified in the security group rule.
|
String |
sourcePortRange
The range of source port numbers for the protocols specified in the security group rule.
|
String |
sourcePrefixListId
The ID of the source prefix list of the security group rule.
|
构造器和说明 |
---|
AuthorizeSecurityGroupRequestPermissions() |
@NameInMap(value="Description") public String description
The description of the security group rule. The description must be 1 to 512 characters in length.
Valid values of N: 1 to 100.
example:This is description.
@NameInMap(value="DestCidrIp") public String destCidrIp
The destination IPv4 CIDR block. IPv4 CIDR blocks and IPv4 addresses are supported.
This parameter is used to support quintuple rules. For more information, see Security group quintuple rules.
Valid values of N: 1 to 100.
example:10.0.0.0/8
@NameInMap(value="IpProtocol") public String ipProtocol
The protocol. The values of this parameter are case-insensitive. Valid values:
Valid values of N: 1 to 100.
example:ALL
@NameInMap(value="Ipv6DestCidrIp") public String ipv6DestCidrIp
The destination IPv6 CIDR block. IPv6 CIDR blocks and IPv6 addresses are supported.
This parameter is used to support quintuple rules. For more information, see Security group quintuple rules.
Valid values of N: 1 to 100.
example:This parameter is valid only for ECS instances that reside in VPCs and support IPv6 CIDR blocks. You cannot specify both this parameter and
DestCidrIp
in the same request.
2001:250:6000::***
@NameInMap(value="Ipv6SourceCidrIp") public String ipv6SourceCidrIp
The source IPv6 CIDR block of the security group rule. IPv6 CIDR blocks and IPv6 addresses are supported.
Valid values of N: 1 to 100.
example:This parameter is valid only for Elastic Compute Service (ECS) instances that reside in virtual private clouds (VPCs) and support IPv6 CIDR blocks. You cannot specify both this parameter and
SourceCidrIp
in the same request.
2001:250:6000::***
@NameInMap(value="NicType") public String nicType
The network interface controller (NIC) type of the security group rule if the security group resides in the classic network. Valid values:
If the security group resides in a VPC, this parameter is set to intranet by default and cannot be modified.
If you specify only DestGroupId when you configure access permissions between security groups, you must set this parameter to intranet.
Default value: internet.
Valid values of N: 1 to 100.
example:intranet
@NameInMap(value="Policy") public String policy
The action of the security group rule. Valid values:
Default value: accept.
Valid values of N: 1 to 100.
example:accept
@NameInMap(value="PortRange") public String portRange
The range of destination port numbers for the protocols specified in the security group rule. Valid values:
For more information, see Common ports.
Valid values of N: 1 to 100.
example:80/80
@NameInMap(value="Priority") public String priority
The priority of the security group rule. A smaller value specifies a higher priority. Valid values: 1 to 100.
Default value: 1.
Valid values of N: 1 to 100.
example:1
@NameInMap(value="SourceCidrIp") public String sourceCidrIp
The source IPv4 CIDR block of the security group rule. IPv4 CIDR blocks and IPv4 addresses are supported.
Valid values of N: 1 to 100.
example:10.0.0.0/8
@NameInMap(value="SourceGroupId") public String sourceGroupId
The ID of the source security group that is specified in the security group rule.
SourceGroupId
, SourceCidrIp
, Ipv6SourceCidrIp
, and SourcePrefixListId
.SourceGroupId
but do not specify SourceCidrIp
or Ipv6SourceCidrIp
, you must set NicType
to intranet
.SourceGroupId
and SourceCidrIp
, SourceCidrIp
takes precedence.Valid values of N: 1 to 100.
When you specify this parameter, take note of the following items:
sg-bp67acfmxazb4p****
@NameInMap(value="SourceGroupOwnerAccount") public String sourceGroupOwnerAccount
The Alibaba Cloud account that manages the source security group specified in the security group rule.
SourceGroupOwnerAccount
and SourceGroupOwnerId
are empty, access permissions are configured for another security group in your Alibaba Cloud account.SourceCidrIp
, SourceGroupOwnerAccount
is ignored.Valid values of N: 1 to 100.
example:@NameInMap(value="SourceGroupOwnerId") public Long sourceGroupOwnerId
The ID of the Alibaba Cloud account that manages the source security group specified in the security group rule.
SourceGroupOwnerAccount
and SourceGroupOwnerId
are empty, access permissions are configured for another security group in your Alibaba Cloud account.SourceCidrIp
, SourceGroupOwnerAccount
is ignored.Valid values of N: 1 to 100.
example:1234567890
@NameInMap(value="SourcePortRange") public String sourcePortRange
The range of source port numbers for the protocols specified in the security group rule. Valid values:
This parameter is used to support quintuple rules. For more information, see Security group quintuple rules.
Valid values of N: 1 to 100.
example:7000/8000
@NameInMap(value="SourcePrefixListId") public String sourcePrefixListId
The ID of the source prefix list of the security group rule. You can call the DescribePrefixLists operation to query the IDs of available prefix lists.
Valid values of N: 1 to 100.
When you specify this parameter, take note of the following items:
SourceCidrIp
, Ipv6SourceCidrIp
, or SourceGroupId
, this parameter is ignored.pl-x1j1k5ykzqlixdcy****
public static AuthorizeSecurityGroupRequest.AuthorizeSecurityGroupRequestPermissions build(Map<String,?> map) throws Exception
Exception
public AuthorizeSecurityGroupRequest.AuthorizeSecurityGroupRequestPermissions setDescription(String description)
public String getDescription()
public AuthorizeSecurityGroupRequest.AuthorizeSecurityGroupRequestPermissions setDestCidrIp(String destCidrIp)
public String getDestCidrIp()
public AuthorizeSecurityGroupRequest.AuthorizeSecurityGroupRequestPermissions setIpProtocol(String ipProtocol)
public String getIpProtocol()
public AuthorizeSecurityGroupRequest.AuthorizeSecurityGroupRequestPermissions setIpv6DestCidrIp(String ipv6DestCidrIp)
public String getIpv6DestCidrIp()
public AuthorizeSecurityGroupRequest.AuthorizeSecurityGroupRequestPermissions setIpv6SourceCidrIp(String ipv6SourceCidrIp)
public String getIpv6SourceCidrIp()
public AuthorizeSecurityGroupRequest.AuthorizeSecurityGroupRequestPermissions setNicType(String nicType)
public String getNicType()
public AuthorizeSecurityGroupRequest.AuthorizeSecurityGroupRequestPermissions setPolicy(String policy)
public String getPolicy()
public AuthorizeSecurityGroupRequest.AuthorizeSecurityGroupRequestPermissions setPortRange(String portRange)
public String getPortRange()
public AuthorizeSecurityGroupRequest.AuthorizeSecurityGroupRequestPermissions setPriority(String priority)
public String getPriority()
public AuthorizeSecurityGroupRequest.AuthorizeSecurityGroupRequestPermissions setSourceCidrIp(String sourceCidrIp)
public String getSourceCidrIp()
public AuthorizeSecurityGroupRequest.AuthorizeSecurityGroupRequestPermissions setSourceGroupId(String sourceGroupId)
public String getSourceGroupId()
public AuthorizeSecurityGroupRequest.AuthorizeSecurityGroupRequestPermissions setSourceGroupOwnerAccount(String sourceGroupOwnerAccount)
public String getSourceGroupOwnerAccount()
public AuthorizeSecurityGroupRequest.AuthorizeSecurityGroupRequestPermissions setSourceGroupOwnerId(Long sourceGroupOwnerId)
public Long getSourceGroupOwnerId()
public AuthorizeSecurityGroupRequest.AuthorizeSecurityGroupRequestPermissions setSourcePortRange(String sourcePortRange)
public String getSourcePortRange()
public AuthorizeSecurityGroupRequest.AuthorizeSecurityGroupRequestPermissions setSourcePrefixListId(String sourcePrefixListId)
public String getSourcePrefixListId()
Copyright © 2024. All rights reserved.