Viewing docs for Oracle Cloud Infrastructure v3.16.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v3.16.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
This data source provides details about a specific Key Store resource in Oracle Cloud Infrastructure Database service.
Gets information about the specified key store.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testKeyStore = oci.Database.getKeyStore({
keyStoreId: testKeyStoreOciDatabaseKeyStore.id,
});
import pulumi
import pulumi_oci as oci
test_key_store = oci.Database.get_key_store(key_store_id=test_key_store_oci_database_key_store["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/database"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := database.GetKeyStore(ctx, &database.GetKeyStoreArgs{
KeyStoreId: testKeyStoreOciDatabaseKeyStore.Id,
}, 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 testKeyStore = Oci.Database.GetKeyStore.Invoke(new()
{
KeyStoreId = testKeyStoreOciDatabaseKeyStore.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.DatabaseFunctions;
import com.pulumi.oci.Database.inputs.GetKeyStoreArgs;
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 testKeyStore = DatabaseFunctions.getKeyStore(GetKeyStoreArgs.builder()
.keyStoreId(testKeyStoreOciDatabaseKeyStore.id())
.build());
}
}
variables:
testKeyStore:
fn::invoke:
function: oci:Database:getKeyStore
arguments:
keyStoreId: ${testKeyStoreOciDatabaseKeyStore.id}
Using getKeyStore
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 getKeyStore(args: GetKeyStoreArgs, opts?: InvokeOptions): Promise<GetKeyStoreResult>
function getKeyStoreOutput(args: GetKeyStoreOutputArgs, opts?: InvokeOptions): Output<GetKeyStoreResult>def get_key_store(key_store_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKeyStoreResult
def get_key_store_output(key_store_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKeyStoreResult]func LookupKeyStore(ctx *Context, args *LookupKeyStoreArgs, opts ...InvokeOption) (*LookupKeyStoreResult, error)
func LookupKeyStoreOutput(ctx *Context, args *LookupKeyStoreOutputArgs, opts ...InvokeOption) LookupKeyStoreResultOutput> Note: This function is named LookupKeyStore in the Go SDK.
public static class GetKeyStore
{
public static Task<GetKeyStoreResult> InvokeAsync(GetKeyStoreArgs args, InvokeOptions? opts = null)
public static Output<GetKeyStoreResult> Invoke(GetKeyStoreInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetKeyStoreResult> getKeyStore(GetKeyStoreArgs args, InvokeOptions options)
public static Output<GetKeyStoreResult> getKeyStore(GetKeyStoreArgs args, InvokeOptions options)
fn::invoke:
function: oci:Database/getKeyStore:getKeyStore
arguments:
# arguments dictionaryThe following arguments are supported:
- Key
Store stringId - The OCID of the key store.
- Key
Store stringId - The OCID of the key store.
- key
Store StringId - The OCID of the key store.
- key
Store stringId - The OCID of the key store.
- key_
store_ strid - The OCID of the key store.
- key
Store StringId - The OCID of the key store.
getKeyStore Result
The following output properties are available:
- Associated
Databases List<GetKey Store Associated Database> - List of databases associated with the key store.
- Associated
Long intTerm Backup Count - Indicates the number of long term backups of Autonomous Databases associated with this backup destination.
- Associated
Long List<GetTerm Backups Key Store Associated Long Term Backup> - List of long term backups of Autonomous Databases associated with this backup destination.The maximum associated number of long term backup listed here would be 1024.
- Compartment
Id string - The OCID of the compartment.
- Confirm
Details intTrigger - Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Display
Name string - The user-friendly name for the key store. The name does not need to be unique.
- Dictionary<string, string>
- 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 store.
- Key
Store stringId - Lifecycle
Details string - Additional information about the current lifecycle state.
- State string
- The current state of the key store.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Time
Created string - The date and time that the key store was created.
- Type
Details List<GetKey Store Type Detail> - Key store type details.
- Associated
Databases []GetKey Store Associated Database - List of databases associated with the key store.
- Associated
Long intTerm Backup Count - Indicates the number of long term backups of Autonomous Databases associated with this backup destination.
- Associated
Long []GetTerm Backups Key Store Associated Long Term Backup - List of long term backups of Autonomous Databases associated with this backup destination.The maximum associated number of long term backup listed here would be 1024.
- Compartment
Id string - The OCID of the compartment.
- Confirm
Details intTrigger - map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Display
Name string - The user-friendly name for the key store. The name does not need to be unique.
- map[string]string
- 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 store.
- Key
Store stringId - Lifecycle
Details string - Additional information about the current lifecycle state.
- State string
- The current state of the key store.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Time
Created string - The date and time that the key store was created.
- Type
Details []GetKey Store Type Detail - Key store type details.
- associated
Databases List<GetKey Store Associated> - List of databases associated with the key store.
- associated
Long IntegerTerm Backup Count - Indicates the number of long term backups of Autonomous Databases associated with this backup destination.
- associated
Long List<GetTerm Backups Key Store Associated Long Term Backup> - List of long term backups of Autonomous Databases associated with this backup destination.The maximum associated number of long term backup listed here would be 1024.
- compartment
Id String - The OCID of the compartment.
- confirm
Details IntegerTrigger - Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name String - The user-friendly name for the key store. The name does not need to be unique.
- Map<String,String>
- 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 store.
- key
Store StringId - lifecycle
Details String - Additional information about the current lifecycle state.
- state String
- The current state of the key store.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- time
Created String - The date and time that the key store was created.
- type
Details List<GetKey Store Type Detail> - Key store type details.
- associated
Databases GetKey Store Associated Database[] - List of databases associated with the key store.
- associated
Long numberTerm Backup Count - Indicates the number of long term backups of Autonomous Databases associated with this backup destination.
- associated
Long GetTerm Backups Key Store Associated Long Term Backup[] - List of long term backups of Autonomous Databases associated with this backup destination.The maximum associated number of long term backup listed here would be 1024.
- compartment
Id string - The OCID of the compartment.
- confirm
Details numberTrigger - {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name string - The user-friendly name for the key store. The name does not need to be unique.
- {[key: string]: string}
- 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 store.
- key
Store stringId - lifecycle
Details string - Additional information about the current lifecycle state.
- state string
- The current state of the key store.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- time
Created string - The date and time that the key store was created.
- type
Details GetKey Store Type Detail[] - Key store type details.
- associated_
databases Sequence[GetKey Store Associated Database] - List of databases associated with the key store.
- associated_
long_ intterm_ backup_ count - Indicates the number of long term backups of Autonomous Databases associated with this backup destination.
- associated_
long_ Sequence[Getterm_ backups Key Store Associated Long Term Backup] - List of long term backups of Autonomous Databases associated with this backup destination.The maximum associated number of long term backup listed here would be 1024.
- compartment_
id str - The OCID of the compartment.
- confirm_
details_ inttrigger - Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display_
name str - The user-friendly name for the key store. The name does not need to be unique.
- Mapping[str, str]
- 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 store.
- key_
store_ strid - lifecycle_
details str - Additional information about the current lifecycle state.
- state str
- The current state of the key store.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- time_
created str - The date and time that the key store was created.
- type_
details Sequence[GetKey Store Type Detail] - Key store type details.
- associated
Databases List<Property Map> - List of databases associated with the key store.
- associated
Long NumberTerm Backup Count - Indicates the number of long term backups of Autonomous Databases associated with this backup destination.
- associated
Long List<Property Map>Term Backups - List of long term backups of Autonomous Databases associated with this backup destination.The maximum associated number of long term backup listed here would be 1024.
- compartment
Id String - The OCID of the compartment.
- confirm
Details NumberTrigger - Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name String - The user-friendly name for the key store. The name does not need to be unique.
- Map<String>
- 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 store.
- key
Store StringId - lifecycle
Details String - Additional information about the current lifecycle state.
- state String
- The current state of the key store.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- time
Created String - The date and time that the key store was created.
- type
Details List<Property Map> - Key store type details.
Supporting Types
GetKeyStoreAssociatedDatabase
- Db
Name string - The name of the database that is associated with the key store.
- Db
Unique stringName - The unique name of the database that is associated with the key store.
- Id string
- The OCID of the key store.
- Db
Name string - The name of the database that is associated with the key store.
- Db
Unique stringName - The unique name of the database that is associated with the key store.
- Id string
- The OCID of the key store.
- db
Name String - The name of the database that is associated with the key store.
- db
Unique StringName - The unique name of the database that is associated with the key store.
- id String
- The OCID of the key store.
- db
Name string - The name of the database that is associated with the key store.
- db
Unique stringName - The unique name of the database that is associated with the key store.
- id string
- The OCID of the key store.
- db_
name str - The name of the database that is associated with the key store.
- db_
unique_ strname - The unique name of the database that is associated with the key store.
- id str
- The OCID of the key store.
- db
Name String - The name of the database that is associated with the key store.
- db
Unique StringName - The unique name of the database that is associated with the key store.
- id String
- The OCID of the key store.
GetKeyStoreAssociatedLongTermBackup
- Display
Name string - The user-friendly name for the key store. The name does not need to be unique.
- Id string
- The OCID of the key store.
- Display
Name string - The user-friendly name for the key store. The name does not need to be unique.
- Id string
- The OCID of the key store.
- display
Name String - The user-friendly name for the key store. The name does not need to be unique.
- id String
- The OCID of the key store.
- display
Name string - The user-friendly name for the key store. The name does not need to be unique.
- id string
- The OCID of the key store.
- display_
name str - The user-friendly name for the key store. The name does not need to be unique.
- id str
- The OCID of the key store.
- display
Name String - The user-friendly name for the key store. The name does not need to be unique.
- id String
- The OCID of the key store.
GetKeyStoreTypeDetail
- Admin
Username string - The administrator username to connect to Oracle Key Vault
- Connection
Ips List<string> - The list of Oracle Key Vault connection IP addresses.
- Secret
Id string - The OCID of the Oracle Cloud Infrastructure secret.
- Type string
- The type of key store.
- Vault
Id string - The OCID of the Oracle Cloud Infrastructure vault. This parameter and
secretIdare required for Customer Managed Keys.
- Admin
Username string - The administrator username to connect to Oracle Key Vault
- Connection
Ips []string - The list of Oracle Key Vault connection IP addresses.
- Secret
Id string - The OCID of the Oracle Cloud Infrastructure secret.
- Type string
- The type of key store.
- Vault
Id string - The OCID of the Oracle Cloud Infrastructure vault. This parameter and
secretIdare required for Customer Managed Keys.
- admin
Username String - The administrator username to connect to Oracle Key Vault
- connection
Ips List<String> - The list of Oracle Key Vault connection IP addresses.
- secret
Id String - The OCID of the Oracle Cloud Infrastructure secret.
- type String
- The type of key store.
- vault
Id String - The OCID of the Oracle Cloud Infrastructure vault. This parameter and
secretIdare required for Customer Managed Keys.
- admin
Username string - The administrator username to connect to Oracle Key Vault
- connection
Ips string[] - The list of Oracle Key Vault connection IP addresses.
- secret
Id string - The OCID of the Oracle Cloud Infrastructure secret.
- type string
- The type of key store.
- vault
Id string - The OCID of the Oracle Cloud Infrastructure vault. This parameter and
secretIdare required for Customer Managed Keys.
- admin_
username str - The administrator username to connect to Oracle Key Vault
- connection_
ips Sequence[str] - The list of Oracle Key Vault connection IP addresses.
- secret_
id str - The OCID of the Oracle Cloud Infrastructure secret.
- type str
- The type of key store.
- vault_
id str - The OCID of the Oracle Cloud Infrastructure vault. This parameter and
secretIdare required for Customer Managed Keys.
- admin
Username String - The administrator username to connect to Oracle Key Vault
- connection
Ips List<String> - The list of Oracle Key Vault connection IP addresses.
- secret
Id String - The OCID of the Oracle Cloud Infrastructure secret.
- type String
- The type of key store.
- vault
Id String - The OCID of the Oracle Cloud Infrastructure vault. This parameter and
secretIdare required for Customer Managed Keys.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v3.16.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
