Update Subnet Mapping

Update Subnet Mapping

Update an existing subnet mapping (VLAN ID for the given CIDR).

Request
URI
PUT
https://vrni.example.com/api/ni/settings/subnet-mappings/{id}
COPY
Path Parameters
string
id
Required

entity id


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
200

OK

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

404

Not Found

Operation doesn't return any data structure

500

Internal Error

Operation doesn't return any data structure