List Usage Sites By Contract Id Using GET 1

List Usage Sites By Contract Id Using GET 1

Get the usage site list of a contract. Supported selectors: name, countryRegion, postCode.

Pre-authorized roles: Auto Report Operations, Operations, Read Only

Request
URI
GET
https://{api_host}//vcp.vmware.com/api/provider/v1/contracts/{contractId}/usageSites
COPY
Path Parameters
string
contractId
Required

Contract id

contractId example
630c2f68-xxxx-xxxx-xxxx-61f8245eaca1
Query Parameters
string
filter
Optional

FIQL format

integer
limit
Optional

limit

integer
offset
Optional

offset

string
sort
Optional

sort


Responses
200

OK

Returns PageOfUsageSite of type(s) application/json
{
    "content": [
        {
            "id": "04101966-xxxx-xxxx-xxxx-b21ff240d3f6",
            "name": "my_site",
            "countryRegion": "US",
            "address": "1 S Main St, San Francisco",
            "postCode": 94105,
            "lastModifiedTime": "2022-05-06T00:00:00Z"
        }
    ],
    "total": 1
}
array of UsageSite
content
Optional

content

integer As int64 As int64
total
Optional

total


400

Bad Request

Operation doesn't return any data structure

401

Unauthorized

Operation doesn't return any data structure

403

Forbidden

Operation doesn't return any data structure

404

Contract not found

Operation doesn't return any data structure