Update Policy Using PUT 1

Update Policy Using PUT 1

Updates the pricing card with the specified Id

Request
URI
PUT
https://{api_host}//sc2-10-185-6-200.eng.vmware.com/price/api/private/pricing-cards/{id}
COPY
Path Parameters
string
id
Required

pricing card Id


Request Body

A set of pricing card fields to be updated.

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

fixedPrice
Optional

fixedPrice

string As uuid As uuid
id
Optional

id

string As date-time As date-time
lastUpdatedAt
Optional

lastUpdatedAt

meteringItems
Optional

meteringItems

string
name
Optional

name

namedMeteringItems
Optional

namedMeteringItems

oneTimeMeteringItems
Optional

oneTimeMeteringItems

string
orgId
Optional

orgId

pricingCardAssignmentInfo
Optional

pricingCardAssignmentInfo

tagBasedMeteringItems
Optional

tagBasedMeteringItems

tagBasedOneTimeMeteringItems
Optional

tagBasedOneTimeMeteringItems

tagBasedRateFactorItems
Optional

tagBasedRateFactorItems

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

fixedPrice
Optional

fixedPrice

string As uuid As uuid
id
Optional

id

string As date-time As date-time
lastUpdatedAt
Optional

lastUpdatedAt

meteringItems
Optional

meteringItems

string
name
Optional

name

namedMeteringItems
Optional

namedMeteringItems

oneTimeMeteringItems
Optional

oneTimeMeteringItems

string
orgId
Optional

orgId

pricingCardAssignmentInfo
Optional

pricingCardAssignmentInfo

tagBasedMeteringItems
Optional

tagBasedMeteringItems

tagBasedOneTimeMeteringItems
Optional

tagBasedOneTimeMeteringItems

tagBasedRateFactorItems
Optional

tagBasedRateFactorItems


401

Unauthorized

Operation doesn't return any data structure

404

Not Found

Operation doesn't return any data structure