Query Opportunity
s associated with a specific Partner.
Possible error codes:
- PERMISSION_DENIED: The user making the request isn't allowed to list opportunities associated with the given partner.
- INVALID_ARGUMENT: Required request parameters are missing or invalid.
Return value: Opportunity
s the user has access to, or an empty list if there are no opportunities.
HTTP request
GET https://cloudchannel.googleapis.com/v1alpha1/opportunities:query
The URL uses gRPC Transcoding syntax.
Query parameters
Parameters | |
---|---|
partner |
Required. Provide the Partner ID for which the Opportunities are being queried. Format: partner = partners/{id} |
page |
Optional. The maximum number of opportunities to return. The service might return fewer than this value. If unspecified, at most 50 opportunities are returned. The maximum value is 100; values above 100 are coerced to 100. |
page |
Optional. A page token, received from a previous When paginating, all other parameters provided to |
filter |
Optional. Filters on the |
Request body
The request body must be empty.
Response body
Response message for CloudChannelService.QueryOpportunities
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"opportunities": [
{
object ( |
Fields | |
---|---|
opportunities[] |
The opportunities for the specified partner. |
next |
A token, which can be sent as |
total |
Total Number of Opportunties for the given filter. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/apps.order
For more information, see the Authentication Overview.