ReadonlyaccountsAccount API resource.
ReadonlyapplicationsApplication API resource.
ReadonlyapplicationApplicationSet API resource.
ReadonlycertificatesRepository TLS/SSH certificate API resource.
ReadonlyclustersCluster API resource.
ReadonlygpgGPG public key API resource.
ReadonlyprojectsProject API resource.
ReadonlyrepoRepository credential templates API resource.
ReadonlyrepositoriesRepository API resource.
ReadonlysettingsServer settings API resource.
ReadonlyversionServer version API resource.
Creates an Argo CD session from username/password credentials.
POST /api/v1/session
Optionalsignal: AbortSignalInvalidates the current session token on the Argo CD server (logout). Does not clear the token stored in this client instance.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
Empty object on success.
Fetches a new session token using the stored credentials and updates the client.
Throws if the client was not created with fromCredentials.
Optionalsignal: AbortSignalReturns info about the currently authenticated user.
GET /api/v1/session/userinfo
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
{ loggedIn, username, iss, groups }.
StaticfromCreates an authenticated client by exchanging credentials for a session token. Stores the credentials internally so the client can auto-refresh on 401 responses.
Main entry point for the Argo CD REST API client.
Example