Skip to content

SecretsManagerClient.list_secret_version_ids

rboto-secrets-manager==0.4.0 · Service index · Types

Model summary (excerpt): Lists the versions of a secret. Secrets Manager uses staging labels to indicate the different versions of a secret. For more information, see Secrets Manager concepts: Versions . To list the secrets in the account, use ListSecrets . ListSecretVersionIds only returns versions that contain a secret value. To see all version IDs that have staging labels attached, including ones without a secret...

Install and imports

python -m pip install "rboto[secrets-manager]==0.4.0"
from rboto import SecretsManagerClient
from rboto_secrets_manager.types import (
    ListSecretVersionIdsOutput,
)

Signature

async def list_secret_version_ids(
    *,
    secret_id: str,
    max_results: int | None = None,
    next_token: str | None = None,
    include_deprecated: bool | None = None,
) -> ListSecretVersionIdsOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
secret_id Yes The ARN or name of the secret whose versions you want to list. For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN .
max_results No The number of results to include in the response. If there are more results available, in the response, Secrets Manager includes NextToken . To get the next results, call ListSecretVersionIds again with the value from NextToken .
next_token No A token that indicates where the output should continue from, if a previous call did not show all results. To get the next results, call ListSecretVersionIds again with this value.
include_deprecated No Specifies whether to include versions of secrets that don't have any staging labels attached to them. Versions without staging labels are considered deprecated and are subject to deletion by Secrets Manager. By default, versions without staging labels aren't included.

Output

ListSecretVersionIdsOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
versions list[SecretVersionsListEntryOutput] | None Always present SecretVersionsListEntryOutput
next_token str | None Always present —
arn str | None Always present —
name str | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

ListSecretVersionIdsOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

client.paginators.list_secret_version_ids(...) accepts the same arguments and returns AsyncIterator[ListSecretVersionIdsOutput]. Direct calls return one page. Pages preserve the Output representation above.

Input cursors: next_token. Page-size argument: max_results.

No output stream.

Errors

Import from rboto_secrets_manager.exceptions:

InternalServiceError, InvalidNextTokenError, InvalidParameterError, ResourceNotFoundError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model