Method: projects.products.search

Search Product resources that consumers have access to, within the scope of the consumer cloud resource hierarchy context.

HTTP request

GET https://cloudprivatecatalog.googleapis.com/v1beta1/{resource=projects/*}/products:search

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
resource

string

Required. The name of the resource context. See SearchCatalogsRequest.resource for details.

Authorization requires the following Google IAM permission on the specified resource resource:

  • cloudprivatecatalog.targets.get

Query parameters

Parameters
query

string

The query to filter the products.

The supported queries are: * List products of all catalogs: empty * List products under a catalog: parent=catalogs/{catalog_id} * Get a product by name: name=catalogs/{catalog_id}/products/{product_id}

pageSize

number

The maximum number of entries that are requested.

pageToken

string

A pagination token returned from a previous call to products.search that indicates where this listing should continue from. This field is optional.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of SearchProductsResponse.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

Try it!