Resource Center/Network Resource/L2 Network Operations
POSTL2 Network OperationsSince 0.6SynchronousAuth Required
CreateL2VxlanNetwork
CreateL2VxlanNetwork
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
vniIntegerOptional. The VNI.
poolUuidStringRequiredThe VXLAN pool UUID.
nameStringRequiredThe resource name.
descriptionStringOptional. The detailed description of the resource.
zoneUuidStringRequiredThe zone UUID.
physicalInterfaceStringRequiredNo description provided.
typeStringOptional. The type.
resourceUuidStringOptional. The resource UUID.
vSwitchTypeStringOptional. The type of the vSwitch.
tagUuidListOptional. The Uuid tags list.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/l2-networks/vxlan
/zstack/v1/l2-networks/vxlan
Request Example
curl -X POST 'http://{host}/zstack/v1/l2-networks/vxlan' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"vni":1,"poolUuid":"<poolUuid>","name":"<name>","description":"<description>","zoneUuid":"<zoneUuid>","physicalInterface":"<physicalInterface>","type":"<type>","resourceUuid":"<resourceUuid>","vSwitchType":"<vSwitchType>","tagUuid":["<tagUuid>"]},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "vni": 10, "poolUuid": "848a93cca6b43a67930af04c70f2abd3", "name": "Test-Net", "description": "Test", "zoneUuid": "1b6c6d39024a3e59ba597cd651fe064f", "type": "L2VxlanNetwork" } }Change History
This API has no change history records yet.
