Resource Center/Network Resource/L2 Network Operations
POSTL2 Network OperationsSince 0.6SynchronousAuth Required
CreateL2NoVlanNetwork
CreateL2NoVlanNetwork
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 common L2 network name.
descriptionStringOptional. The detailed description of the common L2 network.
zoneUuidStringRequiredThe zone UUID.
physicalInterfaceStringRequiredThe physical interface.
typeStringThe L2 network type.
vSwitchTypeStringOptional. The vSwitch type.
resourceUuidStringOptional. The resource UUID. If specified, the L2 network will use the specified value as UUID.
tagUuidsListOptional. The Uuid tags list.
isolatedBooleanOptional.
pvlanStringOptional.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/l2-networks/no-vlan
/zstack/v1/l2-networks/no-vlan
Request Example
curl -X POST 'http://{host}/zstack/v1/l2-networks/no-vlan' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"name":"<name>","description":"<description>","zoneUuid":"<zoneUuid>","physicalInterface":"<physicalInterface>","type":"<type>","vSwitchType":"<vSwitchType>","resourceUuid":"<resourceUuid>","tagUuids":["<tagUuids>"],"isolated":true,"pvlan":"<pvlan>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{
"success": true,
"error": null,
"inventory": {
"uuid": "<uuid>",
"name": "<name>",
"description": "<description>",
"zoneUuid": "<zoneUuid>",
"physicalInterface": "<physicalInterface>",
"type": "<type>",
"createDate": "<createDate>",
"lastOpDate": "<lastOpDate>",
"attachedClusterUuids": [
"<attachedClusterUuids>"
]
}
}Change History
This API has no change history records yet.
