Method: projects.locations.secrets.list

Lists Secrets.

HTTP request


The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The resource name of the project associated with the Secrets, in the format projects/*/locations/*

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

  • secretmanager.secrets.list

Query parameters

Parameters
pageSize

integer

Optional. The maximum number of results to be returned in a single page. If set to 0, the server decides the number of results to return. If the number is greater than 25000, it is capped at 25000.

pageToken

string

Optional. Pagination token, returned earlier via ListSecretsResponse.next_page_token.

filter

string

Optional. Filter string, adhering to the rules in List-operation filtering. List only secrets matching the filter. If filter is empty, all secrets are listed.

Request body

The request body must be empty.

Response body

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

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.