Resource Center/Network Resource/L2 Network Operations
POSTL2 Network OperationsSince 4.8.0SynchronousAuth Required
CreateL2TfNetwork
CreateL2TfNetwork
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.
ipPrefixStringOptional. The IP address prefix.
ipPrefixLengthIntegerOptional. The IP address prefix length.
nameStringRequiredThe resource name.
descriptionStringOptional. The detailed description of the resource.
zoneUuidStringRequiredThe zone UUID.
physicalInterfaceStringRequiredThe physical interface.
typeStringOptional. The L2 network type.
vSwitchTypeStringOptional. The type of the vSwith.
resourceUuidStringOptional. The resource UUID.
tagUuidsListOptional. The Uuid tags list.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/l2-networks/tf
/zstack/v1/l2-networks/tf
Request Example
curl -X POST 'http://{host}/zstack/v1/l2-networks/tf' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"ipPrefix":"<ipPrefix>","ipPrefixLength":1,"name":"<name>","description":"<description>","zoneUuid":"<zoneUuid>","physicalInterface":"<physicalInterface>","type":"<type>","vSwitchType":"<vSwitchType>","resourceUuid":"<resourceUuid>","tagUuids":["<tagUuids>"]},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "672906b1aeca3a68a24c1b07a4f8deb5", "name": "test", "zoneUuid": "b478828872db33a4807d90e9f16f39e4", "physicalInterface": "eth0" } }Change History
This API has no change history records yet.
