Resource Center/Network Service/Network Service Operations/EIP Operations
POSTEIP OperationsSince 0.6SynchronousAuth Required
CreateEip
CreateEip
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 EIP name.
descriptionStringOptional. The detailed description of the EIP.
vipUuidStringRequiredThe VIP UUID.
vmNicUuidStringOptional. The VM NIC UUID.
usedIpUuidStringOptional. The IP UUID.
resourceUuidStringOptional. The resource UUID. If specified, the VM instance will use the specified value as the UUID.
systemTagsListOptional. The EIP system tags.
userTagsListOptional. The EIP user tags.
Responses
Endpoint
POST/zstack/v1/eips
/zstack/v1/eips
Request Example
curl -X POST 'http://{host}/zstack/v1/eips' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"name":"<name>","description":"<description>","vipUuid":"<vipUuid>","vmNicUuid":"<vmNicUuid>","usedIpUuid":"<usedIpUuid>","resourceUuid":"<resourceUuid>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "name": "Test-EIP", "vmNicUuid": "07f9715b85da40d9bd17e5f4277304bd", "vipUuid": "acc6dc9271f54e58ab94e4a1069bc7e5" } }Change History
This API has no change history records yet.
