Method: tunedModels.permissions.list

Lists permissions for the specific resource.

HTTP request

GET https://generativelanguage.googleapis.com/v1beta3/{parent=tunedModels/*}/permissions

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource of the permissions. Format: tunedModels/{tunedModel}

Query parameters

Parameters
pageSize

integer

Optional. The maximum number of Permissions to return (per page). The service may return fewer permissions.

If unspecified, at most 10 permissions will be returned. This method returns at most 1000 permissions per page, even if you pass larger pageSize.

pageToken

string

Optional. A page token, received from a previous permissions.list call.

Provide the pageToken returned by one request as an argument to the next request to retrieve the next page.

When paginating, all other parameters provided to permissions.list must match the call that provided the page token.

Request body

The request body must be empty.

Response body

Response from permissions.list containing a paginated list of permissions.

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

JSON representation
{
  "permissions": [
    {
      object (Permission)
    }
  ],
  "nextPageToken": string
}
Fields
permissions[]

object (Permission)

Returned permissions.

nextPageToken

string

A token, which can be sent as pageToken to retrieve the next page.

If this field is omitted, there are no more pages.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/generative-language

For more information, see the Authentication Overview.