Resource Center/Network Resource/L2 Network Operations
POSTL2 Network OperationsSince 0.6SynchronousAuth Required
CreateL2VxlanNetworkPool
CreateL2VxlanNetworkPool
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.
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-pool
/zstack/v1/l2-networks/vxlan-pool
Request Example
curl -X POST 'http://{host}/zstack/v1/l2-networks/vxlan-pool' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"name":"<name>","description":"<description>","zoneUuid":"<zoneUuid>","physicalInterface":"<physicalInterface>","type":"<type>","resourceUuid":"<resourceUuid>","vSwitchType":"<vSwitchType>","tagUuid":["<tagUuid>"]},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "name": "Test-NetPool", "description": "Test", "zoneUuid": "3f35bd50dab14ababe3d85736b63aba7", "type": "L2VxlanNetwork" } }Change History
This API has no change history records yet.
