This API is used to update a customer gateway with a specified gateway ID. Only the gateway name and certificate can be updated. To modify other parameters, you need to create another customer gateway.
For details, see Calling APIs.
PUT /v5/{project_id}/customer-gateways/{customer_gateway_id}
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
project_id |
String |
Yes |
Specifies a project ID. You can obtain the project ID by referring to Obtaining the Project ID. |
customer_gateway_id |
String |
Yes |
Specifies a customer gateway ID. |
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
customer_gateway |
UpdateCgwRequestBodyContent object |
Yes |
Specifies the customer gateway object. |
PUT https://{Endpoint}/v5/{project_id}/customer-gateways/{customer_gateway_id} { "customer_gateway": { "name": "cgw-f846", } }
Returned status code 200: successful update
Parameter |
Type |
Description |
---|---|---|
customer_gateway |
ResponseCustomerGateway object |
Specifies the customer gateway object. |
request_id |
String |
Specifies a request ID. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
|
name |
String |
|
id_type |
String |
|
id_value |
String |
Specifies the identifier of a customer gateway. |
bgp_asn |
Long |
Specifies the BGP AS number of the customer gateway. This parameter is available only when id_type is set to ip. |
created_at |
String |
|
updated_at |
String |
|
tags |
Array of VpnResourceTag objects |
Specifies a tag list. |
Parameter |
Type |
Description |
---|---|---|
key |
String |
|
value |
String |
|
{ "customer_gateway": { "id": "03c0aa3d-demo-a8df-va86-9d82473765d4", "name": "cgw-f846", "id_type": "ip", "id_value": "10.***.***.21", "bgp_asn": 65533, "created_at": "2021-12-21T16:49:28.108Z", "updated_at": "2021-12-21T16:49:28.108Z" }, "request_id": "96718f4a-f57a-4e1f-8d05-7d5e903c8d90" }
For details, see Status Codes.