Get Policies Using GET 2

Get Policies Using GET 2

Returns a paginated list of pricing cards

Request
URI
GET
https://{api_host}//sc2-10-185-6-200.eng.vmware.com/price/api/private/pricing-cards
COPY
Query Parameters
string of array
$orderby
Optional

Sorting criteria in the format: property (asc|desc). Default sort order is ascending. Multiple sort criteria are supported.

integer
$skip
Optional

Number of records you want to skip

$skip example
1
integer
$top
Optional

Number of records you want

$top example
1
boolean
expandAssignmentInfo
Optional

Whether or not returns count of assignments.

boolean
expandPricingCard
Optional

Whether or not returns detailed pricing card for each result.

string
search
Optional

Search by name and description


Responses
200

OK

Returns PageOfMeteringPolicy of type(s) application/json
{
    "content": [
        {
            "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"
                        }
                    ]
                }
            ]
        }
    ],
    "empty": false,
    "first": false,
    "last": false,
    "number": 0,
    "numberOfElements": 0,
    "size": 0,
    "sort": {
        "empty": false,
        "sorted": false,
        "unsorted": false
    },
    "totalElements": 0,
    "totalPages": 0
}
content
Optional

content

boolean
empty
Optional

empty

boolean
first
Optional

first

boolean
last
Optional

last

integer As int32 As int32
number
Optional

number

integer As int32 As int32
numberOfElements
Optional

numberOfElements

integer As int32 As int32
size
Optional

size

sort
Optional

sort

integer As int64 As int64
totalElements
Optional

totalElements

integer As int32 As int32
totalPages
Optional

totalPages


401

Unauthorized

Operation doesn't return any data structure