vaultrs::transit::generate

Function data_key

source
pub async fn data_key(
    client: &impl Client,
    mount: &str,
    name: &str,
    key_type: DataKeyType,
    opts: Option<&mut GenerateDataKeyRequestBuilder>,
) -> Result<GenerateDataKeyResponse, ClientError>
Expand description

Generate a new high-entropy key and the value encrypted with the named key.

See GenerateDataKeyRequest