Methods
list
list
List virtual accounts for the tenant.
Parameters
typing.Optional[int]
Number of items per page
typing.Optional[int]
Number of items to skip
typing.Optional[str]
Return virtual accounts with names that contain this string
typing.Optional[typing.Union[str, typing.Sequence[str]]]
Return virtual accounts owned by these teams
typing.Optional[bool]
Filter virtual accounts by expiration status. true = expired, false = not expired
typing.Optional[str]
JSON string: structured filter tree (AND/OR groups, column leaves on
name, json_map leaves on manifest.tags).Returns
SyncPager[VirtualAccount, ListVirtualAccountResponse]
🔗 ListVirtualAccountResponseReturn all virtual accounts for the tenant
Usage
create_or_update
create_or_update
Creates a new virtual account or updates an existing one based on the provided manifest.
Parameters
VirtualAccountManifest
required
🔗 VirtualAccountManifestVirtual account manifest
typing.Optional[bool]
Dry run
Returns
GetVirtualAccountResponse
🔗 GetVirtualAccountResponseVirtual account created/updated successfully
Usage
get
get
delete
delete
get_token
get_token
sync_to_secret_store
sync_to_secret_store
Syncs the virtual account token to the configured secret store. Returns the updated JWT with sync metadata including timestamp and error (if any).
Parameters
str
required
serviceaccount id
Returns
SyncVirtualAccountTokenResponse
🔗 SyncVirtualAccountTokenResponseToken synced successfully to secret store
Usage
regenerate_token
regenerate_token
Regenerate token for a virtual account by id. The old token will remain valid for the specified grace period.
Parameters
str
required
serviceaccount id
float
required
Grace period in days for which the old token will remain valid after regeneration
Returns
GetTokenForVirtualAccountResponse
🔗 GetTokenForVirtualAccountResponseToken for the virtual account