public class ModifySecurityGroupRuleRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
description
The description of the security group rule.
|
String |
destCidrIp
The destination IPv4 CIDR block.
|
String |
ipProtocol
The transport layer protocol of the security group rule.
|
String |
ipv6DestCidrIp
The destination IPv6 CIDR block.
|
String |
ipv6SourceCidrIp
The source IPv6 CIDR block.
|
String |
nicType
You cannot modify this parameter when you modify a security group rule by specifying its ID.\
You can add a new rule that meets your business requirements and delete the original rule.
|
String |
ownerAccount |
Long |
ownerId |
String |
policy
The action of the security group rule.
|
String |
portRange
The range of destination ports that correspond to the transport layer protocol.
|
String |
priority
The priority of the security group rule.
|
String |
regionId
The region ID of the security group.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
securityGroupId
The security group ID.
|
String |
securityGroupRuleId
The security group rule ID.\
This parameter is required when you modify a security group rule based on the security group rule ID.
|
String |
sourceCidrIp
The source IPv4 CIDR block.
|
String |
sourceGroupId
The source security group ID.
|
String |
sourceGroupOwnerAccount
The Alibaba Cloud account that manages the source security group when you configure a security group rule across accounts.
|
Long |
sourceGroupOwnerId
The ID of the Alibaba Cloud account that manages the source security group when you configure a security group rule across accounts.
|
String |
sourcePortRange
The range of source ports that correspond to the transport layer protocol.
|
String |
sourcePrefixListId
The ID of the source prefix list to which you want to control access.
|
构造器和说明 |
---|
ModifySecurityGroupRuleRequest() |
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.
example:123e4567-e89b-12d3-a456-426655440000
@NameInMap(value="Description") public String description
The description of the security group rule. The description must be 1 to 512 characters in length.
example:This is a new security group rule.
@NameInMap(value="DestCidrIp") public String destCidrIp
The destination IPv4 CIDR block. IPv4 CIDR blocks and IPv4 addresses are supported.
By default, this parameter is left empty.
example:10.0.0.0/8
@NameInMap(value="IpProtocol") public String ipProtocol
The transport layer protocol of the security group rule. The value of this parameter is case-insensitive. Valid values:
all
@NameInMap(value="Ipv6DestCidrIp") public String ipv6DestCidrIp
The destination IPv6 CIDR block. IPv6 CIDR blocks and IPv6 addresses are supported.
Only the IP addresses of instances in VPCs are supported. You cannot specify both Ipv6DestCidrIp and
DestCidrIp
.
By default, this parameter is left empty.
example:2001:db8:1234:1a00::***
@NameInMap(value="Ipv6SourceCidrIp") public String ipv6SourceCidrIp
The source IPv6 CIDR block. IPv6 CIDR blocks and IPv6 addresses are supported.
Only the IP addresses of instances in virtual private clouds (VPCs) are supported. You cannot specify both Ipv6SourceCidrIp and
SourceCidrIp
.
By default, this parameter is left empty.
example:2001:db8:1233:1a00::***
@NameInMap(value="NicType") public String nicType
You cannot modify this parameter when you modify a security group rule by specifying its ID.\ You can add a new rule that meets your business requirements and delete the original rule.
example:intranet
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Policy") public String policy
The action of the security group rule. Valid values:
Default value: accept.
example:accept
@NameInMap(value="PortRange") public String portRange
The range of destination ports that correspond to the transport layer protocol. Valid values:
80/80
@NameInMap(value="Priority") public String priority
The priority of the security group rule. Valid values: 1 to 100.
Default value: 1.
example:1
@NameInMap(value="RegionId") public String regionId
The region ID of the security group. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SecurityGroupId") public String securityGroupId
The security group ID.
This parameter is required.
example:sg-bp67acfmxazb4p****
@NameInMap(value="SecurityGroupRuleId") public String securityGroupRuleId
The security group rule ID.\ This parameter is required when you modify a security group rule based on the security group rule ID.
example:sgr-bp67acfmxa123b***
@NameInMap(value="SourceCidrIp") public String sourceCidrIp
The source IPv4 CIDR block. IPv4 CIDR blocks and IPv4 addresses are supported.
By default, this parameter is left empty.
example:10.0.0.0/8
@NameInMap(value="SourceGroupId") public String sourceGroupId
The source security group ID. You must specify either SourceGroupId
or SourceCidrIp
or specify both of them.
SourceGroupId
is specified but SourceCidrIp
is not specified, the value of NicType
must be set to intranet.SourceGroupId
and SourceCidrIp
are specified, the value of SourceCidrIp
prevails by default.sg-bp67acfmxa123b****
@NameInMap(value="SourceGroupOwnerAccount") public String sourceGroupOwnerAccount
The Alibaba Cloud account that manages the source security group when you configure a security group rule across accounts.
SourceGroupOwnerId
and SourceGroupOwnerAccount
are empty, access permissions are configured for another security group managed by your account.SourceCidrIp
is specified, SourceGroupOwnerAccount
is ignored.@NameInMap(value="SourceGroupOwnerId") public Long sourceGroupOwnerId
The ID of the Alibaba Cloud account that manages the source security group when you configure a security group rule across accounts.
SourceGroupOwnerId
and SourceGroupOwnerAccount
are empty, access permissions are configured for another security group managed by your account.SourceCidrIp
is specified, SourceGroupOwnerId
is ignored.12345678910
@NameInMap(value="SourcePortRange") public String sourcePortRange
The range of source ports that correspond to the transport layer protocol. Valid values:
80/80
@NameInMap(value="SourcePrefixListId") public String sourcePrefixListId
The ID of the source prefix list to which you want to control access. You can call the DescribePrefixLists operation to query the IDs of available prefix lists.
If you specify SourceCidrIp
, Ipv6SourceCidrIp
, or SourceGroupId
, this parameter is ignored.
pl-x1j1k5ykzqlixdcy****
public static ModifySecurityGroupRuleRequest build(Map<String,?> map) throws Exception
Exception
public ModifySecurityGroupRuleRequest setClientToken(String clientToken)
public String getClientToken()
public ModifySecurityGroupRuleRequest setDescription(String description)
public String getDescription()
public ModifySecurityGroupRuleRequest setDestCidrIp(String destCidrIp)
public String getDestCidrIp()
public ModifySecurityGroupRuleRequest setIpProtocol(String ipProtocol)
public String getIpProtocol()
public ModifySecurityGroupRuleRequest setIpv6DestCidrIp(String ipv6DestCidrIp)
public String getIpv6DestCidrIp()
public ModifySecurityGroupRuleRequest setIpv6SourceCidrIp(String ipv6SourceCidrIp)
public String getIpv6SourceCidrIp()
public ModifySecurityGroupRuleRequest setNicType(String nicType)
public String getNicType()
public ModifySecurityGroupRuleRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public ModifySecurityGroupRuleRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public ModifySecurityGroupRuleRequest setPolicy(String policy)
public String getPolicy()
public ModifySecurityGroupRuleRequest setPortRange(String portRange)
public String getPortRange()
public ModifySecurityGroupRuleRequest setPriority(String priority)
public String getPriority()
public ModifySecurityGroupRuleRequest setRegionId(String regionId)
public String getRegionId()
public ModifySecurityGroupRuleRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public ModifySecurityGroupRuleRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public ModifySecurityGroupRuleRequest setSecurityGroupId(String securityGroupId)
public String getSecurityGroupId()
public ModifySecurityGroupRuleRequest setSecurityGroupRuleId(String securityGroupRuleId)
public String getSecurityGroupRuleId()
public ModifySecurityGroupRuleRequest setSourceCidrIp(String sourceCidrIp)
public String getSourceCidrIp()
public ModifySecurityGroupRuleRequest setSourceGroupId(String sourceGroupId)
public String getSourceGroupId()
public ModifySecurityGroupRuleRequest setSourceGroupOwnerAccount(String sourceGroupOwnerAccount)
public String getSourceGroupOwnerAccount()
public ModifySecurityGroupRuleRequest setSourceGroupOwnerId(Long sourceGroupOwnerId)
public Long getSourceGroupOwnerId()
public ModifySecurityGroupRuleRequest setSourcePortRange(String sourcePortRange)
public String getSourcePortRange()
public ModifySecurityGroupRuleRequest setSourcePrefixListId(String sourcePrefixListId)
public String getSourcePrefixListId()
Copyright © 2024. All rights reserved.