1. Packages
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. DatabaseTools
  6. getRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec
Viewing docs for Oracle Cloud Infrastructure v4.11.0
published on Friday, May 15, 2026 by Pulumi
oci logo
Viewing docs for Oracle Cloud Infrastructure v4.11.0
published on Friday, May 15, 2026 by Pulumi

    This data source provides details about a specific Database Tools Database Api Gateway Config Pool Api Spec resource in Oracle Cloud Infrastructure Database Tools Runtime service.

    Get a Database Tools database API gateway config API spec resource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec = oci.databasetools.getRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec({
        apiSpecKey: databaseToolsDatabaseApiGatewayConfigPoolApiSpecApiSpecKey,
        databaseToolsDatabaseApiGatewayConfigId: testConfig.id,
        poolKey: databaseToolsDatabaseApiGatewayConfigPoolApiSpecPoolKey,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_database_tools_database_api_gateway_config_pool_api_spec = oci.databasetools.get_runtime_database_tools_database_api_gateway_config_pool_api_spec(api_spec_key=database_tools_database_api_gateway_config_pool_api_spec_api_spec_key,
        database_tools_database_api_gateway_config_id=test_config["id"],
        pool_key=database_tools_database_api_gateway_config_pool_api_spec_pool_key)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/databasetools"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databasetools.GetRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec(ctx, &databasetools.GetRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecArgs{
    			ApiSpecKey:                              databaseToolsDatabaseApiGatewayConfigPoolApiSpecApiSpecKey,
    			DatabaseToolsDatabaseApiGatewayConfigId: testConfig.Id,
    			PoolKey:                                 databaseToolsDatabaseApiGatewayConfigPoolApiSpecPoolKey,
    		}, 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 testDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec = Oci.DatabaseTools.GetRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec.Invoke(new()
        {
            ApiSpecKey = databaseToolsDatabaseApiGatewayConfigPoolApiSpecApiSpecKey,
            DatabaseToolsDatabaseApiGatewayConfigId = testConfig.Id,
            PoolKey = databaseToolsDatabaseApiGatewayConfigPoolApiSpecPoolKey,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DatabaseTools.DatabaseToolsFunctions;
    import com.pulumi.oci.DatabaseTools.inputs.GetRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 testDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec = DatabaseToolsFunctions.getRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec(GetRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecArgs.builder()
                .apiSpecKey(databaseToolsDatabaseApiGatewayConfigPoolApiSpecApiSpecKey)
                .databaseToolsDatabaseApiGatewayConfigId(testConfig.id())
                .poolKey(databaseToolsDatabaseApiGatewayConfigPoolApiSpecPoolKey)
                .build());
    
        }
    }
    
    variables:
      testDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec:
        fn::invoke:
          function: oci:DatabaseTools:getRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec
          arguments:
            apiSpecKey: ${databaseToolsDatabaseApiGatewayConfigPoolApiSpecApiSpecKey}
            databaseToolsDatabaseApiGatewayConfigId: ${testConfig.id}
            poolKey: ${databaseToolsDatabaseApiGatewayConfigPoolApiSpecPoolKey}
    
    Example coming soon!
    

    Using getRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec

    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 getRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec(args: GetRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecArgs, opts?: InvokeOptions): Promise<GetRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResult>
    function getRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecOutput(args: GetRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecOutputArgs, opts?: InvokeOptions): Output<GetRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResult>
    def get_runtime_database_tools_database_api_gateway_config_pool_api_spec(api_spec_key: Optional[str] = None,
                                                                             database_tools_database_api_gateway_config_id: Optional[str] = None,
                                                                             pool_key: Optional[str] = None,
                                                                             opts: Optional[InvokeOptions] = None) -> GetRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResult
    def get_runtime_database_tools_database_api_gateway_config_pool_api_spec_output(api_spec_key: pulumi.Input[Optional[str]] = None,
                                                                             database_tools_database_api_gateway_config_id: pulumi.Input[Optional[str]] = None,
                                                                             pool_key: pulumi.Input[Optional[str]] = None,
                                                                             opts: Optional[InvokeOptions] = None) -> Output[GetRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResult]
    func LookupRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec(ctx *Context, args *LookupRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecArgs, opts ...InvokeOption) (*LookupRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResult, error)
    func LookupRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecOutput(ctx *Context, args *LookupRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecOutputArgs, opts ...InvokeOption) LookupRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResultOutput

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

    public static class GetRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec 
    {
        public static Task<GetRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResult> InvokeAsync(GetRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecArgs args, InvokeOptions? opts = null)
        public static Output<GetRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResult> Invoke(GetRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResult> getRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec(GetRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecArgs args, InvokeOptions options)
    public static Output<GetRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResult> getRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec(GetRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DatabaseTools/getRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec:getRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec
      arguments:
        # arguments dictionary
    data "oci_databasetools_getruntimedatabasetoolsdatabaseapigatewayconfigpoolapispec" "name" {
        # arguments
    }

    The following arguments are supported:

    ApiSpecKey string
    The key of the API spec config.
    DatabaseToolsDatabaseApiGatewayConfigId string
    The OCID of a Database Tools database API gateway config.
    PoolKey string
    The key of the pool config.
    ApiSpecKey string
    The key of the API spec config.
    DatabaseToolsDatabaseApiGatewayConfigId string
    The OCID of a Database Tools database API gateway config.
    PoolKey string
    The key of the pool config.
    api_spec_key string
    The key of the API spec config.
    database_tools_database_api_gateway_config_id string
    The OCID of a Database Tools database API gateway config.
    pool_key string
    The key of the pool config.
    apiSpecKey String
    The key of the API spec config.
    databaseToolsDatabaseApiGatewayConfigId String
    The OCID of a Database Tools database API gateway config.
    poolKey String
    The key of the pool config.
    apiSpecKey string
    The key of the API spec config.
    databaseToolsDatabaseApiGatewayConfigId string
    The OCID of a Database Tools database API gateway config.
    poolKey string
    The key of the pool config.
    api_spec_key str
    The key of the API spec config.
    database_tools_database_api_gateway_config_id str
    The OCID of a Database Tools database API gateway config.
    pool_key str
    The key of the pool config.
    apiSpecKey String
    The key of the API spec config.
    databaseToolsDatabaseApiGatewayConfigId String
    The OCID of a Database Tools database API gateway config.
    poolKey String
    The key of the pool config.

    getRuntimeDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec Result

    The following output properties are available:

    ApiSpecKey string
    Content string
    The content of a string-escaped Open API spec in JSON format.
    DatabaseToolsDatabaseApiGatewayConfigId string
    DisplayName string
    A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
    Id string
    Key string
    A system generated string that uniquely identifies an API spec sub resource within a given pool.
    PoolKey string
    TimeCreated string
    The time the resource was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time the resource was updated. An RFC3339 formatted datetime string.
    Type string
    The type of the Database Tools database API gateway config API spec sub resource.
    ApiSpecKey string
    Content string
    The content of a string-escaped Open API spec in JSON format.
    DatabaseToolsDatabaseApiGatewayConfigId string
    DisplayName string
    A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
    Id string
    Key string
    A system generated string that uniquely identifies an API spec sub resource within a given pool.
    PoolKey string
    TimeCreated string
    The time the resource was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time the resource was updated. An RFC3339 formatted datetime string.
    Type string
    The type of the Database Tools database API gateway config API spec sub resource.
    api_spec_key string
    content string
    The content of a string-escaped Open API spec in JSON format.
    database_tools_database_api_gateway_config_id string
    display_name string
    A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
    id string
    key string
    A system generated string that uniquely identifies an API spec sub resource within a given pool.
    pool_key string
    time_created string
    The time the resource was created. An RFC3339 formatted datetime string.
    time_updated string
    The time the resource was updated. An RFC3339 formatted datetime string.
    type string
    The type of the Database Tools database API gateway config API spec sub resource.
    apiSpecKey String
    content String
    The content of a string-escaped Open API spec in JSON format.
    databaseToolsDatabaseApiGatewayConfigId String
    displayName String
    A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
    id String
    key String
    A system generated string that uniquely identifies an API spec sub resource within a given pool.
    poolKey String
    timeCreated String
    The time the resource was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time the resource was updated. An RFC3339 formatted datetime string.
    type String
    The type of the Database Tools database API gateway config API spec sub resource.
    apiSpecKey string
    content string
    The content of a string-escaped Open API spec in JSON format.
    databaseToolsDatabaseApiGatewayConfigId string
    displayName string
    A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
    id string
    key string
    A system generated string that uniquely identifies an API spec sub resource within a given pool.
    poolKey string
    timeCreated string
    The time the resource was created. An RFC3339 formatted datetime string.
    timeUpdated string
    The time the resource was updated. An RFC3339 formatted datetime string.
    type string
    The type of the Database Tools database API gateway config API spec sub resource.
    api_spec_key str
    content str
    The content of a string-escaped Open API spec in JSON format.
    database_tools_database_api_gateway_config_id str
    display_name str
    A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
    id str
    key str
    A system generated string that uniquely identifies an API spec sub resource within a given pool.
    pool_key str
    time_created str
    The time the resource was created. An RFC3339 formatted datetime string.
    time_updated str
    The time the resource was updated. An RFC3339 formatted datetime string.
    type str
    The type of the Database Tools database API gateway config API spec sub resource.
    apiSpecKey String
    content String
    The content of a string-escaped Open API spec in JSON format.
    databaseToolsDatabaseApiGatewayConfigId String
    displayName String
    A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
    id String
    key String
    A system generated string that uniquely identifies an API spec sub resource within a given pool.
    poolKey String
    timeCreated String
    The time the resource was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time the resource was updated. An RFC3339 formatted datetime string.
    type String
    The type of the Database Tools database API gateway config API spec sub resource.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.11.0
    published on Friday, May 15, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.