Methods
list
list
List Personal Access Tokens created by the user in the current tenant.
Parameters
typing.Optional[int]
Number of items per page
typing.Optional[int]
Number of items to skip
typing.Optional[str]
Return personal access tokens with names that contain this string
Returns
SyncPager[VirtualAccount, ListPersonalAccessTokenResponse]
🔗 ListPersonalAccessTokenResponseReturns all Personal Access Tokens created by the user in the current tenant.
Usage
create
create
Create Personal Access Token
Parameters
str
required
serviceaccount name
typing.Optional[str]
Expiration date in ISO format (e.g. 2025-08-01T12:00)
typing.Optional[str]
Account name that owns this PAT
Returns
CreatePersonalAccessTokenResponse
🔗 CreatePersonalAccessTokenResponsePersonal Access Token created successfully and returned
Usage
revoke_all
revoke_all
delete
delete
get
get
Get an existing Personal Access Token by name, if it doesn’t exist, it will create a new one and return the PAT data along with a fresh token.
Parameters
str
required
Returns
GetOrCreatePersonalAccessTokenResponse
🔗 GetOrCreatePersonalAccessTokenResponsePersonal Access Token found successfully and returned with token