• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Neutron
  5. VPNaas
  6. Update VPN service

Update VPN service

Function Description

This interface is used to update a VPN service.

Interface Format

Method

URI

Description

PUT

/v2.0/vpn/vpnservices/{service_id}

Updates a VPN service.

Restrictions

  • The project_id attribute is not supported.
  • The name value must contain 1 to 64 characters.
  • The description value can contain a maximum of 255 characters.
  • The value of admin_state_up can be only UP.
  • Parameter subnet_id cannot be configured.

Request Parameter

Parameter

Type

Mandatory

Description

service_id

String

No

Specifies the ID of the VPN service.

description

String

No

Specifies the description about the VPN service.

name

String

Yes

Specifies the name of the VPN service.

admin_state_up

Boolean

Yes

Specifies the administrator status. The value can be true or false.

service_id

String

No

Specifies the ID of the VPN service.

vpnservice

Object

Yes

Specifies a VPN service object.

Response Parameter

Parameter

Type

Mandatory

Description

id

String

Yes

Specifies the ID of the VPN service.

router_id

String

Yes

Specifies the ID of the router.

status

String

Yes

Specifies whether the IPSec VPN service is currently operational. A valid value can be ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.

name

String

Yes

Specifies the name of the VPN service.

external_v6_ip

String

Yes

Specifies the external gateway IPv6 address that is used for the VPN service.

admin_state_up

Boolean

Yes

Specifies the administrator status. The value can be true or false.

subnet_id

String

No

Specifies the ID of the subnet.

tenant_id

String

Yes

Specifies the ID of the tenant.

external_v4_ip

String

Yes

Specifies the external gateway IPv4 address that is used for the VPN service.

description

String

Yes

Specifies the description about the VPN service.

vpnservice

String

Yes

Specifies a VPN service object.

project_id

String

Yes

Specifies the ID of the project.

Request Example

PUT /v2.0/vpn/vpnservices/{service_id}
{
 "vpnservice" : {
"description" : "Updated description"
 }
}

Response Example

None

Error Code

For details, see section Return Code Processing.