/mgmt/config/default/VLANInterface POST
Use the HTTP POST method with the /mgmt/config/default/VLANInterface
resource to create a new VLAN interface configuration.
Resource URL
https://host:port/mgmt/config/default/VLANInterface
Where
port is 5554 by default.Request headers
The following header must be sent with the request:
- Authorization
- This header must be sent to perform authentication.
Request body format
The request is in JSON format. It can contain the following fields, depending on the system
setting that you want to update:
- Name
- String.
- mAdminState
- String.
- UserSummary
- String.
- IPConfigMode
- Identifies the configuration mode for the VLAN interface. Contains the following fields:
- IPAddress
- String.
- DADTransmits
- Integer.
- DADRetransmitTimer
- Integer.
- OverType
- String.
- EthernetInterface
- If
OverType
is set toethernet
, specifies the Ethernet interface used. Comprises a JSON structure containing the following field:value
- the name of the Ethernet interface.
- LinkAggInterface
- If
OverType
is set tolink-aggregation
, specifies the aggregated interface used. Comprises a JSON structure containing the following field:value
- the name of the aggregated interface.
- Identifier
- Integer.
- DefaultOutboundPriority
- Integer.
- MTU
- Integer.
- HardwareOffload
- String.
Security requirements
The caller must be authenticated as an appliance user with sufficient authority. For more information about security, see Types of user and how they are authenticated and User authorization, credential mapping, and access profiles.
Response status codes
- 200
- The system settings were successfully updated.
- 400
- Invalid data provided.
- 401
- Not authenticated.
- 403
- Not authorized.
Response headers
- Content-Type
- This header is returned with a value of
application/json
.
Response body format
The response is in JSON format. Each object contains the following fields:
- self
- String.
- doc
- String.
- Location
- String.
Examples
The following example adds a VLAN interface named testVLAN2
.
The following URL is used with the HTTP PUT
method:
POST /mgmt/config/default/VLANInterface
The following listing shows the request:
"VLANInterface": {
"name": "testVLAN2",
"mAdminState" : "enabled",
"UserSummary" : "An example VLAN",
"IPConfigMode" : {
"static" : "on",
"dhcp" : "off",
"slaac" : "off"},
"IPAddress" : "10.40.107.110/16",
"DADTransmits" : 1,
"DADRetransmitTimer" : 1000,
"OverType" : "ethernet",
"EthernetInterface" : {
"value": "eth41",
"href" : "/mgmt/config/default/EthernetInterface/eth41"},
"LinkAggInterface" : {
"value": "testLinkAgg",
"href" : "/mgmt/config/default/LinkAggregation/testLinkAgg"},
"Identifier" : 2,
"DefaultOutboundPriority" : 0,
"MTU" : 1500,
"HardwareOffload" : "on"}}
After the Protocol field is updated, the following
response is returned:{
"_links" : {
"self" : {
"href" : "/mgmt/config/default/VLANInterface/testVLAN2"
},
"doc" : {
"href" : "/mgmt/docs/config/VLANInterface"
}
},
"VLANInterface" : "Configuration was created."
}