public class UpdateIpsecServerRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
clientIpPool
The client CIDR block from which an IP address is allocated to the virtual network interface controller (NIC) of the client.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
dryRun
Specifies whether to only precheck this request.
|
Boolean |
effectImmediately
Specifies whether to delete the negotiated IPsec tunnel and initiate the negotiation again.
|
String |
ikeConfig
The configuration of Phase 1 negotiations.
|
String |
ipsecConfig
The configuration of Phase 2 negotiation.
|
String |
ipsecServerId
The IPsec server ID.
|
String |
ipsecServerName
The name of the IPsec server.
|
String |
localSubnet
The local CIDR blocks, which are the CIDR blocks of the virtual private cloud (VPC) for the client to access.
|
String |
psk
The pre-shared key.
|
Boolean |
pskEnabled
Specifies whether to enable pre-shared key authentication.
|
String |
regionId
The ID of the region where the IPsec server is created.
|
构造器和说明 |
---|
UpdateIpsecServerRequest() |
@NameInMap(value="ClientIpPool") public String clientIpPool
The client CIDR block from which an IP address is allocated to the virtual network interface controller (NIC) of the client.
example:The client CIDR block must not overlap with the CIDR blocks of the VPC.
10.0.0.0/24
@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 a value, and you must make sure that each request has a unique token value. The client token can contain only ASCII characters.
example:If you do not specify this parameter, the system automatically uses the value of RequestId as the value of ClientToken. The request ID may be different for each request.
e4567-e89b-12d3-a456-42665544****
@NameInMap(value="DryRun") public String dryRun
Specifies whether to only precheck this request. Valid values:
DryRunOperation
error code is returned.false
@NameInMap(value="EffectImmediately") public Boolean effectImmediately
Specifies whether to delete the negotiated IPsec tunnel and initiate the negotiation again. Valid values:
false
@NameInMap(value="IkeConfig") public String ikeConfig
The configuration of Phase 1 negotiations. Valid values:
{"IkeVersion":"ikev2","IkeMode":"main","IkeEncAlg":"aes","IkeAuthAlg":"sha1","IkePfs":"group2","IkeLifetime":86400}
@NameInMap(value="IpsecConfig") public String ipsecConfig
The configuration of Phase 2 negotiation. Valid values:
{"IpsecEncAlg":"aes","IpsecAuthAlg":"sha1","IpsecPfs":"group2","IpsecLifetime":86400}
@NameInMap(value="IpsecServerId") public String ipsecServerId
The IPsec server ID.
This parameter is required.
example:iss-bp1bo3xuvcxo7ixll****
@NameInMap(value="IpsecServerName") public String ipsecServerName
The name of the IPsec server.
It must be 1 to 100 characters in length.
example:test
@NameInMap(value="LocalSubnet") public String localSubnet
The local CIDR blocks, which are the CIDR blocks of the virtual private cloud (VPC) for the client to access.
Multiple CIDR blocks are separated with commas (,). Example: 192.168.1.0/24,192.168.2.0/24.
example:192.168.0.0/24,172.17.0.0/16
@NameInMap(value="Psk") public String psk
The pre-shared key.
The pre-shared key that is used for authentication between the IPsec-VPN server and the client. It must be 1 to 100 characters in length.
You can call ListIpsecServers to query keys generated by the system.
example:The pre-shared key of the IPsec server key must be the same as that of the client. Otherwise, the connection between the IPsec server and the client cannot be established.
Cfd123****
@NameInMap(value="PskEnabled") public Boolean pskEnabled
Specifies whether to enable pre-shared key authentication. If you set the value to true, pre-shared key authentication is enabled.
example:true
@NameInMap(value="RegionId") public String regionId
The ID of the region where the IPsec server is created.
You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-shanghai
public static UpdateIpsecServerRequest build(Map<String,?> map) throws Exception
Exception
public UpdateIpsecServerRequest setClientIpPool(String clientIpPool)
public String getClientIpPool()
public UpdateIpsecServerRequest setClientToken(String clientToken)
public String getClientToken()
public UpdateIpsecServerRequest setDryRun(String dryRun)
public String getDryRun()
public UpdateIpsecServerRequest setEffectImmediately(Boolean effectImmediately)
public Boolean getEffectImmediately()
public UpdateIpsecServerRequest setIkeConfig(String ikeConfig)
public String getIkeConfig()
public UpdateIpsecServerRequest setIpsecConfig(String ipsecConfig)
public String getIpsecConfig()
public UpdateIpsecServerRequest setIpsecServerId(String ipsecServerId)
public String getIpsecServerId()
public UpdateIpsecServerRequest setIpsecServerName(String ipsecServerName)
public String getIpsecServerName()
public UpdateIpsecServerRequest setLocalSubnet(String localSubnet)
public String getLocalSubnet()
public UpdateIpsecServerRequest setPsk(String psk)
public String getPsk()
public UpdateIpsecServerRequest setPskEnabled(Boolean pskEnabled)
public Boolean getPskEnabled()
public UpdateIpsecServerRequest setRegionId(String regionId)
public String getRegionId()
Copyright © 2024. All rights reserved.