@@ -53,11 +53,23 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
5353 Args : args .NoArgs ,
5454 Example : examples .Build (
5555 examples .NewExample (
56- `Create a Symmetric KMS key` ,
57- `$ stackit beta kms key create --keyring-id "MY_KEYRING_ID" --algorithm "rsa_2048_oaep_sha256 " --name "my-key-name " --purpose "asymmetric_encrypt_decrypt " --protection "software"` ),
56+ `Create a symmetric AES key (AES-256) with the name "symm-aes-gcm" under the key ring "MY_KEYRING_ID" ` ,
57+ `$ stackit beta kms key create --keyring-id "MY_KEYRING_ID" --algorithm "aes_256_gcm " --name "symm-aes-gcm " --purpose "symmetric_encrypt_decrypt " --protection "software"` ),
5858 examples .NewExample (
59- `Create a Message Authentication KMS key` ,
60- `$ stackit beta kms key create --keyring-id "MY_KEYRING_ID" --algorithm "hmac_sha512" --name "my-key-name" --purpose "message_authentication_code" --protection "software"` ),
59+ `Create an asymmetric RSA encryption key (RSA-2048)` ,
60+ `$ stackit beta kms key create --keyring-id "MY_KEYRING_ID" --algorithm "rsa_2048_oaep_sha256" --name "prod-orders-rsa" --purpose "asymmetric_encrypt_decrypt" --protection "software"` ),
61+ examples .NewExample (
62+ `Create a message authentication key (HMAC-SHA512)` ,
63+ `$ stackit beta kms key create --keyring-id "MY_KEYRING_ID" --algorithm "hmac_sha512" --name "api-mac-key" --purpose "message_authentication_code" --protection "software"` ),
64+ examples .NewExample (
65+ `Create an ECDSA P-256 key for signing & verification` ,
66+ `$ stackit beta kms key create --keyring-id "MY_KEYRING_ID" --algorithm "ecdsa_p256_sha256" --name "signing-ecdsa-p256" --purpose "asymmetric_sign_verify" --protection "software"` ),
67+ examples .NewExample (
68+ `Create an import-only key (versions must be imported)` ,
69+ `$ stackit beta kms key create --keyring-id "MY_KEYRING_ID" --algorithm "rsa_2048_oaep_sha256" --name "ext-managed-rsa" --purpose "asymmetric_encrypt_decrypt" --protection "software" --import-only` ),
70+ examples .NewExample (
71+ `Create a key and print the result as YAML` ,
72+ `$ stackit beta kms key create --keyring-id "MY_KEYRING_ID" --algorithm "rsa_2048_oaep_sha256" --name "yaml-output-rsa" --purpose "asymmetric_encrypt_decrypt" --protection "software" --output yaml` ),
6173 ),
6274 RunE : func (cmd * cobra.Command , _ []string ) error {
6375 ctx := context .Background ()
0 commit comments