- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization Scopes
- Try it!
Lists Secrets
.
HTTP request
GET https://secretmanager.googleapis.com/v1beta1/{parent=projects/*}/secrets
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The resource name of the project associated with the Authorization requires the following IAM permission on the specified resource
|
Query parameters
Parameters | |
---|---|
pageSize |
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 |
Optional. Pagination token, returned earlier via |
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
Response message for SecretManagerService.ListSecrets
.
JSON representation |
---|
{
"secrets": [
{
object ( |
Fields | |
---|---|
secrets[] |
The list of |
nextPageToken |
A token to retrieve the next page of results. Pass this value in |
totalSize |
The total number of |
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.