Resource Center/Network Service/Network Service Operations/VIP Operations
POSTVIP OperationsSince 0.6SynchronousAuth Required
CreateVip
CreateVip
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.
l3NetworkUuidStringRequiredThe UUID of the L3 network that uses the VIP service.
ipRangeUuidStringOptional. The IP range UUID.
allocatorStrategyStringOptional. The allocator strategy.
requiredIpStringOptional. The IP address that you specified.
resourceUuidStringOptional. The resource UUID.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/vips
/zstack/v1/vips
Request Example
curl -X POST 'http://{host}/zstack/v1/vips' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"name":"<name>","description":"<description>","l3NetworkUuid":"<l3NetworkUuid>","ipRangeUuid":"<ipRangeUuid>","allocatorStrategy":"<allocatorStrategy>","requiredIp":"<requiredIp>","resourceUuid":"<resourceUuid>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "45a2700283f039a39f40100505a68609", "name": "vip1", "ipRangeUuid": "da8d443f5c923c969118721845891d53", "l3NetworkUuid": "e43b5613fd8039ee888cca53dae87341", "ip": "192.168.0.1", "state": "Enabled", "gateway": "127.0.0.1", "netmask": "255.255.0.0", "peerL3NetworkUuids": [ "1f970d11e2be3b0da5ad65cd4d20a549" ], "system": false } }Change History
This API has no change history records yet.
