Method: schemaVersions.list

Full name: projects.locations.schemas.schemaVersions.list

Lists SchemaVersions.

HTTP request

GET https://{endpoint}/v1beta3/{parent}/schemaVersions

Where {endpoint} is one of the supported service endpoints.

Path parameters

Parameters
parent

string

Required. Format: projects/{project}/locations/{location}/schemas/{schema} It takes the form projects/{project}/locations/{location}/schemas/{schema}.

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

  • documentai.schemaversions.list

Query parameters

Parameters
pageSize

integer

Optional. The maximum number of SchemaVersion to return. If unspecified, at most 10 SchemaVersion will be returned. The maximum value is 20. Values above 20 will be coerced to 20.

pageToken

string

Optional. We will return the SchemaVersion sorted by creation time. The page token will point to the next SchemaVersion.

Request body

The request body must be empty.

Response body

Response message for schemaVersions.list.

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

JSON representation
{
  "schemaVersions": [
    {
      object (SchemaVersion)
    }
  ],
  "nextPageToken": string
}
Fields
schemaVersions[]

object (SchemaVersion)

The list of SchemaVersions.

nextPageToken

string

Points to the next SchemaVersion, otherwise empty.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the parent resource:

  • documentai.schemaVersions.list

For more information, see the IAM documentation.