oci.Nosql.getConfiguration
Explore with Pulumi AI
This data source provides details about a specific Configuration resource in Oracle Cloud Infrastructure NoSQL Database service.
Retrieves the current service-level configuration. The service may of the standard MULTI_TENANCY type, or of the HOSTED environment type. In the latter case, information about the current state of the environment’s global encryption key is included in the response.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testConfiguration = oci.Nosql.getConfiguration({
compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_configuration = oci.Nosql.get_configuration(compartment_id=compartment_id)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/nosql"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := nosql.GetConfiguration(ctx, &nosql.GetConfigurationArgs{
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 testConfiguration = Oci.Nosql.GetConfiguration.Invoke(new()
{
CompartmentId = compartmentId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Nosql.NosqlFunctions;
import com.pulumi.oci.Nosql.inputs.GetConfigurationArgs;
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 testConfiguration = NosqlFunctions.getConfiguration(GetConfigurationArgs.builder()
.compartmentId(compartmentId)
.build());
}
}
variables:
testConfiguration:
fn::invoke:
function: oci:Nosql:getConfiguration
arguments:
compartmentId: ${compartmentId}
Using getConfiguration
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 getConfiguration(args: GetConfigurationArgs, opts?: InvokeOptions): Promise<GetConfigurationResult>
function getConfigurationOutput(args: GetConfigurationOutputArgs, opts?: InvokeOptions): Output<GetConfigurationResult>
def get_configuration(compartment_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetConfigurationResult
def get_configuration_output(compartment_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetConfigurationResult]
func LookupConfiguration(ctx *Context, args *LookupConfigurationArgs, opts ...InvokeOption) (*LookupConfigurationResult, error)
func LookupConfigurationOutput(ctx *Context, args *LookupConfigurationOutputArgs, opts ...InvokeOption) LookupConfigurationResultOutput
> Note: This function is named LookupConfiguration
in the Go SDK.
public static class GetConfiguration
{
public static Task<GetConfigurationResult> InvokeAsync(GetConfigurationArgs args, InvokeOptions? opts = null)
public static Output<GetConfigurationResult> Invoke(GetConfigurationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetConfigurationResult> getConfiguration(GetConfigurationArgs args, InvokeOptions options)
public static Output<GetConfigurationResult> getConfiguration(GetConfigurationArgs args, InvokeOptions options)
fn::invoke:
function: oci:Nosql/getConfiguration:getConfiguration
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The ID of a table's compartment.
- Compartment
Id string - The ID of a table's compartment.
- compartment
Id String - The ID of a table's compartment.
- compartment
Id string - The ID of a table's compartment.
- compartment_
id str - The ID of a table's compartment.
- compartment
Id String - The ID of a table's compartment.
getConfiguration Result
The following output properties are available:
- Compartment
Id string - Environment string
- The service environment type.
- Id string
- The OCID of the KMS encryption key assigned to this Hosted Environment. If the Hosted Environment is using an Oracle-managed Key (i.e., not a CMEK), then the id will be a null string.
- Is
Opc boolDry Run - Kms
Keys List<GetConfiguration Kms Key> - Information about the state of the service's encryption key management. The following properties are read-only and ignored when this object is used in UpdateConfiguration: kmsKeyState, timeCreated, timeUpdated.
- Compartment
Id string - Environment string
- The service environment type.
- Id string
- The OCID of the KMS encryption key assigned to this Hosted Environment. If the Hosted Environment is using an Oracle-managed Key (i.e., not a CMEK), then the id will be a null string.
- Is
Opc boolDry Run - Kms
Keys []GetConfiguration Kms Key - Information about the state of the service's encryption key management. The following properties are read-only and ignored when this object is used in UpdateConfiguration: kmsKeyState, timeCreated, timeUpdated.
- compartment
Id String - environment String
- The service environment type.
- id String
- The OCID of the KMS encryption key assigned to this Hosted Environment. If the Hosted Environment is using an Oracle-managed Key (i.e., not a CMEK), then the id will be a null string.
- is
Opc BooleanDry Run - kms
Keys List<GetConfiguration Kms Key> - Information about the state of the service's encryption key management. The following properties are read-only and ignored when this object is used in UpdateConfiguration: kmsKeyState, timeCreated, timeUpdated.
- compartment
Id string - environment string
- The service environment type.
- id string
- The OCID of the KMS encryption key assigned to this Hosted Environment. If the Hosted Environment is using an Oracle-managed Key (i.e., not a CMEK), then the id will be a null string.
- is
Opc booleanDry Run - kms
Keys GetConfiguration Kms Key[] - Information about the state of the service's encryption key management. The following properties are read-only and ignored when this object is used in UpdateConfiguration: kmsKeyState, timeCreated, timeUpdated.
- compartment_
id str - environment str
- The service environment type.
- id str
- The OCID of the KMS encryption key assigned to this Hosted Environment. If the Hosted Environment is using an Oracle-managed Key (i.e., not a CMEK), then the id will be a null string.
- is_
opc_ booldry_ run - kms_
keys Sequence[GetConfiguration Kms Key] - Information about the state of the service's encryption key management. The following properties are read-only and ignored when this object is used in UpdateConfiguration: kmsKeyState, timeCreated, timeUpdated.
- compartment
Id String - environment String
- The service environment type.
- id String
- The OCID of the KMS encryption key assigned to this Hosted Environment. If the Hosted Environment is using an Oracle-managed Key (i.e., not a CMEK), then the id will be a null string.
- is
Opc BooleanDry Run - kms
Keys List<Property Map> - Information about the state of the service's encryption key management. The following properties are read-only and ignored when this object is used in UpdateConfiguration: kmsKeyState, timeCreated, timeUpdated.
Supporting Types
GetConfigurationKmsKey
- Id string
- The OCID of the KMS encryption key assigned to this Hosted Environment. If the Hosted Environment is using an Oracle-managed Key (i.e., not a CMEK), then the id will be a null string.
- Kms
Key stringState - The current state of the encryption key assigned to this Hosted Environment. Oracle-managed keys will always report an ACTIVE state.
- Kms
Vault stringId - The OCID of the vault containing the encryption key assigned to this Hosted Environment. If the Hosted Environment is using an Oracle-managed Key (i.e., not a CMEK), then the kmsVaultId will be a null string.
- Time
Created string - The timestamp when encryption key was first enabled for this Hosted Environment. RFC3339 formatted.
- Time
Updated string - The timestamp of the last update to the encryption key status. RFC3339 formatted.
- Id string
- The OCID of the KMS encryption key assigned to this Hosted Environment. If the Hosted Environment is using an Oracle-managed Key (i.e., not a CMEK), then the id will be a null string.
- Kms
Key stringState - The current state of the encryption key assigned to this Hosted Environment. Oracle-managed keys will always report an ACTIVE state.
- Kms
Vault stringId - The OCID of the vault containing the encryption key assigned to this Hosted Environment. If the Hosted Environment is using an Oracle-managed Key (i.e., not a CMEK), then the kmsVaultId will be a null string.
- Time
Created string - The timestamp when encryption key was first enabled for this Hosted Environment. RFC3339 formatted.
- Time
Updated string - The timestamp of the last update to the encryption key status. RFC3339 formatted.
- id String
- The OCID of the KMS encryption key assigned to this Hosted Environment. If the Hosted Environment is using an Oracle-managed Key (i.e., not a CMEK), then the id will be a null string.
- kms
Key StringState - The current state of the encryption key assigned to this Hosted Environment. Oracle-managed keys will always report an ACTIVE state.
- kms
Vault StringId - The OCID of the vault containing the encryption key assigned to this Hosted Environment. If the Hosted Environment is using an Oracle-managed Key (i.e., not a CMEK), then the kmsVaultId will be a null string.
- time
Created String - The timestamp when encryption key was first enabled for this Hosted Environment. RFC3339 formatted.
- time
Updated String - The timestamp of the last update to the encryption key status. RFC3339 formatted.
- id string
- The OCID of the KMS encryption key assigned to this Hosted Environment. If the Hosted Environment is using an Oracle-managed Key (i.e., not a CMEK), then the id will be a null string.
- kms
Key stringState - The current state of the encryption key assigned to this Hosted Environment. Oracle-managed keys will always report an ACTIVE state.
- kms
Vault stringId - The OCID of the vault containing the encryption key assigned to this Hosted Environment. If the Hosted Environment is using an Oracle-managed Key (i.e., not a CMEK), then the kmsVaultId will be a null string.
- time
Created string - The timestamp when encryption key was first enabled for this Hosted Environment. RFC3339 formatted.
- time
Updated string - The timestamp of the last update to the encryption key status. RFC3339 formatted.
- id str
- The OCID of the KMS encryption key assigned to this Hosted Environment. If the Hosted Environment is using an Oracle-managed Key (i.e., not a CMEK), then the id will be a null string.
- kms_
key_ strstate - The current state of the encryption key assigned to this Hosted Environment. Oracle-managed keys will always report an ACTIVE state.
- kms_
vault_ strid - The OCID of the vault containing the encryption key assigned to this Hosted Environment. If the Hosted Environment is using an Oracle-managed Key (i.e., not a CMEK), then the kmsVaultId will be a null string.
- time_
created str - The timestamp when encryption key was first enabled for this Hosted Environment. RFC3339 formatted.
- time_
updated str - The timestamp of the last update to the encryption key status. RFC3339 formatted.
- id String
- The OCID of the KMS encryption key assigned to this Hosted Environment. If the Hosted Environment is using an Oracle-managed Key (i.e., not a CMEK), then the id will be a null string.
- kms
Key StringState - The current state of the encryption key assigned to this Hosted Environment. Oracle-managed keys will always report an ACTIVE state.
- kms
Vault StringId - The OCID of the vault containing the encryption key assigned to this Hosted Environment. If the Hosted Environment is using an Oracle-managed Key (i.e., not a CMEK), then the kmsVaultId will be a null string.
- time
Created String - The timestamp when encryption key was first enabled for this Hosted Environment. RFC3339 formatted.
- time
Updated String - The timestamp of the last update to the encryption key status. RFC3339 formatted.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.