[{"label":"Latest (6.4.0)","version":"latest"}]
vrealize-network-insight-api

Create Subnet Mapping

Description

Create a new subnet mapping (CIDR to VLAN ID). Physical to physical flows (without the switches added as a data source) can be linked to a VLAN ID with to these mappings.

Request

Request

URL

URL


post
https://vrni.example.com/api/ni/settings/subnet-mappings
Copy

Request Body

Request Body

SubnetMappingRequest of type(s) application/json Required
{
	"cidr": "string",
	"vlan_id": 0
}
string
cidr Optional

integer as int32
vlan_id Optional
Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

201 Created

Returns SubnetMapping of type(s) application/json
This response body class contains all of the following: BaseEntity, InlineSubnetMapping1
Errors

Errors

400

Bad Request


401

Unauthorized


403

Forbidden


500

Internal Error

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"cidr":"string","vlan_id":0}' https://vrni.example.com/api/ni/settings/subnet-mappings


[{"label":"Latest (6.4.0)","version":"latest"}]
vrealize-network-insight-api
Settings Operations
Feedback

Was this page helpful?