Policy > Networking > Connectivity > Tier-0 Gateways > Routing > OSPF

Create or update a OSPF Area config

If OSPF Area config is not already present, create OSPF Area config.
If it already exists, replace the OSPF Area config with this object.
This API is only available when using VMware NSX.

Request:

Method:
PATCH
URI Path(s):
/policy/api/v1/infra/tier-0s/{tier-0-id}/locale-services/{locale-service-id}/ospf/areas/{area-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
OspfAreaConfig+

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/tier-0s/vmc_prv/locale-services/default/ospf/areas/area1 { "area_id": "1.1.1.1", "area_type": "NORMAL", "authentication": { "mode": "PASSWORD", "secret_key": "key_foo" } }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
OspfAreaConfig+

Example Response:

{ "resource_type": "OspfAreaConfig", "id": "area1", "display_name": "area1", "path": "/infra/tier-0s/vmc_prv/locale-services/default/ospf/areas/area1", "parent_path": "/infra/tier-0s/vmc_prv/locale-services/default", "relative_path": "area1", "area_id": "1.1.1.1", "area_type": "NORMAL", "authentication": { "mode": "PASSWORD" } "_create_user": "admin", "_create_time": 1516751200877, "_last_modified_user": "admin", "_last_modified_time": 1516751200877, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

crud

Feature:

policy_ospf

Additional Errors: