Lists SecretVersions. This call does not return secret data.
Arguments
Parameters | |
---|---|
parent |
Required. The resource name of the Secret associated with the SecretVersions to list, in the format
|
filter |
Optional. Filter string, adhering to the rules in List-operation filtering. List only secret versions matching the filter. If filter is empty, all secret versions 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 ListSecretVersionsResponse.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 ListSecretVersionsResponse
.
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.versions.list args: parent: ... filter: ... pageSize: ... pageToken: ... result: listResult
JSON
[ { "list": { "call": "googleapis.secretmanager.v1.projects.secrets.versions.list", "args": { "parent": "...", "filter": "...", "pageSize": "...", "pageToken": "..." }, "result": "listResult" } } ]