7.3

Table Of Contents
Property Description
count Specifies the instance count of the component.
memory Specifies memory requested for this component.
additional Specifies the additional price, if any, associated with the
component.
cpu Specifies the cpu requested for the component.
storage Specifies the storage requested for the component.
componentId Specifies the component ID, or total price of the deployment.
Example: curl Command
The following sample command updates and displays the price of a sample blueprint with one node. The
HTTP body is included as part of the command line input.
Note Price is referred to as cost in API commands and output.
curl -- insecure -H “Content Type: application/json”
-H "Authorization: Bearer $token"
https://$vRA/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
VMware, Inc. 83