Cisco Cisco Elastic Services Controller 2.2 Developer's Guide
POST
/v0/flavors/{internalFlavorId}
Create a
flavor in ESC
Implementation Notes
Creates a Flavor which could be used for creating instance VMs.
Example request:
After the Flavor creation operation is done, ESC will send a callback to the client with the result.
Example callback:
HTTP/1.1 201 OK
Content-Type: application/xml; charset=UTF-8
ESC_TRANSACTION_ID: d53f0047-2315-466c-b7e3-aa78e0a567e8
ESC-Status-Code: 200
ESC-Status-Message: Flavor creation completed successfully created
POST /v0/flavors/my_flavor_id HTTP/1.1
Content-Type: application/xml
Accept: application/xml
Callback: http://127.0.0.1:9010/
Body:
<!--?xml version="1.0"?-->
<flavor xmlns=
"urn:ietf:params:xml:ns:netconf:base:1.0"
>
<name>lightVMFlavor</name>
<vcpus>2</vcpus>
<memory_mb>2048</memory_mb>
</flavor>
200
Request accepted
404
Flavor Id not found
406
Operation not supported on VIM/Flavor part
of service registration
T
ry it out
!