oci.Kms.KeyVersion
Explore with Pulumi AI
This resource provides the Key Version resource in Oracle Cloud Infrastructure Kms service.
Generates a new KeyVersion resource that provides new cryptographic
material for a master encryption key. The key must be in an ENABLED state to be rotated.
As a management operation, this call is subject to a Key Management limit that applies to the total number of requests across all management write operations. Key Management might throttle this call to reject an otherwise valid request when the total rate of management write operations exceeds 10 requests per second for a given tenancy.
Create KeyVersion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KeyVersion(name: string, args: KeyVersionArgs, opts?: CustomResourceOptions);@overload
def KeyVersion(resource_name: str,
               args: KeyVersionArgs,
               opts: Optional[ResourceOptions] = None)
@overload
def KeyVersion(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               key_id: Optional[str] = None,
               management_endpoint: Optional[str] = None,
               external_key_version_id: Optional[str] = None,
               time_of_deletion: Optional[str] = None)func NewKeyVersion(ctx *Context, name string, args KeyVersionArgs, opts ...ResourceOption) (*KeyVersion, error)public KeyVersion(string name, KeyVersionArgs args, CustomResourceOptions? opts = null)
public KeyVersion(String name, KeyVersionArgs args)
public KeyVersion(String name, KeyVersionArgs args, CustomResourceOptions options)
type: oci:Kms:KeyVersion
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args KeyVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args KeyVersionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args KeyVersionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KeyVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KeyVersionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var keyVersionResource = new Oci.Kms.KeyVersion("keyVersionResource", new()
{
    KeyId = "string",
    ManagementEndpoint = "string",
    ExternalKeyVersionId = "string",
    TimeOfDeletion = "string",
});
example, err := kms.NewKeyVersion(ctx, "keyVersionResource", &kms.KeyVersionArgs{
	KeyId:                pulumi.String("string"),
	ManagementEndpoint:   pulumi.String("string"),
	ExternalKeyVersionId: pulumi.String("string"),
	TimeOfDeletion:       pulumi.String("string"),
})
var keyVersionResource = new KeyVersion("keyVersionResource", KeyVersionArgs.builder()
    .keyId("string")
    .managementEndpoint("string")
    .externalKeyVersionId("string")
    .timeOfDeletion("string")
    .build());
key_version_resource = oci.kms.KeyVersion("keyVersionResource",
    key_id="string",
    management_endpoint="string",
    external_key_version_id="string",
    time_of_deletion="string")
const keyVersionResource = new oci.kms.KeyVersion("keyVersionResource", {
    keyId: "string",
    managementEndpoint: "string",
    externalKeyVersionId: "string",
    timeOfDeletion: "string",
});
type: oci:Kms:KeyVersion
properties:
    externalKeyVersionId: string
    keyId: string
    managementEndpoint: string
    timeOfDeletion: string
KeyVersion Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The KeyVersion resource accepts the following input properties:
- KeyId string
- The OCID of the key.
- ManagementEndpoint string
- The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. See Vault Management endpoint.
- ExternalKey stringVersion Id 
- Key version ID associated with the external key.
- TimeOf stringDeletion 
- (Updatable) An optional property for the deletion time of the key version, expressed in RFC 3339 timestamp format. Example: - 2019-04-03T21:10:29.600Z- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- KeyId string
- The OCID of the key.
- ManagementEndpoint string
- The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. See Vault Management endpoint.
- ExternalKey stringVersion Id 
- Key version ID associated with the external key.
- TimeOf stringDeletion 
- (Updatable) An optional property for the deletion time of the key version, expressed in RFC 3339 timestamp format. Example: - 2019-04-03T21:10:29.600Z- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- keyId String
- The OCID of the key.
- managementEndpoint String
- The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. See Vault Management endpoint.
- externalKey StringVersion Id 
- Key version ID associated with the external key.
- timeOf StringDeletion 
- (Updatable) An optional property for the deletion time of the key version, expressed in RFC 3339 timestamp format. Example: - 2019-04-03T21:10:29.600Z- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- keyId string
- The OCID of the key.
- managementEndpoint string
- The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. See Vault Management endpoint.
- externalKey stringVersion Id 
- Key version ID associated with the external key.
- timeOf stringDeletion 
- (Updatable) An optional property for the deletion time of the key version, expressed in RFC 3339 timestamp format. Example: - 2019-04-03T21:10:29.600Z- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- key_id str
- The OCID of the key.
- management_endpoint str
- The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. See Vault Management endpoint.
- external_key_ strversion_ id 
- Key version ID associated with the external key.
- time_of_ strdeletion 
- (Updatable) An optional property for the deletion time of the key version, expressed in RFC 3339 timestamp format. Example: - 2019-04-03T21:10:29.600Z- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- keyId String
- The OCID of the key.
- managementEndpoint String
- The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. See Vault Management endpoint.
- externalKey StringVersion Id 
- Key version ID associated with the external key.
- timeOf StringDeletion 
- (Updatable) An optional property for the deletion time of the key version, expressed in RFC 3339 timestamp format. Example: - 2019-04-03T21:10:29.600Z- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
Outputs
All input properties are implicitly available as output properties. Additionally, the KeyVersion resource produces the following output properties:
- CompartmentId string
- The OCID of the compartment that contains this key version.
- ExternalKey List<KeyReference Details Version External Key Reference Detail> 
- Key reference data to be returned to the customer as a response.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsAuto boolRotated 
- An optional property indicating whether this keyversion is generated from auto rotatation.
- IsPrimary bool
- A Boolean value that indicates whether the KeyVersion belongs to primary Vault or replica Vault.
- KeyVersion stringId 
- PublicKey string
- The public key in PEM format. (This value pertains only to RSA and ECDSA keys.)
- ReplicaDetails List<KeyVersion Replica Detail> 
- KeyVersion replica details
- RestoredFrom stringKey Id 
- RestoredFrom stringKey Version Id 
- The OCID of the key version from which this key version was restored.
- State string
- The key version's current lifecycle state. Example: ENABLED
- TimeCreated string
- The date and time this key version was created, expressed in RFC 3339 timestamp format. Example: "2018-04-03T21:10:29.600Z"
- VaultId string
- The OCID of the vault that contains this key version.
- CompartmentId string
- The OCID of the compartment that contains this key version.
- ExternalKey []KeyReference Details Version External Key Reference Detail 
- Key reference data to be returned to the customer as a response.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsAuto boolRotated 
- An optional property indicating whether this keyversion is generated from auto rotatation.
- IsPrimary bool
- A Boolean value that indicates whether the KeyVersion belongs to primary Vault or replica Vault.
- KeyVersion stringId 
- PublicKey string
- The public key in PEM format. (This value pertains only to RSA and ECDSA keys.)
- ReplicaDetails []KeyVersion Replica Detail 
- KeyVersion replica details
- RestoredFrom stringKey Id 
- RestoredFrom stringKey Version Id 
- The OCID of the key version from which this key version was restored.
- State string
- The key version's current lifecycle state. Example: ENABLED
- TimeCreated string
- The date and time this key version was created, expressed in RFC 3339 timestamp format. Example: "2018-04-03T21:10:29.600Z"
- VaultId string
- The OCID of the vault that contains this key version.
- compartmentId String
- The OCID of the compartment that contains this key version.
- externalKey List<KeyReference Details Version External Key Reference Detail> 
- Key reference data to be returned to the customer as a response.
- id String
- The provider-assigned unique ID for this managed resource.
- isAuto BooleanRotated 
- An optional property indicating whether this keyversion is generated from auto rotatation.
- isPrimary Boolean
- A Boolean value that indicates whether the KeyVersion belongs to primary Vault or replica Vault.
- keyVersion StringId 
- publicKey String
- The public key in PEM format. (This value pertains only to RSA and ECDSA keys.)
- replicaDetails List<KeyVersion Replica Detail> 
- KeyVersion replica details
- restoredFrom StringKey Id 
- restoredFrom StringKey Version Id 
- The OCID of the key version from which this key version was restored.
- state String
- The key version's current lifecycle state. Example: ENABLED
- timeCreated String
- The date and time this key version was created, expressed in RFC 3339 timestamp format. Example: "2018-04-03T21:10:29.600Z"
- vaultId String
- The OCID of the vault that contains this key version.
- compartmentId string
- The OCID of the compartment that contains this key version.
- externalKey KeyReference Details Version External Key Reference Detail[] 
- Key reference data to be returned to the customer as a response.
- id string
- The provider-assigned unique ID for this managed resource.
- isAuto booleanRotated 
- An optional property indicating whether this keyversion is generated from auto rotatation.
- isPrimary boolean
- A Boolean value that indicates whether the KeyVersion belongs to primary Vault or replica Vault.
- keyVersion stringId 
- publicKey string
- The public key in PEM format. (This value pertains only to RSA and ECDSA keys.)
- replicaDetails KeyVersion Replica Detail[] 
- KeyVersion replica details
- restoredFrom stringKey Id 
- restoredFrom stringKey Version Id 
- The OCID of the key version from which this key version was restored.
- state string
- The key version's current lifecycle state. Example: ENABLED
- timeCreated string
- The date and time this key version was created, expressed in RFC 3339 timestamp format. Example: "2018-04-03T21:10:29.600Z"
- vaultId string
- The OCID of the vault that contains this key version.
- compartment_id str
- The OCID of the compartment that contains this key version.
- external_key_ Sequence[Keyreference_ details Version External Key Reference Detail] 
- Key reference data to be returned to the customer as a response.
- id str
- The provider-assigned unique ID for this managed resource.
- is_auto_ boolrotated 
- An optional property indicating whether this keyversion is generated from auto rotatation.
- is_primary bool
- A Boolean value that indicates whether the KeyVersion belongs to primary Vault or replica Vault.
- key_version_ strid 
- public_key str
- The public key in PEM format. (This value pertains only to RSA and ECDSA keys.)
- replica_details Sequence[KeyVersion Replica Detail] 
- KeyVersion replica details
- restored_from_ strkey_ id 
- restored_from_ strkey_ version_ id 
- The OCID of the key version from which this key version was restored.
- state str
- The key version's current lifecycle state. Example: ENABLED
- time_created str
- The date and time this key version was created, expressed in RFC 3339 timestamp format. Example: "2018-04-03T21:10:29.600Z"
- vault_id str
- The OCID of the vault that contains this key version.
- compartmentId String
- The OCID of the compartment that contains this key version.
- externalKey List<Property Map>Reference Details 
- Key reference data to be returned to the customer as a response.
- id String
- The provider-assigned unique ID for this managed resource.
- isAuto BooleanRotated 
- An optional property indicating whether this keyversion is generated from auto rotatation.
- isPrimary Boolean
- A Boolean value that indicates whether the KeyVersion belongs to primary Vault or replica Vault.
- keyVersion StringId 
- publicKey String
- The public key in PEM format. (This value pertains only to RSA and ECDSA keys.)
- replicaDetails List<Property Map>
- KeyVersion replica details
- restoredFrom StringKey Id 
- restoredFrom StringKey Version Id 
- The OCID of the key version from which this key version was restored.
- state String
- The key version's current lifecycle state. Example: ENABLED
- timeCreated String
- The date and time this key version was created, expressed in RFC 3339 timestamp format. Example: "2018-04-03T21:10:29.600Z"
- vaultId String
- The OCID of the vault that contains this key version.
Look up Existing KeyVersion Resource
Get an existing KeyVersion resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: KeyVersionState, opts?: CustomResourceOptions): KeyVersion@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        external_key_reference_details: Optional[Sequence[KeyVersionExternalKeyReferenceDetailArgs]] = None,
        external_key_version_id: Optional[str] = None,
        is_auto_rotated: Optional[bool] = None,
        is_primary: Optional[bool] = None,
        key_id: Optional[str] = None,
        key_version_id: Optional[str] = None,
        management_endpoint: Optional[str] = None,
        public_key: Optional[str] = None,
        replica_details: Optional[Sequence[KeyVersionReplicaDetailArgs]] = None,
        restored_from_key_id: Optional[str] = None,
        restored_from_key_version_id: Optional[str] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None,
        time_of_deletion: Optional[str] = None,
        vault_id: Optional[str] = None) -> KeyVersionfunc GetKeyVersion(ctx *Context, name string, id IDInput, state *KeyVersionState, opts ...ResourceOption) (*KeyVersion, error)public static KeyVersion Get(string name, Input<string> id, KeyVersionState? state, CustomResourceOptions? opts = null)public static KeyVersion get(String name, Output<String> id, KeyVersionState state, CustomResourceOptions options)resources:  _:    type: oci:Kms:KeyVersion    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- CompartmentId string
- The OCID of the compartment that contains this key version.
- ExternalKey List<KeyReference Details Version External Key Reference Detail> 
- Key reference data to be returned to the customer as a response.
- ExternalKey stringVersion Id 
- Key version ID associated with the external key.
- IsAuto boolRotated 
- An optional property indicating whether this keyversion is generated from auto rotatation.
- IsPrimary bool
- A Boolean value that indicates whether the KeyVersion belongs to primary Vault or replica Vault.
- KeyId string
- The OCID of the key.
- KeyVersion stringId 
- ManagementEndpoint string
- The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. See Vault Management endpoint.
- PublicKey string
- The public key in PEM format. (This value pertains only to RSA and ECDSA keys.)
- ReplicaDetails List<KeyVersion Replica Detail> 
- KeyVersion replica details
- RestoredFrom stringKey Id 
- RestoredFrom stringKey Version Id 
- The OCID of the key version from which this key version was restored.
- State string
- The key version's current lifecycle state. Example: ENABLED
- TimeCreated string
- The date and time this key version was created, expressed in RFC 3339 timestamp format. Example: "2018-04-03T21:10:29.600Z"
- TimeOf stringDeletion 
- (Updatable) An optional property for the deletion time of the key version, expressed in RFC 3339 timestamp format. Example: - 2019-04-03T21:10:29.600Z- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- VaultId string
- The OCID of the vault that contains this key version.
- CompartmentId string
- The OCID of the compartment that contains this key version.
- ExternalKey []KeyReference Details Version External Key Reference Detail Args 
- Key reference data to be returned to the customer as a response.
- ExternalKey stringVersion Id 
- Key version ID associated with the external key.
- IsAuto boolRotated 
- An optional property indicating whether this keyversion is generated from auto rotatation.
- IsPrimary bool
- A Boolean value that indicates whether the KeyVersion belongs to primary Vault or replica Vault.
- KeyId string
- The OCID of the key.
- KeyVersion stringId 
- ManagementEndpoint string
- The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. See Vault Management endpoint.
- PublicKey string
- The public key in PEM format. (This value pertains only to RSA and ECDSA keys.)
- ReplicaDetails []KeyVersion Replica Detail Args 
- KeyVersion replica details
- RestoredFrom stringKey Id 
- RestoredFrom stringKey Version Id 
- The OCID of the key version from which this key version was restored.
- State string
- The key version's current lifecycle state. Example: ENABLED
- TimeCreated string
- The date and time this key version was created, expressed in RFC 3339 timestamp format. Example: "2018-04-03T21:10:29.600Z"
- TimeOf stringDeletion 
- (Updatable) An optional property for the deletion time of the key version, expressed in RFC 3339 timestamp format. Example: - 2019-04-03T21:10:29.600Z- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- VaultId string
- The OCID of the vault that contains this key version.
- compartmentId String
- The OCID of the compartment that contains this key version.
- externalKey List<KeyReference Details Version External Key Reference Detail> 
- Key reference data to be returned to the customer as a response.
- externalKey StringVersion Id 
- Key version ID associated with the external key.
- isAuto BooleanRotated 
- An optional property indicating whether this keyversion is generated from auto rotatation.
- isPrimary Boolean
- A Boolean value that indicates whether the KeyVersion belongs to primary Vault or replica Vault.
- keyId String
- The OCID of the key.
- keyVersion StringId 
- managementEndpoint String
- The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. See Vault Management endpoint.
- publicKey String
- The public key in PEM format. (This value pertains only to RSA and ECDSA keys.)
- replicaDetails List<KeyVersion Replica Detail> 
- KeyVersion replica details
- restoredFrom StringKey Id 
- restoredFrom StringKey Version Id 
- The OCID of the key version from which this key version was restored.
- state String
- The key version's current lifecycle state. Example: ENABLED
- timeCreated String
- The date and time this key version was created, expressed in RFC 3339 timestamp format. Example: "2018-04-03T21:10:29.600Z"
- timeOf StringDeletion 
- (Updatable) An optional property for the deletion time of the key version, expressed in RFC 3339 timestamp format. Example: - 2019-04-03T21:10:29.600Z- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- vaultId String
- The OCID of the vault that contains this key version.
- compartmentId string
- The OCID of the compartment that contains this key version.
- externalKey KeyReference Details Version External Key Reference Detail[] 
- Key reference data to be returned to the customer as a response.
- externalKey stringVersion Id 
- Key version ID associated with the external key.
- isAuto booleanRotated 
- An optional property indicating whether this keyversion is generated from auto rotatation.
- isPrimary boolean
- A Boolean value that indicates whether the KeyVersion belongs to primary Vault or replica Vault.
- keyId string
- The OCID of the key.
- keyVersion stringId 
- managementEndpoint string
- The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. See Vault Management endpoint.
- publicKey string
- The public key in PEM format. (This value pertains only to RSA and ECDSA keys.)
- replicaDetails KeyVersion Replica Detail[] 
- KeyVersion replica details
- restoredFrom stringKey Id 
- restoredFrom stringKey Version Id 
- The OCID of the key version from which this key version was restored.
- state string
- The key version's current lifecycle state. Example: ENABLED
- timeCreated string
- The date and time this key version was created, expressed in RFC 3339 timestamp format. Example: "2018-04-03T21:10:29.600Z"
- timeOf stringDeletion 
- (Updatable) An optional property for the deletion time of the key version, expressed in RFC 3339 timestamp format. Example: - 2019-04-03T21:10:29.600Z- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- vaultId string
- The OCID of the vault that contains this key version.
- compartment_id str
- The OCID of the compartment that contains this key version.
- external_key_ Sequence[Keyreference_ details Version External Key Reference Detail Args] 
- Key reference data to be returned to the customer as a response.
- external_key_ strversion_ id 
- Key version ID associated with the external key.
- is_auto_ boolrotated 
- An optional property indicating whether this keyversion is generated from auto rotatation.
- is_primary bool
- A Boolean value that indicates whether the KeyVersion belongs to primary Vault or replica Vault.
- key_id str
- The OCID of the key.
- key_version_ strid 
- management_endpoint str
- The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. See Vault Management endpoint.
- public_key str
- The public key in PEM format. (This value pertains only to RSA and ECDSA keys.)
- replica_details Sequence[KeyVersion Replica Detail Args] 
- KeyVersion replica details
- restored_from_ strkey_ id 
- restored_from_ strkey_ version_ id 
- The OCID of the key version from which this key version was restored.
- state str
- The key version's current lifecycle state. Example: ENABLED
- time_created str
- The date and time this key version was created, expressed in RFC 3339 timestamp format. Example: "2018-04-03T21:10:29.600Z"
- time_of_ strdeletion 
- (Updatable) An optional property for the deletion time of the key version, expressed in RFC 3339 timestamp format. Example: - 2019-04-03T21:10:29.600Z- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- vault_id str
- The OCID of the vault that contains this key version.
- compartmentId String
- The OCID of the compartment that contains this key version.
- externalKey List<Property Map>Reference Details 
- Key reference data to be returned to the customer as a response.
- externalKey StringVersion Id 
- Key version ID associated with the external key.
- isAuto BooleanRotated 
- An optional property indicating whether this keyversion is generated from auto rotatation.
- isPrimary Boolean
- A Boolean value that indicates whether the KeyVersion belongs to primary Vault or replica Vault.
- keyId String
- The OCID of the key.
- keyVersion StringId 
- managementEndpoint String
- The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. See Vault Management endpoint.
- publicKey String
- The public key in PEM format. (This value pertains only to RSA and ECDSA keys.)
- replicaDetails List<Property Map>
- KeyVersion replica details
- restoredFrom StringKey Id 
- restoredFrom StringKey Version Id 
- The OCID of the key version from which this key version was restored.
- state String
- The key version's current lifecycle state. Example: ENABLED
- timeCreated String
- The date and time this key version was created, expressed in RFC 3339 timestamp format. Example: "2018-04-03T21:10:29.600Z"
- timeOf StringDeletion 
- (Updatable) An optional property for the deletion time of the key version, expressed in RFC 3339 timestamp format. Example: - 2019-04-03T21:10:29.600Z- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- vaultId String
- The OCID of the vault that contains this key version.
Supporting Types
KeyVersionExternalKeyReferenceDetail, KeyVersionExternalKeyReferenceDetailArgs            
- ExternalKey stringId 
- ExternalKeyId refers to the globally unique key Id associated with the key created in external vault in CTM.
- ExternalKey stringVersion Id 
- Key version ID associated with the external key.
- ExternalKey stringId 
- ExternalKeyId refers to the globally unique key Id associated with the key created in external vault in CTM.
- ExternalKey stringVersion Id 
- Key version ID associated with the external key.
- externalKey StringId 
- ExternalKeyId refers to the globally unique key Id associated with the key created in external vault in CTM.
- externalKey StringVersion Id 
- Key version ID associated with the external key.
- externalKey stringId 
- ExternalKeyId refers to the globally unique key Id associated with the key created in external vault in CTM.
- externalKey stringVersion Id 
- Key version ID associated with the external key.
- external_key_ strid 
- ExternalKeyId refers to the globally unique key Id associated with the key created in external vault in CTM.
- external_key_ strversion_ id 
- Key version ID associated with the external key.
- externalKey StringId 
- ExternalKeyId refers to the globally unique key Id associated with the key created in external vault in CTM.
- externalKey StringVersion Id 
- Key version ID associated with the external key.
KeyVersionReplicaDetail, KeyVersionReplicaDetailArgs        
- ReplicationId string
- ReplicationId associated with a key version operation
- ReplicationId string
- ReplicationId associated with a key version operation
- replicationId String
- ReplicationId associated with a key version operation
- replicationId string
- ReplicationId associated with a key version operation
- replication_id str
- ReplicationId associated with a key version operation
- replicationId String
- ReplicationId associated with a key version operation
Import
KeyVersions can be imported using the id, e.g.
$ pulumi import oci:Kms/keyVersion:KeyVersion test_key_version "managementEndpoint/{managementEndpoint}/keys/{keyId}/keyVersions/{keyVersionId}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.