Share via


Virtual Network Gateways - Set Vpnclient Ipsec Parameters

The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/setvpnclientipsecparameters?api-version=2024-05-01

URI Parameters

Name In Required Type Description
resourceGroupName
path True

string

The name of the resource group.

subscriptionId
path True

string

The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

virtualNetworkGatewayName
path True

string

The name of the virtual network gateway.

api-version
query True

string

Client API version.

Request Body

Name Required Type Description
dhGroup True

DhGroup

The DH Group used in IKE Phase 1 for initial SA.

ikeEncryption True

IkeEncryption

The IKE encryption algorithm (IKE phase 2).

ikeIntegrity True

IkeIntegrity

The IKE integrity algorithm (IKE phase 2).

ipsecEncryption True

IpsecEncryption

The IPSec encryption algorithm (IKE phase 1).

ipsecIntegrity True

IpsecIntegrity

The IPSec integrity algorithm (IKE phase 1).

pfsGroup True

PfsGroup

The Pfs Group used in IKE Phase 2 for new child SA.

saDataSizeKilobytes True

integer (int32)

The IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for P2S client..

saLifeTimeSeconds True

integer (int32)

The IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for P2S client.

Responses

Name Type Description
200 OK

VpnClientIPsecParameters

Request successful. The operation sets the specified vpnclient ipsec parameters for P2S client of the virtual network gateway.

202 Accepted

Accepted and the operation will complete asynchronously.

Other Status Codes

CloudError

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Set VirtualNetworkGateway VpnClientIpsecParameters

Sample request

POST https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/setvpnclientipsecparameters?api-version=2024-05-01

{
  "saLifeTimeSeconds": 86473,
  "saDataSizeKilobytes": 429497,
  "ipsecEncryption": "AES256",
  "ipsecIntegrity": "SHA256",
  "ikeEncryption": "AES256",
  "ikeIntegrity": "SHA384",
  "dhGroup": "DHGroup2",
  "pfsGroup": "PFS2"
}

Sample response

Azure-AsyncOperation: https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2024-05-01
{
  "saLifeTimeSeconds": 86473,
  "saDataSizeKilobytes": 429497,
  "ipsecEncryption": "AES256",
  "ipsecIntegrity": "SHA256",
  "ikeEncryption": "AES256",
  "ikeIntegrity": "SHA384",
  "dhGroup": "DHGroup2",
  "pfsGroup": "PFS2"
}

Definitions

Name Description
CloudError

An error response from the service.

CloudErrorBody

An error response from the service.

DhGroup

The DH Groups used in IKE Phase 1 for initial SA.

IkeEncryption

The IKE encryption algorithm (IKE phase 2).

IkeIntegrity

The IKE integrity algorithm (IKE phase 2).

IpsecEncryption

The IPSec encryption algorithm (IKE phase 1).

IpsecIntegrity

The IPSec integrity algorithm (IKE phase 1).

PfsGroup

The Pfs Groups used in IKE Phase 2 for new child SA.

VpnClientIPsecParameters

An IPSec parameters for a virtual network gateway P2S connection.

CloudError

An error response from the service.

Name Type Description
error

CloudErrorBody

Cloud error body.

CloudErrorBody

An error response from the service.

Name Type Description
code

string

An identifier for the error. Codes are invariant and are intended to be consumed programmatically.

details

CloudErrorBody[]

A list of additional details about the error.

message

string

A message describing the error, intended to be suitable for display in a user interface.

target

string

The target of the particular error. For example, the name of the property in error.

DhGroup

The DH Groups used in IKE Phase 1 for initial SA.

Value Description
None
DHGroup1
DHGroup2
DHGroup14
DHGroup2048
ECP256
ECP384
DHGroup24

IkeEncryption

The IKE encryption algorithm (IKE phase 2).

Value Description
DES
DES3
AES128
AES192
AES256
GCMAES256
GCMAES128

IkeIntegrity

The IKE integrity algorithm (IKE phase 2).

Value Description
MD5
SHA1
SHA256
SHA384
GCMAES256
GCMAES128

IpsecEncryption

The IPSec encryption algorithm (IKE phase 1).

Value Description
None
DES
DES3
AES128
AES192
AES256
GCMAES128
GCMAES192
GCMAES256

IpsecIntegrity

The IPSec integrity algorithm (IKE phase 1).

Value Description
MD5
SHA1
SHA256
GCMAES128
GCMAES192
GCMAES256

PfsGroup

The Pfs Groups used in IKE Phase 2 for new child SA.

Value Description
None
PFS1
PFS2
PFS2048
ECP256
ECP384
PFS24
PFS14
PFSMM

VpnClientIPsecParameters

An IPSec parameters for a virtual network gateway P2S connection.

Name Type Description
dhGroup

DhGroup

The DH Group used in IKE Phase 1 for initial SA.

ikeEncryption

IkeEncryption

The IKE encryption algorithm (IKE phase 2).

ikeIntegrity

IkeIntegrity

The IKE integrity algorithm (IKE phase 2).

ipsecEncryption

IpsecEncryption

The IPSec encryption algorithm (IKE phase 1).

ipsecIntegrity

IpsecIntegrity

The IPSec integrity algorithm (IKE phase 1).

pfsGroup

PfsGroup

The Pfs Group used in IKE Phase 2 for new child SA.

saDataSizeKilobytes

integer (int32)

The IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for P2S client..

saLifeTimeSeconds

integer (int32)

The IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for P2S client.