This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Create Key

1 - 1.2

scpcli kms kms create
--rotate_cycle <value>
--purpose <value>
--name <value>
--description <value>
--auto_rotate <value>
[--key_type <value>]
[--tags <value>]

Description

Create key.

State ACTIVE (CURRENT)

VersionNot Before
1.2-

Parameters

NameTypeDescriptionExample
rotate_cycle
required
integerRotation cycle7
purpose
required
stringPurpose of keyrsa-2048
name
required
stringName of keytestkey
description
required
stringDescription of Keydescription1
auto_rotate
required
stringAuto rotate Y or NY
key_type
optional
stringbasic or advancedadvanced
tags
optional
arrayTag List''{"key": "", "value": ""}'

Responses

NameDescriptionExample
idID0fdd87aab8cb46f59b7c1f81ed03fb3e
account_idAccount ID3265ab469f0d406d83073da3e11e7a6c
auto_rotateAuto rotate Y or NY
created_atCreated At2024-05-17T00:23:17Z
created_byCreated By90dddfc2b1e04edba54ba2b41539a9ac
current_versionCurrent version of KMS key7
delete_atDate of deletion20251008
delete_target_ynDeleteTargetYn of KeyY
descriptionDescription of Keydescription1
key_typebasic or advancedadvanced
managed_typescp or useruser
modified_atModified At2024-05-17T00:23:17Z
modified_byModified By90dddfc2b1e04edba54ba2b41539a9ac
nameName of keytestkey
next_rotate_atDate of next rotate20241008
order_refReference of order0e1bfdf8-a7da-43d3-8e8c-c9f34024ba01
purposePurpose of keyrsa-2048
regionName of regionkr-west1
rotate_cycleRotation cycle7
secret_refReference of secret0e1bfdf8-a7da-43d3-8e8c-c9f34024ba01
stateState of key(Creating, Active, Error, Stop, To_Be_Terminated)Active
use_countUse count of KMS key1004

2 - 1.1

scpcli kms kms create
--rotate_cycle <value>
--purpose <value>
--name <value>
--description <value>
--auto_rotate <value>
[--key_type <value>]
[--tags <value>]

Description

Create key.

State ACTIVE (SUPPORTED)

VersionNot Before
1.120260831

Parameters

NameTypeDescriptionExample
rotate_cycle
required
integerRotation cycle7
purpose
required
stringPurpose of keyrsa-2048
name
required
stringName of keytestkey
description
required
stringDescription of Keydescription1
auto_rotate
required
stringAuto rotate Y or NY
key_type
optional
stringbasic or advancedadvanced
tags
optional
arrayTag List''{"key": "", "value": ""}'

Responses

NameDescriptionExample
idID0fdd87aab8cb46f59b7c1f81ed03fb3e
account_idAccount ID3265ab469f0d406d83073da3e11e7a6c
auto_rotateAuto rotate Y or NY
created_atCreated At2024-05-17T00:23:17Z
created_byCreated By90dddfc2b1e04edba54ba2b41539a9ac
current_versionCurrent version of KMS key7
delete_atDate of deletion20251008
delete_target_ynDeleteTargetYn of KeyY
descriptionDescription of Keydescription1
key_typebasic or advancedadvanced
modified_atModified At2024-05-17T00:23:17Z
modified_byModified By90dddfc2b1e04edba54ba2b41539a9ac
nameName of keytestkey
next_rotate_atDate of next rotate20241008
order_refReference of order0e1bfdf8-a7da-43d3-8e8c-c9f34024ba01
purposePurpose of keyrsa-2048
regionName of regionkr-west1
rotate_cycleRotation cycle7
secret_refReference of secret0e1bfdf8-a7da-43d3-8e8c-c9f34024ba01
stateState of key(Creating, Active, Error, Stop, To_Be_Terminated)Active
use_countUse count of KMS key1004

3 - 1.0

scpcli kms kms create
--rotate_cycle <value>
--purpose <value>
--name <value>
--description <value>
--auto_rotate <value>
[--key_type <value>]
[--tags <value>]

Description

Create key.

State ACTIVE (DEPRECATED)

Deprecated versions with Not Before dates that have arrived or expired are no longer supported. We recommend using the latest version.

VersionNot Before
1.020251231

Parameters

NameTypeDescriptionExample
rotate_cycle
required
integerRotation cycle7
purpose
required
stringPurpose of keyrsa-2048
name
required
stringName of keytestkey
description
required
stringDescription of Keydescription1
auto_rotate
required
stringAuto rotate Y or NY
key_type
optional
stringbasic or advancedadvanced
tags
optional
arrayTag List''{"key": "", "value": ""}'

Responses

NameDescriptionExample
idID0fdd87aab8cb46f59b7c1f81ed03fb3e
account_idAccount ID3265ab469f0d406d83073da3e11e7a6c
auto_rotateAuto rotate Y or NY
created_atCreated At2024-05-17T00:23:17Z
created_byCreated By90dddfc2b1e04edba54ba2b41539a9ac
current_versionCurrent version of KMS key7
delete_atDate of deletion20251008
delete_target_ynDeleteTargetYn of KeyY
descriptionDescription of Keydescription1
key_typebasic or advancedadvanced
modified_atModified At2024-05-17T00:23:17Z
modified_byModified By90dddfc2b1e04edba54ba2b41539a9ac
nameName of keytestkey
next_rotate_atDate of next rotate20241008
order_refReference of order0e1bfdf8-a7da-43d3-8e8c-c9f34024ba01
purposePurpose of keyrsa-2048
regionName of regionkr-west1
rotate_cycleRotation cycle7
secret_refReference of secret0e1bfdf8-a7da-43d3-8e8c-c9f34024ba01
stateState of key(Creating, Active, Error, Stop, To_Be_Terminated)Active
use_countUse count of KMS key1004