Skip to main content
Source

pub async fn create_credential( &self, credential_name: String, type: String, identity: String, secret: String, ) -> Result<CreateCredentialResponse, KineticaError>

Create a new credential.

  • credential_name - Name of the credential to be created. Must contain only letters, digits, and underscores, and cannot begin with a digit. Must not match an existing credential name.
  • r#type - Type of the credential to be created.
  • identity - User of the credential to be created.
  • secret - Password of the credential to be created.
Source

pub async fn create_credential_with_opts( &self, credential_name: String, type: String, identity: String, secret: String, options: CreateCredentialRequestOptions, ) -> Result<CreateCredentialResponse, KineticaError>

Create a new credential.

  • credential_name - Name of the credential to be created. Must contain only letters, digits, and underscores, and cannot begin with a digit. Must not match an existing credential name.
  • r#type - Type of the credential to be created.
  • identity - User of the credential to be created.
  • secret - Password of the credential to be created.
  • options - The optional parameters; any left unset take the server’s defaults.

Sends a pre-built CreateCredentialRequest to the /create/credential endpoint.

Sends a pre-built CreateCredentialRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.