public class CreateIpsecServerRequest
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
Specify whether to start connection negotiations immediately.
|
String |
ikeConfig
The configuration of Phase 1 negotiation.
|
String |
ipsecConfig
The configuration of Phase 2 negotiation.
|
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
Indicates whether pre-shared key authentication is enabled.
|
String |
regionId
The ID of the region where the VPN gateway is deployed.
|
String |
vpnGatewayId
The ID of the VPN gateway.
|
构造器和说明 |
---|
CreateIpsecServerRequest() |
@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.
The client CIDR block must not overlap with the CIDR blocks of the VPC.
This parameter is required.
example: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 the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.
example:If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.
d7d24a21-f4ba-4454-9173-b38****
@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
Specify whether to start connection negotiations immediately. Valid values:
true
@NameInMap(value="IkeConfig") public String ikeConfig
The configuration of Phase 1 negotiation. Valid values:
{"IkeVersion":"ikev2","IkeMode":"main","IkeEncAlg":"aes","IkeAuthAlg":"sha1","IkePfs":"group2","IkeLifetime":86400}
@NameInMap(value="IpSecServerName") public String ipSecServerName
The name of the IPsec server.
The name must be 1 to 100 characters in length.
example:test
@NameInMap(value="IpsecConfig") public String ipsecConfig
The configuration of Phase 2 negotiation. Valid values:
{"IpsecEncAlg":"aes","IpsecAuthAlg":"sha1","IpsecPfs":"group2","IpsecLifetime":86400}
@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.
This parameter is required.
example:192.168.0.0/24
@NameInMap(value="Psk") public String psk
The pre-shared key.
The pre-shared key is used for identity authentication between the IPsec server and the client. The key must be 1 to 100 characters in length.
If you do not specify a pre-shared key, the system randomly generates a 16-character string as the pre-shared key. You can call the ListIpsecServers operation to query the pre-shared keys that are generated by the system.
example:The pre-shared key of the IPsec server must be the same as the client key. Otherwise, the IPsec server cannot be connected to the client.
Cfd123****
@NameInMap(value="PskEnabled") public Boolean pskEnabled
Indicates whether pre-shared key authentication is enabled. If you set the value to true, pre-shared key authentication is enabled.
example:This parameter is required.
true
@NameInMap(value="RegionId") public String regionId
The ID of the region where the VPN gateway is deployed.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="VpnGatewayId") public String vpnGatewayId
The ID of the VPN gateway.
This parameter is required.
example:vpn-bp17lofy9fd0dnvzv****
public static CreateIpsecServerRequest build(Map<String,?> map) throws Exception
Exception
public CreateIpsecServerRequest setClientIpPool(String clientIpPool)
public String getClientIpPool()
public CreateIpsecServerRequest setClientToken(String clientToken)
public String getClientToken()
public CreateIpsecServerRequest setDryRun(String dryRun)
public String getDryRun()
public CreateIpsecServerRequest setEffectImmediately(Boolean effectImmediately)
public Boolean getEffectImmediately()
public CreateIpsecServerRequest setIkeConfig(String ikeConfig)
public String getIkeConfig()
public CreateIpsecServerRequest setIpSecServerName(String ipSecServerName)
public String getIpSecServerName()
public CreateIpsecServerRequest setIpsecConfig(String ipsecConfig)
public String getIpsecConfig()
public CreateIpsecServerRequest setLocalSubnet(String localSubnet)
public String getLocalSubnet()
public CreateIpsecServerRequest setPsk(String psk)
public String getPsk()
public CreateIpsecServerRequest setPskEnabled(Boolean pskEnabled)
public Boolean getPskEnabled()
public CreateIpsecServerRequest setRegionId(String regionId)
public String getRegionId()
public CreateIpsecServerRequest setVpnGatewayId(String vpnGatewayId)
public String getVpnGatewayId()
Copyright © 2024. All rights reserved.