CreateL3Network
CreateL3Network
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 L3 network name.
descriptionStringOptional. The detailed description of the L3 network.
typeStringOptional. The L3 network type.
l2NetworkUuidStringRequiredThe L2 network UUID.
ipVersionStringOptional. The IP version.
systembooleanOptional. Whether the L3 network can be applied to appliance VM instances.
dnsDomainStringOptional. The DNS domain.
resourceUuidStringOptional. The resource UUID. If specified, the L3 network will use the specified value as UUID.
categoryStringOptional. The network type, which must be used with the system tags. If system is set to false, this parameter can be set to Public or Private.
tagUuidsListThe tag UUID list.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
enableIPAMBooleanRequiredWhether to enable the IP address management.
Responses
Endpoint
POST/zstack/v1/l3-networks
/zstack/v1/l3-networks
Request Example
curl -X POST 'http://{host}/zstack/v1/l3-networks' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"name":"<name>","description":"<description>","type":"<type>","l2NetworkUuid":"<l2NetworkUuid>","ipVersion":"<ipVersion>","system":true,"dnsDomain":"<dnsDomain>","resourceUuid":"<resourceUuid>","category":"<category>","tagUuids":["<tagUuids>"]},"systemTags":["<systemTags>"],"userTags":["<userTags>"],"enableIPAM":true}'
Response Example
200{ "inventory": { "name": "Test-L3Network", "l2NetworkUuid": "1bfca1892b674df28d26d9a3c0f609f9", "category": "Private" } }Change History
This API has no change history records yet.
