Skip to content

Identity

Summary

Create a credential and pass it to NomadClient. Use client.identity to read your account, find users, manage groups, or manage personal access tokens.

Sign-in option Credential When to use it
Personal access token (PAT) BearerTokenCredential Scripts, remote kernels, CI, and scheduled work.
Browser BrowserCredential Interactive sign-in, including institutional SSO and MFA.
Username and password PasswordCredential Deployments that enable Keycloak Direct Access Grants.
Existing Keycloak access token BearerTokenCredential Another application handles sign-in and token renewal.

NomadClient uses the credential's deployment. Omit endpoint on the credential for NOMAD Central. Set it to the full HTTPS API v1 base URL for a self-hosted Oasis, development, or test deployment. Move any old NomadClient(endpoint=...) setting to its credential.

Workflows

API reference

  • Python API covers classes, constructor parameters, instance methods, properties, model fields, and enum members.
  • REST API covers HTTP endpoints, request fields, and responses.