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.
Source
pub async fn create_credential_raw( &self, request: &CreateCredentialRequest, ) -> Result<CreateCredentialResponse, KineticaError>
Sends a pre-built CreateCredentialRequest to the /create/credential endpoint.
Source
pub async fn create_credential_from_url( &self, url: &str, request: &CreateCredentialRequest, ) -> Result<CreateCredentialResponse, KineticaError>
Sends a pre-built CreateCredentialRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.