- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization Scopes
- Try it!
Lists the Products in a ProductSet, in an unspecified order. If the ProductSet does not exist, the products field of the response will be empty.
Possible errors:
- Returns INVALID_ARGUMENT if pageSize is greater than 100 or less than 1.
HTTP request
GET https://vision.googleapis.com/v1p4beta1/{name=projects/*/locations/*/productSets/*}/products
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The ProductSet resource for which to retrieve Products. Format is: |
Query parameters
Parameters | |
---|---|
pageSize |
The maximum number of items to return. Default 10, maximum 100. |
pageToken |
The nextPageToken returned from a previous List request, if any. |
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
Response message for the products.list
method.
JSON representation | |
---|---|
{
"products": [
{
object ( |
Fields | |
---|---|
products[] |
The list of Products. |
nextPageToken |
Token to retrieve the next page of results, or empty if there are no more results in the list. |
Authorization Scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/cloud-vision
For more information, see the Authentication Overview.