Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Database.getKeyStores
Explore with Pulumi AI
This data source provides the list of Key Stores in Oracle Cloud Infrastructure Database service.
Gets a list of key stores in the specified compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testKeyStores = oci.Database.getKeyStores({
compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_key_stores = oci.Database.get_key_stores(compartment_id=compartment_id)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Database"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Database.GetKeyStores(ctx, &database.GetKeyStoresArgs{
CompartmentId: compartmentId,
}, 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 testKeyStores = Oci.Database.GetKeyStores.Invoke(new()
{
CompartmentId = compartmentId,
});
});
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.GetKeyStoresArgs;
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 testKeyStores = DatabaseFunctions.getKeyStores(GetKeyStoresArgs.builder()
.compartmentId(compartmentId)
.build());
}
}
variables:
testKeyStores:
fn::invoke:
Function: oci:Database:getKeyStores
Arguments:
compartmentId: ${compartmentId}
Using getKeyStores
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 getKeyStores(args: GetKeyStoresArgs, opts?: InvokeOptions): Promise<GetKeyStoresResult>
function getKeyStoresOutput(args: GetKeyStoresOutputArgs, opts?: InvokeOptions): Output<GetKeyStoresResult>
def get_key_stores(compartment_id: Optional[str] = None,
filters: Optional[Sequence[_database.GetKeyStoresFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetKeyStoresResult
def get_key_stores_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetKeyStoresFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKeyStoresResult]
func GetKeyStores(ctx *Context, args *GetKeyStoresArgs, opts ...InvokeOption) (*GetKeyStoresResult, error)
func GetKeyStoresOutput(ctx *Context, args *GetKeyStoresOutputArgs, opts ...InvokeOption) GetKeyStoresResultOutput
> Note: This function is named GetKeyStores
in the Go SDK.
public static class GetKeyStores
{
public static Task<GetKeyStoresResult> InvokeAsync(GetKeyStoresArgs args, InvokeOptions? opts = null)
public static Output<GetKeyStoresResult> Invoke(GetKeyStoresInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetKeyStoresResult> getKeyStores(GetKeyStoresArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Database/getKeyStores:getKeyStores
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The compartment OCID.
- Filters
List<Get
Key Stores Filter>
- Compartment
Id string - The compartment OCID.
- Filters
[]Get
Key Stores Filter
- compartment
Id String - The compartment OCID.
- filters
List<Get
Key Stores Filter>
- compartment
Id string - The compartment OCID.
- filters
Get
Key Stores Filter[]
- compartment_
id str - The compartment OCID.
- filters
Sequence[database.
Get Key Stores Filter]
- compartment
Id String - The compartment OCID.
- filters List<Property Map>
getKeyStores Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Stores List<GetKey Stores Key Store> - The list of key_stores.
- Filters
List<Get
Key Stores Filter>
- Compartment
Id string - The OCID of the compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Stores []GetKey Stores Key Store - The list of key_stores.
- Filters
[]Get
Key Stores Filter
- compartment
Id String - The OCID of the compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- key
Stores List<GetKey Stores Key Store> - The list of key_stores.
- filters
List<Get
Key Stores Filter>
- compartment
Id string - The OCID of the compartment.
- id string
- The provider-assigned unique ID for this managed resource.
- key
Stores GetKey Stores Key Store[] - The list of key_stores.
- filters
Get
Key Stores Filter[]
- compartment_
id str - The OCID of the compartment.
- id str
- The provider-assigned unique ID for this managed resource.
- key_
stores Sequence[database.Get Key Stores Key Store] - The list of key_stores.
- filters
Sequence[database.
Get Key Stores Filter]
- compartment
Id String - The OCID of the compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- key
Stores List<Property Map> - The list of key_stores.
- filters List<Property Map>
Supporting Types
GetKeyStoresFilter
GetKeyStoresKeyStore
- Associated
Databases List<GetKey Stores Key Store Associated Database> - List of databases associated with the key store.
- Compartment
Id string - The compartment OCID.
- 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.
- Lifecycle
Details string - Additional information about the current lifecycle state.
- State string
- The current state of the key store.
- Time
Created string - The date and time that the key store was created.
- Type
Details List<GetKey Stores Key Store Type Detail> - Key store type details.
- Associated
Databases []GetKey Stores Key Store Associated Database - List of databases associated with the key store.
- Compartment
Id string - The compartment OCID.
- 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.
- Lifecycle
Details string - Additional information about the current lifecycle state.
- State string
- The current state of the key store.
- Time
Created string - The date and time that the key store was created.
- Type
Details []GetKey Stores Key Store Type Detail - Key store type details.
- associated
Databases List<GetKey Stores Key Store Associated> - List of databases associated with the key store.
- compartment
Id String - The compartment OCID.
- 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.
- lifecycle
Details String - Additional information about the current lifecycle state.
- state String
- The current state of the key store.
- time
Created String - The date and time that the key store was created.
- type
Details List<GetKey Stores Key Store Type Detail> - Key store type details.
- associated
Databases GetKey Stores Key Store Associated Database[] - List of databases associated with the key store.
- compartment
Id string - The compartment OCID.
- 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.
- lifecycle
Details string - Additional information about the current lifecycle state.
- state string
- The current state of the key store.
- time
Created string - The date and time that the key store was created.
- type
Details GetKey Stores Key Store Type Detail[] - Key store type details.
- associated_
databases Sequence[database.Get Key Stores Key Store Associated Database] - List of databases associated with the key store.
- compartment_
id str - The compartment OCID.
- 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.
- lifecycle_
details str - Additional information about the current lifecycle state.
- state str
- The current state of the key store.
- time_
created str - The date and time that the key store was created.
- type_
details Sequence[database.Get Key Stores Key Store Type Detail] - Key store type details.
- associated
Databases List<Property Map> - List of databases associated with the key store.
- compartment
Id String - The compartment OCID.
- 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.
- lifecycle
Details String - Additional information about the current lifecycle state.
- state String
- The current state of the key store.
- time
Created String - The date and time that the key store was created.
- type
Details List<Property Map> - Key store type details.
GetKeyStoresKeyStoreAssociatedDatabase
GetKeyStoresKeyStoreTypeDetail
- 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
secretId
are 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
secretId
are 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
secretId
are 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
secretId
are 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
secretId
are 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
secretId
are required for Customer Managed Keys.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.