oci.Kms.getKeys
Explore with Pulumi AI
This data source provides the list of Keys in Oracle Cloud Infrastructure Kms service.
Lists the master encryption keys in the specified vault and compartment.
As a management operation, this call is subject to a Key Management limit that applies to the total number of requests across all management read operations. Key Management might throttle this call to reject an otherwise valid request when the total rate of management read operations exceeds 10 requests per second for a given tenancy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testKeys = oci.Kms.getKeys({
compartmentId: compartmentId,
managementEndpoint: keyManagementEndpoint,
algorithm: keyAlgorithm,
length: keyLength,
curveId: testCurve.id,
protectionMode: keyProtectionMode,
});
import pulumi
import pulumi_oci as oci
test_keys = oci.Kms.get_keys(compartment_id=compartment_id,
management_endpoint=key_management_endpoint,
algorithm=key_algorithm,
length=key_length,
curve_id=test_curve["id"],
protection_mode=key_protection_mode)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Kms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Kms.GetKeys(ctx, &kms.GetKeysArgs{
CompartmentId: compartmentId,
ManagementEndpoint: keyManagementEndpoint,
Algorithm: pulumi.StringRef(keyAlgorithm),
Length: pulumi.IntRef(keyLength),
CurveId: pulumi.StringRef(testCurve.Id),
ProtectionMode: pulumi.StringRef(keyProtectionMode),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testKeys = Oci.Kms.GetKeys.Invoke(new()
{
CompartmentId = compartmentId,
ManagementEndpoint = keyManagementEndpoint,
Algorithm = keyAlgorithm,
Length = keyLength,
CurveId = testCurve.Id,
ProtectionMode = keyProtectionMode,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Kms.KmsFunctions;
import com.pulumi.oci.Kms.inputs.GetKeysArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testKeys = KmsFunctions.getKeys(GetKeysArgs.builder()
.compartmentId(compartmentId)
.managementEndpoint(keyManagementEndpoint)
.algorithm(keyAlgorithm)
.length(keyLength)
.curveId(testCurve.id())
.protectionMode(keyProtectionMode)
.build());
}
}
variables:
testKeys:
fn::invoke:
Function: oci:Kms:getKeys
Arguments:
compartmentId: ${compartmentId}
managementEndpoint: ${keyManagementEndpoint}
algorithm: ${keyAlgorithm}
length: ${keyLength}
curveId: ${testCurve.id}
protectionMode: ${keyProtectionMode}
Using getKeys
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getKeys(args: GetKeysArgs, opts?: InvokeOptions): Promise<GetKeysResult>
function getKeysOutput(args: GetKeysOutputArgs, opts?: InvokeOptions): Output<GetKeysResult>
def get_keys(algorithm: Optional[str] = None,
compartment_id: Optional[str] = None,
curve_id: Optional[str] = None,
filters: Optional[Sequence[_kms.GetKeysFilter]] = None,
length: Optional[int] = None,
management_endpoint: Optional[str] = None,
protection_mode: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKeysResult
def get_keys_output(algorithm: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
curve_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_kms.GetKeysFilterArgs]]]] = None,
length: Optional[pulumi.Input[int]] = None,
management_endpoint: Optional[pulumi.Input[str]] = None,
protection_mode: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKeysResult]
func GetKeys(ctx *Context, args *GetKeysArgs, opts ...InvokeOption) (*GetKeysResult, error)
func GetKeysOutput(ctx *Context, args *GetKeysOutputArgs, opts ...InvokeOption) GetKeysResultOutput
> Note: This function is named GetKeys
in the Go SDK.
public static class GetKeys
{
public static Task<GetKeysResult> InvokeAsync(GetKeysArgs args, InvokeOptions? opts = null)
public static Output<GetKeysResult> Invoke(GetKeysInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetKeysResult> getKeys(GetKeysArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Kms/getKeys:getKeys
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment.
- Management
Endpoint string - The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. See Vault Management endpoint.
- Algorithm string
- The algorithm used by a key's key versions to encrypt or decrypt data. Currently, support includes AES, RSA, and ECDSA algorithms.
- Curve
Id string - The curve ID of the keys. (This pertains only to ECDSA keys.)
- Filters
List<Get
Keys Filter> - Length int
- The length of the key in bytes, expressed as an integer. Supported values include 16, 24, or 32.
- Protection
Mode string - A key's protection mode indicates how the key persists and where cryptographic operations that use the key are performed. A protection mode of
HSM
means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode ofSOFTWARE
means that the key persists on the server, protected by the vault's RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode ofSOFTWARE
are performed on the server. A protection mode ofEXTERNAL
mean that the key persists on the customer's external key manager which is hosted externally outside of oracle. Oracle only hold a reference to that key. All cryptographic operations that use a key with a protection mode ofEXTERNAL
are performed by external key manager.
- Compartment
Id string - The OCID of the compartment.
- Management
Endpoint string - The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. See Vault Management endpoint.
- Algorithm string
- The algorithm used by a key's key versions to encrypt or decrypt data. Currently, support includes AES, RSA, and ECDSA algorithms.
- Curve
Id string - The curve ID of the keys. (This pertains only to ECDSA keys.)
- Filters
[]Get
Keys Filter - Length int
- The length of the key in bytes, expressed as an integer. Supported values include 16, 24, or 32.
- Protection
Mode string - A key's protection mode indicates how the key persists and where cryptographic operations that use the key are performed. A protection mode of
HSM
means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode ofSOFTWARE
means that the key persists on the server, protected by the vault's RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode ofSOFTWARE
are performed on the server. A protection mode ofEXTERNAL
mean that the key persists on the customer's external key manager which is hosted externally outside of oracle. Oracle only hold a reference to that key. All cryptographic operations that use a key with a protection mode ofEXTERNAL
are performed by external key manager.
- compartment
Id String - The OCID of the compartment.
- management
Endpoint String - The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. See Vault Management endpoint.
- algorithm String
- The algorithm used by a key's key versions to encrypt or decrypt data. Currently, support includes AES, RSA, and ECDSA algorithms.
- curve
Id String - The curve ID of the keys. (This pertains only to ECDSA keys.)
- filters
List<Get
Keys Filter> - length Integer
- The length of the key in bytes, expressed as an integer. Supported values include 16, 24, or 32.
- protection
Mode String - A key's protection mode indicates how the key persists and where cryptographic operations that use the key are performed. A protection mode of
HSM
means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode ofSOFTWARE
means that the key persists on the server, protected by the vault's RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode ofSOFTWARE
are performed on the server. A protection mode ofEXTERNAL
mean that the key persists on the customer's external key manager which is hosted externally outside of oracle. Oracle only hold a reference to that key. All cryptographic operations that use a key with a protection mode ofEXTERNAL
are performed by external key manager.
- compartment
Id string - The OCID of the compartment.
- management
Endpoint string - The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. See Vault Management endpoint.
- algorithm string
- The algorithm used by a key's key versions to encrypt or decrypt data. Currently, support includes AES, RSA, and ECDSA algorithms.
- curve
Id string - The curve ID of the keys. (This pertains only to ECDSA keys.)
- filters
Get
Keys Filter[] - length number
- The length of the key in bytes, expressed as an integer. Supported values include 16, 24, or 32.
- protection
Mode string - A key's protection mode indicates how the key persists and where cryptographic operations that use the key are performed. A protection mode of
HSM
means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode ofSOFTWARE
means that the key persists on the server, protected by the vault's RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode ofSOFTWARE
are performed on the server. A protection mode ofEXTERNAL
mean that the key persists on the customer's external key manager which is hosted externally outside of oracle. Oracle only hold a reference to that key. All cryptographic operations that use a key with a protection mode ofEXTERNAL
are performed by external key manager.
- compartment_
id str - The OCID of the compartment.
- 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.
- algorithm str
- The algorithm used by a key's key versions to encrypt or decrypt data. Currently, support includes AES, RSA, and ECDSA algorithms.
- curve_
id str - The curve ID of the keys. (This pertains only to ECDSA keys.)
- filters
Sequence[kms.
Get Keys Filter] - length int
- The length of the key in bytes, expressed as an integer. Supported values include 16, 24, or 32.
- protection_
mode str - A key's protection mode indicates how the key persists and where cryptographic operations that use the key are performed. A protection mode of
HSM
means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode ofSOFTWARE
means that the key persists on the server, protected by the vault's RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode ofSOFTWARE
are performed on the server. A protection mode ofEXTERNAL
mean that the key persists on the customer's external key manager which is hosted externally outside of oracle. Oracle only hold a reference to that key. All cryptographic operations that use a key with a protection mode ofEXTERNAL
are performed by external key manager.
- compartment
Id String - The OCID of the compartment.
- management
Endpoint String - The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. See Vault Management endpoint.
- algorithm String
- The algorithm used by a key's key versions to encrypt or decrypt data. Currently, support includes AES, RSA, and ECDSA algorithms.
- curve
Id String - The curve ID of the keys. (This pertains only to ECDSA keys.)
- filters List<Property Map>
- length Number
- The length of the key in bytes, expressed as an integer. Supported values include 16, 24, or 32.
- protection
Mode String - A key's protection mode indicates how the key persists and where cryptographic operations that use the key are performed. A protection mode of
HSM
means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode ofSOFTWARE
means that the key persists on the server, protected by the vault's RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode ofSOFTWARE
are performed on the server. A protection mode ofEXTERNAL
mean that the key persists on the customer's external key manager which is hosted externally outside of oracle. Oracle only hold a reference to that key. All cryptographic operations that use a key with a protection mode ofEXTERNAL
are performed by external key manager.
getKeys Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment that contains this master encryption key.
- Id string
- The provider-assigned unique ID for this managed resource.
- Keys
List<Get
Keys Key> - The list of keys.
- Management
Endpoint string - Algorithm string
- The algorithm used by a key's key versions to encrypt or decrypt. Only AES algorithm is supported for
External
keys. - Curve
Id string - Supported curve IDs for ECDSA keys.
- Filters
List<Get
Keys Filter> - Length int
- The length of the key in bytes, expressed as an integer. Supported values include the following:
- AES: 16, 24, or 32
- RSA: 256, 384, or 512
- ECDSA: 32, 48, or 66
- Protection
Mode string - The key's protection mode indicates how the key persists and where cryptographic operations that use the key are performed. A protection mode of
HSM
means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode ofSOFTWARE
means that the key persists on the server, protected by the vault's RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode ofSOFTWARE
are performed on the server. By default, a key's protection mode is set toHSM
. You can't change a key's protection mode after the key is created or imported. A protection mode ofEXTERNAL
mean that the key persists on the customer's external key manager which is hosted externally outside of oracle. Oracle only hold a reference to that key. All cryptographic operations that use a key with a protection mode ofEXTERNAL
are performed by external key manager.
- Compartment
Id string - The OCID of the compartment that contains this master encryption key.
- Id string
- The provider-assigned unique ID for this managed resource.
- Keys
[]Get
Keys Key - The list of keys.
- Management
Endpoint string - Algorithm string
- The algorithm used by a key's key versions to encrypt or decrypt. Only AES algorithm is supported for
External
keys. - Curve
Id string - Supported curve IDs for ECDSA keys.
- Filters
[]Get
Keys Filter - Length int
- The length of the key in bytes, expressed as an integer. Supported values include the following:
- AES: 16, 24, or 32
- RSA: 256, 384, or 512
- ECDSA: 32, 48, or 66
- Protection
Mode string - The key's protection mode indicates how the key persists and where cryptographic operations that use the key are performed. A protection mode of
HSM
means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode ofSOFTWARE
means that the key persists on the server, protected by the vault's RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode ofSOFTWARE
are performed on the server. By default, a key's protection mode is set toHSM
. You can't change a key's protection mode after the key is created or imported. A protection mode ofEXTERNAL
mean that the key persists on the customer's external key manager which is hosted externally outside of oracle. Oracle only hold a reference to that key. All cryptographic operations that use a key with a protection mode ofEXTERNAL
are performed by external key manager.
- compartment
Id String - The OCID of the compartment that contains this master encryption key.
- id String
- The provider-assigned unique ID for this managed resource.
- keys
List<Get
Keys Key> - The list of keys.
- management
Endpoint String - algorithm String
- The algorithm used by a key's key versions to encrypt or decrypt. Only AES algorithm is supported for
External
keys. - curve
Id String - Supported curve IDs for ECDSA keys.
- filters
List<Get
Keys Filter> - length Integer
- The length of the key in bytes, expressed as an integer. Supported values include the following:
- AES: 16, 24, or 32
- RSA: 256, 384, or 512
- ECDSA: 32, 48, or 66
- protection
Mode String - The key's protection mode indicates how the key persists and where cryptographic operations that use the key are performed. A protection mode of
HSM
means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode ofSOFTWARE
means that the key persists on the server, protected by the vault's RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode ofSOFTWARE
are performed on the server. By default, a key's protection mode is set toHSM
. You can't change a key's protection mode after the key is created or imported. A protection mode ofEXTERNAL
mean that the key persists on the customer's external key manager which is hosted externally outside of oracle. Oracle only hold a reference to that key. All cryptographic operations that use a key with a protection mode ofEXTERNAL
are performed by external key manager.
- compartment
Id string - The OCID of the compartment that contains this master encryption key.
- id string
- The provider-assigned unique ID for this managed resource.
- keys
Get
Keys Key[] - The list of keys.
- management
Endpoint string - algorithm string
- The algorithm used by a key's key versions to encrypt or decrypt. Only AES algorithm is supported for
External
keys. - curve
Id string - Supported curve IDs for ECDSA keys.
- filters
Get
Keys Filter[] - length number
- The length of the key in bytes, expressed as an integer. Supported values include the following:
- AES: 16, 24, or 32
- RSA: 256, 384, or 512
- ECDSA: 32, 48, or 66
- protection
Mode string - The key's protection mode indicates how the key persists and where cryptographic operations that use the key are performed. A protection mode of
HSM
means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode ofSOFTWARE
means that the key persists on the server, protected by the vault's RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode ofSOFTWARE
are performed on the server. By default, a key's protection mode is set toHSM
. You can't change a key's protection mode after the key is created or imported. A protection mode ofEXTERNAL
mean that the key persists on the customer's external key manager which is hosted externally outside of oracle. Oracle only hold a reference to that key. All cryptographic operations that use a key with a protection mode ofEXTERNAL
are performed by external key manager.
- compartment_
id str - The OCID of the compartment that contains this master encryption key.
- id str
- The provider-assigned unique ID for this managed resource.
- keys
Sequence[kms.
Get Keys Key] - The list of keys.
- management_
endpoint str - algorithm str
- The algorithm used by a key's key versions to encrypt or decrypt. Only AES algorithm is supported for
External
keys. - curve_
id str - Supported curve IDs for ECDSA keys.
- filters
Sequence[kms.
Get Keys Filter] - length int
- The length of the key in bytes, expressed as an integer. Supported values include the following:
- AES: 16, 24, or 32
- RSA: 256, 384, or 512
- ECDSA: 32, 48, or 66
- protection_
mode str - The key's protection mode indicates how the key persists and where cryptographic operations that use the key are performed. A protection mode of
HSM
means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode ofSOFTWARE
means that the key persists on the server, protected by the vault's RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode ofSOFTWARE
are performed on the server. By default, a key's protection mode is set toHSM
. You can't change a key's protection mode after the key is created or imported. A protection mode ofEXTERNAL
mean that the key persists on the customer's external key manager which is hosted externally outside of oracle. Oracle only hold a reference to that key. All cryptographic operations that use a key with a protection mode ofEXTERNAL
are performed by external key manager.
- compartment
Id String - The OCID of the compartment that contains this master encryption key.
- id String
- The provider-assigned unique ID for this managed resource.
- keys List<Property Map>
- The list of keys.
- management
Endpoint String - algorithm String
- The algorithm used by a key's key versions to encrypt or decrypt. Only AES algorithm is supported for
External
keys. - curve
Id String - Supported curve IDs for ECDSA keys.
- filters List<Property Map>
- length Number
- The length of the key in bytes, expressed as an integer. Supported values include the following:
- AES: 16, 24, or 32
- RSA: 256, 384, or 512
- ECDSA: 32, 48, or 66
- protection
Mode String - The key's protection mode indicates how the key persists and where cryptographic operations that use the key are performed. A protection mode of
HSM
means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode ofSOFTWARE
means that the key persists on the server, protected by the vault's RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode ofSOFTWARE
are performed on the server. By default, a key's protection mode is set toHSM
. You can't change a key's protection mode after the key is created or imported. A protection mode ofEXTERNAL
mean that the key persists on the customer's external key manager which is hosted externally outside of oracle. Oracle only hold a reference to that key. All cryptographic operations that use a key with a protection mode ofEXTERNAL
are performed by external key manager.
Supporting Types
GetKeysFilter
GetKeysKey
- Auto
Key List<GetRotation Details Keys Key Auto Key Rotation Detail> - The details of auto rotation schedule for the Key being create updated or imported.
- Compartment
Id string - The OCID of the compartment.
- Current
Key stringVersion - The OCID of the key version used in cryptographic operations. During key rotation, the service might be in a transitional state where this or a newer key version are used intermittently. The
currentKeyVersion
property is updated when the service is guaranteed to use the new key version for all subsequent encryption operations. - Dictionary<string, object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Desired
State string - Display
Name string - A user-friendly name for the key. It does not have to be unique, and it is changeable. Avoid entering confidential information.
- External
Key List<GetReference Details Keys Key External Key Reference Detail> - Key reference data to be returned to the customer as a response.
- External
Key List<GetReferences Keys Key External Key Reference> - Dictionary<string, object>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- The OCID of the key.
- Is
Auto boolRotation Enabled - A parameter specifying whether the auto key rotation is enabled or not.
- Is
Primary bool - A Boolean value that indicates whether the Key belongs to primary Vault or replica vault.
- Key
Shapes List<GetKeys Key Key Shape> - The cryptographic properties of a key.
- Management
Endpoint string - The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. See Vault Management endpoint.
- Protection
Mode string - A key's protection mode indicates how the key persists and where cryptographic operations that use the key are performed. A protection mode of
HSM
means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode ofSOFTWARE
means that the key persists on the server, protected by the vault's RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode ofSOFTWARE
are performed on the server. A protection mode ofEXTERNAL
mean that the key persists on the customer's external key manager which is hosted externally outside of oracle. Oracle only hold a reference to that key. All cryptographic operations that use a key with a protection mode ofEXTERNAL
are performed by external key manager. - Replica
Details List<GetKeys Key Replica Detail> - Key replica details
- Restore
From List<GetFiles Keys Key Restore From File> - Restore
From List<GetObject Stores Keys Key Restore From Object Store> - Restore
Trigger bool - Restored
From stringKey Id - State string
- The key's current lifecycle state. Example:
ENABLED
- Time
Created string - The date and time the key was created, expressed in RFC 3339 timestamp format. Example:
2018-04-03T21:10:29.600Z
- Time
Of stringDeletion - An optional property indicating when to delete the key, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- Vault
Id string - The OCID of the vault that contains this key.
- Auto
Key []GetRotation Details Keys Key Auto Key Rotation Detail - The details of auto rotation schedule for the Key being create updated or imported.
- Compartment
Id string - The OCID of the compartment.
- Current
Key stringVersion - The OCID of the key version used in cryptographic operations. During key rotation, the service might be in a transitional state where this or a newer key version are used intermittently. The
currentKeyVersion
property is updated when the service is guaranteed to use the new key version for all subsequent encryption operations. - map[string]interface{}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Desired
State string - Display
Name string - A user-friendly name for the key. It does not have to be unique, and it is changeable. Avoid entering confidential information.
- External
Key []GetReference Details Keys Key External Key Reference Detail - Key reference data to be returned to the customer as a response.
- External
Key []GetReferences Keys Key External Key Reference - map[string]interface{}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- The OCID of the key.
- Is
Auto boolRotation Enabled - A parameter specifying whether the auto key rotation is enabled or not.
- Is
Primary bool - A Boolean value that indicates whether the Key belongs to primary Vault or replica vault.
- Key
Shapes []GetKeys Key Key Shape - The cryptographic properties of a key.
- Management
Endpoint string - The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. See Vault Management endpoint.
- Protection
Mode string - A key's protection mode indicates how the key persists and where cryptographic operations that use the key are performed. A protection mode of
HSM
means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode ofSOFTWARE
means that the key persists on the server, protected by the vault's RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode ofSOFTWARE
are performed on the server. A protection mode ofEXTERNAL
mean that the key persists on the customer's external key manager which is hosted externally outside of oracle. Oracle only hold a reference to that key. All cryptographic operations that use a key with a protection mode ofEXTERNAL
are performed by external key manager. - Replica
Details []GetKeys Key Replica Detail - Key replica details
- Restore
From []GetFiles Keys Key Restore From File - Restore
From []GetObject Stores Keys Key Restore From Object Store - Restore
Trigger bool - Restored
From stringKey Id - State string
- The key's current lifecycle state. Example:
ENABLED
- Time
Created string - The date and time the key was created, expressed in RFC 3339 timestamp format. Example:
2018-04-03T21:10:29.600Z
- Time
Of stringDeletion - An optional property indicating when to delete the key, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- Vault
Id string - The OCID of the vault that contains this key.
- auto
Key List<GetRotation Details Keys Key Auto Key Rotation Detail> - The details of auto rotation schedule for the Key being create updated or imported.
- compartment
Id String - The OCID of the compartment.
- current
Key StringVersion - The OCID of the key version used in cryptographic operations. During key rotation, the service might be in a transitional state where this or a newer key version are used intermittently. The
currentKeyVersion
property is updated when the service is guaranteed to use the new key version for all subsequent encryption operations. - Map<String,Object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- desired
State String - display
Name String - A user-friendly name for the key. It does not have to be unique, and it is changeable. Avoid entering confidential information.
- external
Key List<GetReference Details Keys Key External Key Reference Detail> - Key reference data to be returned to the customer as a response.
- external
Key List<GetReferences Keys Key External Key Reference> - Map<String,Object>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- The OCID of the key.
- is
Auto BooleanRotation Enabled - A parameter specifying whether the auto key rotation is enabled or not.
- is
Primary Boolean - A Boolean value that indicates whether the Key belongs to primary Vault or replica vault.
- key
Shapes List<GetKeys Key Key Shape> - The cryptographic properties of a key.
- management
Endpoint String - The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. See Vault Management endpoint.
- protection
Mode String - A key's protection mode indicates how the key persists and where cryptographic operations that use the key are performed. A protection mode of
HSM
means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode ofSOFTWARE
means that the key persists on the server, protected by the vault's RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode ofSOFTWARE
are performed on the server. A protection mode ofEXTERNAL
mean that the key persists on the customer's external key manager which is hosted externally outside of oracle. Oracle only hold a reference to that key. All cryptographic operations that use a key with a protection mode ofEXTERNAL
are performed by external key manager. - replica
Details List<GetKeys Key Replica Detail> - Key replica details
- restore
From List<GetFiles Keys Key Restore From File> - restore
From List<GetObject Stores Keys Key Restore From Object Store> - restore
Trigger Boolean - restored
From StringKey Id - state String
- The key's current lifecycle state. Example:
ENABLED
- time
Created String - The date and time the key was created, expressed in RFC 3339 timestamp format. Example:
2018-04-03T21:10:29.600Z
- time
Of StringDeletion - An optional property indicating when to delete the key, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- vault
Id String - The OCID of the vault that contains this key.
- auto
Key GetRotation Details Keys Key Auto Key Rotation Detail[] - The details of auto rotation schedule for the Key being create updated or imported.
- compartment
Id string - The OCID of the compartment.
- current
Key stringVersion - The OCID of the key version used in cryptographic operations. During key rotation, the service might be in a transitional state where this or a newer key version are used intermittently. The
currentKeyVersion
property is updated when the service is guaranteed to use the new key version for all subsequent encryption operations. - {[key: string]: any}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- desired
State string - display
Name string - A user-friendly name for the key. It does not have to be unique, and it is changeable. Avoid entering confidential information.
- external
Key GetReference Details Keys Key External Key Reference Detail[] - Key reference data to be returned to the customer as a response.
- external
Key GetReferences Keys Key External Key Reference[] - {[key: string]: any}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id string
- The OCID of the key.
- is
Auto booleanRotation Enabled - A parameter specifying whether the auto key rotation is enabled or not.
- is
Primary boolean - A Boolean value that indicates whether the Key belongs to primary Vault or replica vault.
- key
Shapes GetKeys Key Key Shape[] - The cryptographic properties of a key.
- management
Endpoint string - The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. See Vault Management endpoint.
- protection
Mode string - A key's protection mode indicates how the key persists and where cryptographic operations that use the key are performed. A protection mode of
HSM
means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode ofSOFTWARE
means that the key persists on the server, protected by the vault's RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode ofSOFTWARE
are performed on the server. A protection mode ofEXTERNAL
mean that the key persists on the customer's external key manager which is hosted externally outside of oracle. Oracle only hold a reference to that key. All cryptographic operations that use a key with a protection mode ofEXTERNAL
are performed by external key manager. - replica
Details GetKeys Key Replica Detail[] - Key replica details
- restore
From GetFiles Keys Key Restore From File[] - restore
From GetObject Stores Keys Key Restore From Object Store[] - restore
Trigger boolean - restored
From stringKey Id - state string
- The key's current lifecycle state. Example:
ENABLED
- time
Created string - The date and time the key was created, expressed in RFC 3339 timestamp format. Example:
2018-04-03T21:10:29.600Z
- time
Of stringDeletion - An optional property indicating when to delete the key, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- vault
Id string - The OCID of the vault that contains this key.
- auto_
key_ Sequence[kms.rotation_ details Get Keys Key Auto Key Rotation Detail] - The details of auto rotation schedule for the Key being create updated or imported.
- compartment_
id str - The OCID of the compartment.
- current_
key_ strversion - The OCID of the key version used in cryptographic operations. During key rotation, the service might be in a transitional state where this or a newer key version are used intermittently. The
currentKeyVersion
property is updated when the service is guaranteed to use the new key version for all subsequent encryption operations. - Mapping[str, Any]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- desired_
state str - display_
name str - A user-friendly name for the key. It does not have to be unique, and it is changeable. Avoid entering confidential information.
- external_
key_ Sequence[kms.reference_ details Get Keys Key External Key Reference Detail] - Key reference data to be returned to the customer as a response.
- external_
key_ Sequence[kms.references Get Keys Key External Key Reference] - Mapping[str, Any]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id str
- The OCID of the key.
- is_
auto_ boolrotation_ enabled - A parameter specifying whether the auto key rotation is enabled or not.
- is_
primary bool - A Boolean value that indicates whether the Key belongs to primary Vault or replica vault.
- key_
shapes Sequence[kms.Get Keys Key Key Shape] - The cryptographic properties of a 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.
- protection_
mode str - A key's protection mode indicates how the key persists and where cryptographic operations that use the key are performed. A protection mode of
HSM
means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode ofSOFTWARE
means that the key persists on the server, protected by the vault's RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode ofSOFTWARE
are performed on the server. A protection mode ofEXTERNAL
mean that the key persists on the customer's external key manager which is hosted externally outside of oracle. Oracle only hold a reference to that key. All cryptographic operations that use a key with a protection mode ofEXTERNAL
are performed by external key manager. - replica_
details Sequence[kms.Get Keys Key Replica Detail] - Key replica details
- restore_
from_ Sequence[kms.files Get Keys Key Restore From File] - restore_
from_ Sequence[kms.object_ stores Get Keys Key Restore From Object Store] - restore_
trigger bool - restored_
from_ strkey_ id - state str
- The key's current lifecycle state. Example:
ENABLED
- time_
created str - The date and time the key was created, expressed in RFC 3339 timestamp format. Example:
2018-04-03T21:10:29.600Z
- time_
of_ strdeletion - An optional property indicating when to delete the key, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- vault_
id str - The OCID of the vault that contains this key.
- auto
Key List<Property Map>Rotation Details - The details of auto rotation schedule for the Key being create updated or imported.
- compartment
Id String - The OCID of the compartment.
- current
Key StringVersion - The OCID of the key version used in cryptographic operations. During key rotation, the service might be in a transitional state where this or a newer key version are used intermittently. The
currentKeyVersion
property is updated when the service is guaranteed to use the new key version for all subsequent encryption operations. - Map<Any>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- desired
State String - display
Name String - A user-friendly name for the key. It does not have to be unique, and it is changeable. Avoid entering confidential information.
- external
Key List<Property Map>Reference Details - Key reference data to be returned to the customer as a response.
- external
Key List<Property Map>References - Map<Any>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- The OCID of the key.
- is
Auto BooleanRotation Enabled - A parameter specifying whether the auto key rotation is enabled or not.
- is
Primary Boolean - A Boolean value that indicates whether the Key belongs to primary Vault or replica vault.
- key
Shapes List<Property Map> - The cryptographic properties of a key.
- management
Endpoint String - The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. See Vault Management endpoint.
- protection
Mode String - A key's protection mode indicates how the key persists and where cryptographic operations that use the key are performed. A protection mode of
HSM
means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode ofSOFTWARE
means that the key persists on the server, protected by the vault's RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode ofSOFTWARE
are performed on the server. A protection mode ofEXTERNAL
mean that the key persists on the customer's external key manager which is hosted externally outside of oracle. Oracle only hold a reference to that key. All cryptographic operations that use a key with a protection mode ofEXTERNAL
are performed by external key manager. - replica
Details List<Property Map> - Key replica details
- restore
From List<Property Map>Files - restore
From List<Property Map>Object Stores - restore
Trigger Boolean - restored
From StringKey Id - state String
- The key's current lifecycle state. Example:
ENABLED
- time
Created String - The date and time the key was created, expressed in RFC 3339 timestamp format. Example:
2018-04-03T21:10:29.600Z
- time
Of StringDeletion - An optional property indicating when to delete the key, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- vault
Id String - The OCID of the vault that contains this key.
GetKeysKeyAutoKeyRotationDetail
- Last
Rotation stringMessage - The last execution status message.
- Last
Rotation stringStatus - The status of last execution of auto key rotation.
- Rotation
Interval intIn Days - The interval of auto key rotation. For auto key rotation the interval should between 30 day and 365 days (1 year)
- Time
Of stringLast Rotation - A property indicating Last rotation Date Example:
2023-04-04T00:00:00Z
. - Time
Of stringNext Rotation - A property indicating Next estimated scheduled Time, as per the interval, expressed as date YYYY-MM-DD String. Example:
2023-04-04T00:00:00Z
. - Time
Of stringSchedule Start - A property indicating scheduled start date expressed as date YYYY-MM-DD String. Example:
2023-04-04T00:00:00Z
.
- Last
Rotation stringMessage - The last execution status message.
- Last
Rotation stringStatus - The status of last execution of auto key rotation.
- Rotation
Interval intIn Days - The interval of auto key rotation. For auto key rotation the interval should between 30 day and 365 days (1 year)
- Time
Of stringLast Rotation - A property indicating Last rotation Date Example:
2023-04-04T00:00:00Z
. - Time
Of stringNext Rotation - A property indicating Next estimated scheduled Time, as per the interval, expressed as date YYYY-MM-DD String. Example:
2023-04-04T00:00:00Z
. - Time
Of stringSchedule Start - A property indicating scheduled start date expressed as date YYYY-MM-DD String. Example:
2023-04-04T00:00:00Z
.
- last
Rotation StringMessage - The last execution status message.
- last
Rotation StringStatus - The status of last execution of auto key rotation.
- rotation
Interval IntegerIn Days - The interval of auto key rotation. For auto key rotation the interval should between 30 day and 365 days (1 year)
- time
Of StringLast Rotation - A property indicating Last rotation Date Example:
2023-04-04T00:00:00Z
. - time
Of StringNext Rotation - A property indicating Next estimated scheduled Time, as per the interval, expressed as date YYYY-MM-DD String. Example:
2023-04-04T00:00:00Z
. - time
Of StringSchedule Start - A property indicating scheduled start date expressed as date YYYY-MM-DD String. Example:
2023-04-04T00:00:00Z
.
- last
Rotation stringMessage - The last execution status message.
- last
Rotation stringStatus - The status of last execution of auto key rotation.
- rotation
Interval numberIn Days - The interval of auto key rotation. For auto key rotation the interval should between 30 day and 365 days (1 year)
- time
Of stringLast Rotation - A property indicating Last rotation Date Example:
2023-04-04T00:00:00Z
. - time
Of stringNext Rotation - A property indicating Next estimated scheduled Time, as per the interval, expressed as date YYYY-MM-DD String. Example:
2023-04-04T00:00:00Z
. - time
Of stringSchedule Start - A property indicating scheduled start date expressed as date YYYY-MM-DD String. Example:
2023-04-04T00:00:00Z
.
- last_
rotation_ strmessage - The last execution status message.
- last_
rotation_ strstatus - The status of last execution of auto key rotation.
- rotation_
interval_ intin_ days - The interval of auto key rotation. For auto key rotation the interval should between 30 day and 365 days (1 year)
- time_
of_ strlast_ rotation - A property indicating Last rotation Date Example:
2023-04-04T00:00:00Z
. - time_
of_ strnext_ rotation - A property indicating Next estimated scheduled Time, as per the interval, expressed as date YYYY-MM-DD String. Example:
2023-04-04T00:00:00Z
. - time_
of_ strschedule_ start - A property indicating scheduled start date expressed as date YYYY-MM-DD String. Example:
2023-04-04T00:00:00Z
.
- last
Rotation StringMessage - The last execution status message.
- last
Rotation StringStatus - The status of last execution of auto key rotation.
- rotation
Interval NumberIn Days - The interval of auto key rotation. For auto key rotation the interval should between 30 day and 365 days (1 year)
- time
Of StringLast Rotation - A property indicating Last rotation Date Example:
2023-04-04T00:00:00Z
. - time
Of StringNext Rotation - A property indicating Next estimated scheduled Time, as per the interval, expressed as date YYYY-MM-DD String. Example:
2023-04-04T00:00:00Z
. - time
Of StringSchedule Start - A property indicating scheduled start date expressed as date YYYY-MM-DD String. Example:
2023-04-04T00:00:00Z
.
GetKeysKeyExternalKeyReference
- External
Key stringId - ExternalKeyId refers to the globally unique key Id associated with the key created in external vault in CTM.
- External
Key stringId - ExternalKeyId refers to the globally unique key Id associated with the key created in external vault in CTM.
- external
Key StringId - ExternalKeyId refers to the globally unique key Id associated with the key created in external vault in CTM.
- external
Key stringId - ExternalKeyId refers to the globally unique key Id associated with the key created in external vault in CTM.
- external_
key_ strid - ExternalKeyId refers to the globally unique key Id associated with the key created in external vault in CTM.
- external
Key StringId - ExternalKeyId refers to the globally unique key Id associated with the key created in external vault in CTM.
GetKeysKeyExternalKeyReferenceDetail
- External
Key stringId - ExternalKeyId refers to the globally unique key Id associated with the key created in external vault in CTM.
- External
Key stringVersion Id - Key version ID associated with the external key.
- External
Key stringId - ExternalKeyId refers to the globally unique key Id associated with the key created in external vault in CTM.
- External
Key stringVersion Id - Key version ID associated with the external key.
- external
Key StringId - ExternalKeyId refers to the globally unique key Id associated with the key created in external vault in CTM.
- external
Key StringVersion Id - Key version ID associated with the external key.
- external
Key stringId - ExternalKeyId refers to the globally unique key Id associated with the key created in external vault in CTM.
- external
Key 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.
- external
Key StringId - ExternalKeyId refers to the globally unique key Id associated with the key created in external vault in CTM.
- external
Key StringVersion Id - Key version ID associated with the external key.
GetKeysKeyKeyShape
- Algorithm string
- The algorithm used by a key's key versions to encrypt or decrypt data. Currently, support includes AES, RSA, and ECDSA algorithms.
- Curve
Id string - The curve ID of the keys. (This pertains only to ECDSA keys.)
- Length int
- The length of the key in bytes, expressed as an integer. Supported values include 16, 24, or 32.
- Algorithm string
- The algorithm used by a key's key versions to encrypt or decrypt data. Currently, support includes AES, RSA, and ECDSA algorithms.
- Curve
Id string - The curve ID of the keys. (This pertains only to ECDSA keys.)
- Length int
- The length of the key in bytes, expressed as an integer. Supported values include 16, 24, or 32.
- algorithm String
- The algorithm used by a key's key versions to encrypt or decrypt data. Currently, support includes AES, RSA, and ECDSA algorithms.
- curve
Id String - The curve ID of the keys. (This pertains only to ECDSA keys.)
- length Integer
- The length of the key in bytes, expressed as an integer. Supported values include 16, 24, or 32.
- algorithm string
- The algorithm used by a key's key versions to encrypt or decrypt data. Currently, support includes AES, RSA, and ECDSA algorithms.
- curve
Id string - The curve ID of the keys. (This pertains only to ECDSA keys.)
- length number
- The length of the key in bytes, expressed as an integer. Supported values include 16, 24, or 32.
- algorithm str
- The algorithm used by a key's key versions to encrypt or decrypt data. Currently, support includes AES, RSA, and ECDSA algorithms.
- curve_
id str - The curve ID of the keys. (This pertains only to ECDSA keys.)
- length int
- The length of the key in bytes, expressed as an integer. Supported values include 16, 24, or 32.
- algorithm String
- The algorithm used by a key's key versions to encrypt or decrypt data. Currently, support includes AES, RSA, and ECDSA algorithms.
- curve
Id String - The curve ID of the keys. (This pertains only to ECDSA keys.)
- length Number
- The length of the key in bytes, expressed as an integer. Supported values include 16, 24, or 32.
GetKeysKeyReplicaDetail
- Replication
Id string - ReplicationId associated with a key operation
- Replication
Id string - ReplicationId associated with a key operation
- replication
Id String - ReplicationId associated with a key operation
- replication
Id string - ReplicationId associated with a key operation
- replication_
id str - ReplicationId associated with a key operation
- replication
Id String - ReplicationId associated with a key operation
GetKeysKeyRestoreFromFile
- Content
Length string - Content
Md5 string - Restore
Key stringFrom File Details
- Content
Length string - Content
Md5 string - Restore
Key stringFrom File Details
- content
Length String - content
Md5 String - restore
Key StringFrom File Details
- content
Length string - content
Md5 string - restore
Key stringFrom File Details
- content
Length String - content
Md5 String - restore
Key StringFrom File Details
GetKeysKeyRestoreFromObjectStore
- Bucket string
- Destination string
- Namespace string
- Object string
- Uri string
- Bucket string
- Destination string
- Namespace string
- Object string
- Uri string
- bucket String
- destination String
- namespace String
- object String
- uri String
- bucket string
- destination string
- namespace string
- object string
- uri string
- bucket str
- destination str
- namespace str
- object str
- uri str
- bucket String
- destination String
- namespace String
- object String
- uri String
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.