Create Policy Using POST 1
Create a new pricing card based on request body and validate its field according to business rules.
Request
URI
POST
https://{api_host}//sc2-10-185-6-200.eng.vmware.com/price/api/private/pricing-cards
COPY
Request Body
The pricing card to be created
MeteringPolicy of type(s) application/json
Optional
{
"chargeModel": "string",
"createdAt": "string",
"createdBy": "string",
"description": "string",
"fixedPrice": {
"chargePeriod": "string",
"rate": "number"
},
"id": "string",
"lastUpdatedAt": "string",
"meteringItems": [
{
"itemName": "string",
"metering": {
"baseRate": "number",
"chargeBasedOn": "string",
"chargeOnPowerState": "string",
"chargePeriod": "string",
"fixedPrice": "number",
"unit": "string"
}
}
],
"name": "string",
"namedMeteringItems": [
{
"itemName": "string",
"namedMeterings": [
{
"metering": {
"baseRate": "number",
"chargeBasedOn": "string",
"chargeOnPowerState": "string",
"chargePeriod": "string",
"fixedPrice": "number",
"unit": "string"
},
"name": "string"
}
]
}
],
"oneTimeMeteringItems": [
{
"itemName": "string",
"oneTimeMetering": {
"oneTimeFixedPrice": "number"
}
}
],
"orgId": "string",
"pricingCardAssignmentInfo": {
"count": 0,
"entityType": "string"
},
"tagBasedMeteringItems": [
{
"itemName": "string",
"tagBasedMeterings": [
{
"key": "string",
"metering": {
"baseRate": "number",
"chargeBasedOn": "string",
"chargeOnPowerState": "string",
"chargePeriod": "string",
"fixedPrice": "number",
"unit": "string"
},
"value": "string"
}
]
}
],
"tagBasedOneTimeMeteringItems": [
{
"itemName": "string",
"oneTimeMeterings": [
{
"key": "string",
"oneTimeMetering": {
"oneTimeFixedPrice": "number"
},
"value": "string"
}
]
}
],
"tagBasedRateFactorItems": [
{
"itemName": "string",
"rateFactors": [
{
"key": "string",
"rateFactor": {
"contextMeteringItem": "string",
"rateFactor": "number"
},
"value": "string"
}
]
}
]
}
string
chargeModel
Optional
chargeModel
string As date-time As date-time
createdAt
Optional
createdAt
string
createdBy
Optional
createdBy
string
description
Optional
description
string As uuid As uuid
id
Optional
id
string As date-time As date-time
lastUpdatedAt
Optional
lastUpdatedAt
string
name
Optional
name
string
orgId
Optional
orgId
array of TagBasedOneTimeMeteringItem
tagBasedOneTimeMeteringItems
Optional
tagBasedOneTimeMeteringItems
Responses
200
OK
Returns MeteringPolicy of type(s) application/json
{
"chargeModel": "string",
"createdAt": "string",
"createdBy": "string",
"description": "string",
"fixedPrice": {
"chargePeriod": "string",
"rate": "number"
},
"id": "string",
"lastUpdatedAt": "string",
"meteringItems": [
{
"itemName": "string",
"metering": {
"baseRate": "number",
"chargeBasedOn": "string",
"chargeOnPowerState": "string",
"chargePeriod": "string",
"fixedPrice": "number",
"unit": "string"
}
}
],
"name": "string",
"namedMeteringItems": [
{
"itemName": "string",
"namedMeterings": [
{
"metering": {
"baseRate": "number",
"chargeBasedOn": "string",
"chargeOnPowerState": "string",
"chargePeriod": "string",
"fixedPrice": "number",
"unit": "string"
},
"name": "string"
}
]
}
],
"oneTimeMeteringItems": [
{
"itemName": "string",
"oneTimeMetering": {
"oneTimeFixedPrice": "number"
}
}
],
"orgId": "string",
"pricingCardAssignmentInfo": {
"count": 0,
"entityType": "string"
},
"tagBasedMeteringItems": [
{
"itemName": "string",
"tagBasedMeterings": [
{
"key": "string",
"metering": {
"baseRate": "number",
"chargeBasedOn": "string",
"chargeOnPowerState": "string",
"chargePeriod": "string",
"fixedPrice": "number",
"unit": "string"
},
"value": "string"
}
]
}
],
"tagBasedOneTimeMeteringItems": [
{
"itemName": "string",
"oneTimeMeterings": [
{
"key": "string",
"oneTimeMetering": {
"oneTimeFixedPrice": "number"
},
"value": "string"
}
]
}
],
"tagBasedRateFactorItems": [
{
"itemName": "string",
"rateFactors": [
{
"key": "string",
"rateFactor": {
"contextMeteringItem": "string",
"rateFactor": "number"
},
"value": "string"
}
]
}
]
}
string
chargeModel
Optional
chargeModel
string As date-time As date-time
createdAt
Optional
createdAt
string
createdBy
Optional
createdBy
string
description
Optional
description
string As uuid As uuid
id
Optional
id
string As date-time As date-time
lastUpdatedAt
Optional
lastUpdatedAt
string
name
Optional
name
string
orgId
Optional
orgId
array of TagBasedOneTimeMeteringItem
tagBasedOneTimeMeteringItems
Optional
tagBasedOneTimeMeteringItems
201
Created
Returns MeteringPolicy of type(s) application/json
{
"chargeModel": "string",
"createdAt": "string",
"createdBy": "string",
"description": "string",
"fixedPrice": {
"chargePeriod": "string",
"rate": "number"
},
"id": "string",
"lastUpdatedAt": "string",
"meteringItems": [
{
"itemName": "string",
"metering": {
"baseRate": "number",
"chargeBasedOn": "string",
"chargeOnPowerState": "string",
"chargePeriod": "string",
"fixedPrice": "number",
"unit": "string"
}
}
],
"name": "string",
"namedMeteringItems": [
{
"itemName": "string",
"namedMeterings": [
{
"metering": {
"baseRate": "number",
"chargeBasedOn": "string",
"chargeOnPowerState": "string",
"chargePeriod": "string",
"fixedPrice": "number",
"unit": "string"
},
"name": "string"
}
]
}
],
"oneTimeMeteringItems": [
{
"itemName": "string",
"oneTimeMetering": {
"oneTimeFixedPrice": "number"
}
}
],
"orgId": "string",
"pricingCardAssignmentInfo": {
"count": 0,
"entityType": "string"
},
"tagBasedMeteringItems": [
{
"itemName": "string",
"tagBasedMeterings": [
{
"key": "string",
"metering": {
"baseRate": "number",
"chargeBasedOn": "string",
"chargeOnPowerState": "string",
"chargePeriod": "string",
"fixedPrice": "number",
"unit": "string"
},
"value": "string"
}
]
}
],
"tagBasedOneTimeMeteringItems": [
{
"itemName": "string",
"oneTimeMeterings": [
{
"key": "string",
"oneTimeMetering": {
"oneTimeFixedPrice": "number"
},
"value": "string"
}
]
}
],
"tagBasedRateFactorItems": [
{
"itemName": "string",
"rateFactors": [
{
"key": "string",
"rateFactor": {
"contextMeteringItem": "string",
"rateFactor": "number"
},
"value": "string"
}
]
}
]
}
string
chargeModel
Optional
chargeModel
string As date-time As date-time
createdAt
Optional
createdAt
string
createdBy
Optional
createdBy
string
description
Optional
description
string As uuid As uuid
id
Optional
id
string As date-time As date-time
lastUpdatedAt
Optional
lastUpdatedAt
string
name
Optional
name
string
orgId
Optional
orgId
array of TagBasedOneTimeMeteringItem
tagBasedOneTimeMeteringItems
Optional
tagBasedOneTimeMeteringItems
401
Unauthorized
Operation doesn't return any data structure