Resource Center/Network Resource/Route Resource Operations
POSTRoute Resource OperationsSince 0.6SynchronousAuth Required
CreateVirtualRouterOffering
CreateVirtualRouterOffering
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.
zoneUuidStringRequiredThe zone UUID.
managementNetworkUuidStringRequiredThe L3 management network UUID.
imageUuidStringRequiredThe image UUID.
publicNetworkUuidStringOptional. The L3 public network UUID.
isDefaultBooleanOptional. Whether the vRouter offering is the default offering.
nameStringRequiredThe resource name.
descriptionStringOptional. The detailed description of the resource.
cpuNumintRequiredThe CPU count.
memorySizelongRequiredThe memory size.
allocatorStrategyStringOptional. The allocator strategy.
sortKeyintOptional. The sort key.
typeStringOptional. The type.
resourceUuidStringOptional. The resource UUID.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/instance-offerings/virtual-routers
/zstack/v1/instance-offerings/virtual-routers
Request Example
curl -X POST 'http://{host}/zstack/v1/instance-offerings/virtual-routers' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"zoneUuid":"<zoneUuid>","managementNetworkUuid":"<managementNetworkUuid>","imageUuid":"<imageUuid>","publicNetworkUuid":"<publicNetworkUuid>","isDefault":true,"name":"<name>","description":"<description>","cpuNum":1,"memorySize":1,"allocatorStrategy":"<allocatorStrategy>","sortKey":1,"type":"<type>","resourceUuid":"<resourceUuid>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "db5bb944a9ef48eda9ff68d3eaedefed", "name": "instanceOffering1", "cpuNum": 2.0, "cpuSpeed": 1.0, "type": "UserVm", "allocatorStrategy": "Mevoco", "createDate": "Jun 7, 2017 9:20:13 PM", "lastOpDate": "Jun 7, 2017 9:20:13 PM", "state": "Enabled" } }Change History
This API has no change history records yet.
