7.2

Table Of Contents
Property Description
setupFee Species the one time setup fee associated with the
component.
totalLeasePriceInfo Species the minimum cost and maximum cost for the
lease period.
averageDailyPriceInfo Species the average daily price, which depends on the
reservation available for the component.
count Species the instance count of the component.
memory Species memory requested for this component.
additional Species the additional cost, if any, associated with the
component.
cpu Species the cpu requested for the component.
storage Species the storage requested for the component.
componentId Species the component ID, or total cost of the deployment.
Example: curl Command
The following sample command updates and displays the cost of a sample blueprint with one node. The
HTTP body is included as part of the command line input.
curl -- insecure -H “Content Type: application/json”
-H "Authorization: Bearer $token"
https://$host/composition-service/api/blueprints/$BlueprintId/costs/upfront"
{
"blueprintId": "myblueprintId",
"requestedFor": "fritz@coke.sqa-horizon.local",
"subTenantId": "7a961949-13c4-4f3d-9010-66db8da6c51e",
"requestData": {
"entries": [
{
"key": "vSphere_Machine_1",
"value": {
"type": "complex",
"componentTypeId": "com.vmware.csp.iaas.blueprint.service",
"classId": "Blueprint.Node",
"typeFilter": "phanisimple*vSphere_Machine_1",
"values": {
"entries": [
{
"key": "_cluster",
"value": {
"type": "integer",
"value": 3
}
},
{
"key": "cpu",
"value": {
"type": "integer",
"value": 2
}
Programming Guide
68 VMware, Inc.