Create Subnet Mapping

Create Subnet Mapping

Create a new subnet mapping (CIDR to VLAN ID).

Request
URI
POST
https://vrni.example.com/api/ni/settings/subnet-mappings
COPY
Request Body
SubnetMappingRequest of type(s) application/json
Optional
{
    "cidr": "string",
    "vlan_id": 0
}
string
cidr
Optional

cidr

integer As int32 As int32
vlan_id
Optional

vlan_id

Authentication
This operation uses the following authentication methods.
Responses
201

Created

Returns SubnetMapping of type(s) application/json
This response body class contains all of the following: BaseEntity
{
    "entity_id": "string",
    "name": "string",
    "entity_type": "string",
    "cidr": "string",
    "vlan_id": 0
}

400

Bad Request

Returns ApiError of type(s) application/json
{
    "code": 0,
    "message": "string",
    "details": [
        {
            "code": 0,
            "message": "string",
            "target": [
                "string"
            ]
        }
    ]
}
integer As int32 As int32
code
Optional

code

string
message
Optional

message

array of ErrorDetail
details
Optional

details


401

Unauthorized

Operation doesn't return any data structure

403

Forbidden

Operation doesn't return any data structure

500

Internal Error

Operation doesn't return any data structure