Up-to-date reference of API arguments for KMS key you can get at documentation portal
opentelekomcloud_kms_key_v1¶
Use this data source to get the ID of an available OpenTelekomCloud KMS key.
Example Usage¶
data "opentelekomcloud_kms_key_v1" "key_1" {
key_alias = "test_key"
key_description = "test key description"
key_state = "2"
key_id = "af650527-a0ff-4527-aef3-c493df1f3012"
realm = "eu-de-01"
default_key_flag = "0"
domain_id = "b168fe00ff56492495a7d22974df2d0b"
origin = "kms"
}
Argument Reference¶
key_alias
- (Optional) The alias in which to create the key. It is required when we create a new key. Changing this gets the new key.key_description
- (Optional) The description of the key. Changing this gets a new key.realm
- (Optional) Region where a key resides. Changing this gets a new key.key_id
- (Optional) The globally unique identifier for the key. Changing this gets the new key.default_key_flag
- (Optional) Identification of a Master Key. The value1
indicates a Default Master Key, and the value0
indicates a key. Changing this gets a new key.key_state
- (Optional) The state of a key.1
indicates that the key is waiting to be activated.2
indicates that the key is enabled.3
indicates that the key is disabled.4
indicates that the key is scheduled for deletion.5
indicates that the key waiting to be imported. Changing this gets a new key.domain_id
- (Optional) ID of a user domain for the key. Changing this gets a new key.origin
- Origin of a key. Such as:kms
. Changing this gets a new key.
Attributes Reference¶
id
is set to the ID of the found key. In addition, the following attributes are exported:
key_alias
- See Argument Reference above.key_description
- See Argument Reference above.realm
- See Argument Reference above.key_id
- See Argument Reference above.default_key_flag
- See Argument Reference above.origin
- See Argument Reference above.scheduled_deletion_date
- Scheduled deletion time (time stamp) of a key.domain_id
- See Argument Reference above.expiration_time
- Expiration time.creation_date
- Creation time (time stamp) of a key.key_state
- See Argument Reference above.