Lists Secrets.
Arguments
| Parameters | |
|---|---|
| parent | 
 Required. The resource name of the project associated with the Secrets, in the format  
 | 
| filter | 
 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. 
 | 
| 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 ListSecretsResponse.next_page_token. 
 | 
Raised exceptions
| Exceptions | |
|---|---|
| ConnectionError | In case of a network problem (such as DNS failure or refused connection). | 
| HttpError | If the response status is >= 400 (excluding 429 and 503). | 
| TimeoutError | If a long-running operation takes longer to finish than the specified timeout limit. | 
| TypeError | If an operation or function receives an argument of the wrong type. | 
| ValueError | If an operation or function receives an argument of the right type but an inappropriate value. For example, a negative timeout. | 
Response
If successful, the response contains an instance of ListSecretsResponse.
Subworkflow snippet
Some fields might be optional or required. To identify required fields, refer to the API documentation.
YAML
- list: call: googleapis.secretmanager.v1.projects.secrets.list args: parent: ... filter: ... pageSize: ... pageToken: ... result: listResult
JSON
[ { "list": { "call": "googleapis.secretmanager.v1.projects.secrets.list", "args": { "parent": "...", "filter": "...", "pageSize": "...", "pageToken": "..." }, "result": "listResult" } } ]