1.0

1.0

scpcli kms kms datakey
--key_id <value>
--key_type <value>

Description

Generates a new key and the value encrypted with key(Purpose: encryption/decryption).

State ACTIVE (DEPRECATED)

VersionSupported Until
1.020251231

Parameters

NameTypeDescriptionExample
key_id
required
stringResource id of KMS key138c2fc8c29a449dbfa8681f8f1d78e2
key_type
required
stringKey type( plaintext or wrapped )plaintext

Responses

NameDescriptionExample
ciphertextEncrypted data keyvault:v283:YiUpW1bpF2fMY0VR33aQpik781Ul2gFPsfdwsypwouccHtPSfRaE40wTHHl4a5AK
key_versionVersion of KMS key1
plaintextData key(base64 encoded)oTvvEkE7q0WM2S5yfGFz5nqe32QMlrCVnqssmDPu6fA=