1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. oci
  5. getDbmulticloudOracleDbGcpKey
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
oci logo
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi

    This data source provides details about a specific Oracle Db Gcp Key resource in Oracle Cloud Infrastructure Dbmulticloud service.

    Retrieves Oracle DB Google Cloud Key details using a specific resource OCID.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testOracleDbGcpKey = oci.oci.getDbmulticloudOracleDbGcpKey({
        oracleDbGcpKeyId: testOracleDbGcpKeyOciDbmulticloudOracleDbGcpKey.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_oracle_db_gcp_key = oci.oci.get_dbmulticloud_oracle_db_gcp_key(oracle_db_gcp_key_id=test_oracle_db_gcp_key_oci_dbmulticloud_oracle_db_gcp_key["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/oci"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := oci.GetDbmulticloudOracleDbGcpKey(ctx, &oci.GetDbmulticloudOracleDbGcpKeyArgs{
    			OracleDbGcpKeyId: testOracleDbGcpKeyOciDbmulticloudOracleDbGcpKey.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 testOracleDbGcpKey = Oci.Oci.GetDbmulticloudOracleDbGcpKey.Invoke(new()
        {
            OracleDbGcpKeyId = testOracleDbGcpKeyOciDbmulticloudOracleDbGcpKey.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.oci.OciFunctions;
    import com.pulumi.oci.oci.inputs.GetDbmulticloudOracleDbGcpKeyArgs;
    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 testOracleDbGcpKey = OciFunctions.getDbmulticloudOracleDbGcpKey(GetDbmulticloudOracleDbGcpKeyArgs.builder()
                .oracleDbGcpKeyId(testOracleDbGcpKeyOciDbmulticloudOracleDbGcpKey.id())
                .build());
    
        }
    }
    
    variables:
      testOracleDbGcpKey:
        fn::invoke:
          function: oci:oci:getDbmulticloudOracleDbGcpKey
          arguments:
            oracleDbGcpKeyId: ${testOracleDbGcpKeyOciDbmulticloudOracleDbGcpKey.id}
    

    Using getDbmulticloudOracleDbGcpKey

    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 getDbmulticloudOracleDbGcpKey(args: GetDbmulticloudOracleDbGcpKeyArgs, opts?: InvokeOptions): Promise<GetDbmulticloudOracleDbGcpKeyResult>
    function getDbmulticloudOracleDbGcpKeyOutput(args: GetDbmulticloudOracleDbGcpKeyOutputArgs, opts?: InvokeOptions): Output<GetDbmulticloudOracleDbGcpKeyResult>
    def get_dbmulticloud_oracle_db_gcp_key(oracle_db_gcp_key_id: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetDbmulticloudOracleDbGcpKeyResult
    def get_dbmulticloud_oracle_db_gcp_key_output(oracle_db_gcp_key_id: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetDbmulticloudOracleDbGcpKeyResult]
    func GetDbmulticloudOracleDbGcpKey(ctx *Context, args *GetDbmulticloudOracleDbGcpKeyArgs, opts ...InvokeOption) (*GetDbmulticloudOracleDbGcpKeyResult, error)
    func GetDbmulticloudOracleDbGcpKeyOutput(ctx *Context, args *GetDbmulticloudOracleDbGcpKeyOutputArgs, opts ...InvokeOption) GetDbmulticloudOracleDbGcpKeyResultOutput

    > Note: This function is named GetDbmulticloudOracleDbGcpKey in the Go SDK.

    public static class GetDbmulticloudOracleDbGcpKey 
    {
        public static Task<GetDbmulticloudOracleDbGcpKeyResult> InvokeAsync(GetDbmulticloudOracleDbGcpKeyArgs args, InvokeOptions? opts = null)
        public static Output<GetDbmulticloudOracleDbGcpKeyResult> Invoke(GetDbmulticloudOracleDbGcpKeyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbmulticloudOracleDbGcpKeyResult> getDbmulticloudOracleDbGcpKey(GetDbmulticloudOracleDbGcpKeyArgs args, InvokeOptions options)
    public static Output<GetDbmulticloudOracleDbGcpKeyResult> getDbmulticloudOracleDbGcpKey(GetDbmulticloudOracleDbGcpKeyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:oci/getDbmulticloudOracleDbGcpKey:getDbmulticloudOracleDbGcpKey
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OracleDbGcpKeyId string
    The OCID of the Oracle DB Google Cloud Key resource.
    OracleDbGcpKeyId string
    The OCID of the Oracle DB Google Cloud Key resource.
    oracleDbGcpKeyId String
    The OCID of the Oracle DB Google Cloud Key resource.
    oracleDbGcpKeyId string
    The OCID of the Oracle DB Google Cloud Key resource.
    oracle_db_gcp_key_id str
    The OCID of the Oracle DB Google Cloud Key resource.
    oracleDbGcpKeyId String
    The OCID of the Oracle DB Google Cloud Key resource.

    getDbmulticloudOracleDbGcpKey Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment that contains Oracle DB Google Key resource.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    Display name of Oracle DB Google Key resource.
    FreeformTags 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"}
    GcpKeyId string
    TThe Google Cloud Key ID and Key URL associated with the Google Key under the specified Key Ring resource.
    GcpKeyProperties Dictionary<string, string>
    Gcp Key properties
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleStateDetails string
    Description of the current lifecycle state in more detail.
    OracleDbGcpKeyId string
    OracleDbGcpKeyRingId string
    The OCID of the Oracle DB Google Cloud Key-Ring resource.
    ResourceType string
    Key resource type.
    State string
    The current lifecycle state of the Oracle DB Google Key resource.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    Time when the Oracle DB Google Key resource was created in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
    TimeUpdated string
    Time when the Oracle DB Google Key resource was last modified, expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
    CompartmentId string
    The OCID of the compartment that contains Oracle DB Google Key resource.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    Display name of Oracle DB Google Key resource.
    FreeformTags 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"}
    GcpKeyId string
    TThe Google Cloud Key ID and Key URL associated with the Google Key under the specified Key Ring resource.
    GcpKeyProperties map[string]string
    Gcp Key properties
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleStateDetails string
    Description of the current lifecycle state in more detail.
    OracleDbGcpKeyId string
    OracleDbGcpKeyRingId string
    The OCID of the Oracle DB Google Cloud Key-Ring resource.
    ResourceType string
    Key resource type.
    State string
    The current lifecycle state of the Oracle DB Google Key resource.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    Time when the Oracle DB Google Key resource was created in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
    TimeUpdated string
    Time when the Oracle DB Google Key resource was last modified, expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
    compartmentId String
    The OCID of the compartment that contains Oracle DB Google Key resource.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    Display name of Oracle DB Google Key resource.
    freeformTags 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"}
    gcpKeyId String
    TThe Google Cloud Key ID and Key URL associated with the Google Key under the specified Key Ring resource.
    gcpKeyProperties Map<String,String>
    Gcp Key properties
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleStateDetails String
    Description of the current lifecycle state in more detail.
    oracleDbGcpKeyId String
    oracleDbGcpKeyRingId String
    The OCID of the Oracle DB Google Cloud Key-Ring resource.
    resourceType String
    Key resource type.
    state String
    The current lifecycle state of the Oracle DB Google Key resource.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    Time when the Oracle DB Google Key resource was created in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
    timeUpdated String
    Time when the Oracle DB Google Key resource was last modified, expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
    compartmentId string
    The OCID of the compartment that contains Oracle DB Google Key resource.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    Display name of Oracle DB Google Key resource.
    freeformTags {[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"}
    gcpKeyId string
    TThe Google Cloud Key ID and Key URL associated with the Google Key under the specified Key Ring resource.
    gcpKeyProperties {[key: string]: string}
    Gcp Key properties
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleStateDetails string
    Description of the current lifecycle state in more detail.
    oracleDbGcpKeyId string
    oracleDbGcpKeyRingId string
    The OCID of the Oracle DB Google Cloud Key-Ring resource.
    resourceType string
    Key resource type.
    state string
    The current lifecycle state of the Oracle DB Google Key resource.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    Time when the Oracle DB Google Key resource was created in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
    timeUpdated string
    Time when the Oracle DB Google Key resource was last modified, expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
    compartment_id str
    The OCID of the compartment that contains Oracle DB Google Key resource.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    Display name of Oracle DB Google Key resource.
    freeform_tags 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"}
    gcp_key_id str
    TThe Google Cloud Key ID and Key URL associated with the Google Key under the specified Key Ring resource.
    gcp_key_properties Mapping[str, str]
    Gcp Key properties
    id str
    The provider-assigned unique ID for this managed resource.
    lifecycle_state_details str
    Description of the current lifecycle state in more detail.
    oracle_db_gcp_key_id str
    oracle_db_gcp_key_ring_id str
    The OCID of the Oracle DB Google Cloud Key-Ring resource.
    resource_type str
    Key resource type.
    state str
    The current lifecycle state of the Oracle DB Google Key resource.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    Time when the Oracle DB Google Key resource was created in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
    time_updated str
    Time when the Oracle DB Google Key resource was last modified, expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
    compartmentId String
    The OCID of the compartment that contains Oracle DB Google Key resource.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    Display name of Oracle DB Google Key resource.
    freeformTags 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"}
    gcpKeyId String
    TThe Google Cloud Key ID and Key URL associated with the Google Key under the specified Key Ring resource.
    gcpKeyProperties Map<String>
    Gcp Key properties
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleStateDetails String
    Description of the current lifecycle state in more detail.
    oracleDbGcpKeyId String
    oracleDbGcpKeyRingId String
    The OCID of the Oracle DB Google Cloud Key-Ring resource.
    resourceType String
    Key resource type.
    state String
    The current lifecycle state of the Oracle DB Google Key resource.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    Time when the Oracle DB Google Key resource was created in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
    timeUpdated String
    Time when the Oracle DB Google Key resource was last modified, expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate