Method: accounts.customers.entitlements.list

Lists Entitlements belonging to a customer.

Possible error codes:

  • PERMISSION_DENIED: The customer doesn't belong to the reseller.
  • INVALID_ARGUMENT: Required request parameters are missing or invalid.

Return value: A list of the customer's Entitlements.

HTTP request

GET https://cloudchannel.googleapis.com/v1/{parent=accounts/*/customers/*}/entitlements

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The resource name of the reseller's customer account to list entitlements for. Parent uses the format: accounts/{account_id}/customers/{customer_id}

Query parameters

Parameters
pageSize

integer

Optional. Requested page size. Server might return fewer results than requested. If unspecified, return at most 50 entitlements. The maximum value is 100; the server will coerce values above 100.

pageToken

string

Optional. A token for a page of results other than the first page. Obtained using ListEntitlementsResponse.next_page_token of the previous CloudChannelService.ListEntitlements call.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

Response message for CloudChannelService.ListEntitlements.

JSON representation
{
  "entitlements": [
    {
      object (Entitlement)
    }
  ],
  "nextPageToken": string
}
Fields
entitlements[]

object (Entitlement)

The reseller customer's entitlements.

nextPageToken

string

A token to list the next page of results. Pass to ListEntitlementsRequest.page_token to obtain that page.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/apps.order

For more information, see the Authentication Overview.