Viewing docs for Oracle Cloud Infrastructure v4.12.0
published on Thursday, May 21, 2026 by Pulumi
published on Thursday, May 21, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.12.0
published on Thursday, May 21, 2026 by Pulumi
published on Thursday, May 21, 2026 by Pulumi
This data source provides details about a specific Database Tools Sql Report resource in Oracle Cloud Infrastructure Database Tools service.
Gets details of the specified Database Tools SQL report.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDatabaseToolsSqlReport = oci.databasetools.getDatabaseToolsSqlReport({
databaseToolsSqlReportId: testDatabaseToolsSqlReportOciDatabaseToolsDatabaseToolsSqlReport.id,
});
import pulumi
import pulumi_oci as oci
test_database_tools_sql_report = oci.databasetools.get_database_tools_sql_report(database_tools_sql_report_id=test_database_tools_sql_report_oci_database_tools_database_tools_sql_report["id"])
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.GetDatabaseToolsSqlReport(ctx, &databasetools.GetDatabaseToolsSqlReportArgs{
DatabaseToolsSqlReportId: testDatabaseToolsSqlReportOciDatabaseToolsDatabaseToolsSqlReport.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 testDatabaseToolsSqlReport = Oci.DatabaseTools.GetDatabaseToolsSqlReport.Invoke(new()
{
DatabaseToolsSqlReportId = testDatabaseToolsSqlReportOciDatabaseToolsDatabaseToolsSqlReport.Id,
});
});
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.GetDatabaseToolsSqlReportArgs;
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 testDatabaseToolsSqlReport = DatabaseToolsFunctions.getDatabaseToolsSqlReport(GetDatabaseToolsSqlReportArgs.builder()
.databaseToolsSqlReportId(testDatabaseToolsSqlReportOciDatabaseToolsDatabaseToolsSqlReport.id())
.build());
}
}
variables:
testDatabaseToolsSqlReport:
fn::invoke:
function: oci:DatabaseTools:getDatabaseToolsSqlReport
arguments:
databaseToolsSqlReportId: ${testDatabaseToolsSqlReportOciDatabaseToolsDatabaseToolsSqlReport.id}
Example coming soon!
Using getDatabaseToolsSqlReport
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 getDatabaseToolsSqlReport(args: GetDatabaseToolsSqlReportArgs, opts?: InvokeOptions): Promise<GetDatabaseToolsSqlReportResult>
function getDatabaseToolsSqlReportOutput(args: GetDatabaseToolsSqlReportOutputArgs, opts?: InvokeOptions): Output<GetDatabaseToolsSqlReportResult>def get_database_tools_sql_report(database_tools_sql_report_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDatabaseToolsSqlReportResult
def get_database_tools_sql_report_output(database_tools_sql_report_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseToolsSqlReportResult]func LookupDatabaseToolsSqlReport(ctx *Context, args *LookupDatabaseToolsSqlReportArgs, opts ...InvokeOption) (*LookupDatabaseToolsSqlReportResult, error)
func LookupDatabaseToolsSqlReportOutput(ctx *Context, args *LookupDatabaseToolsSqlReportOutputArgs, opts ...InvokeOption) LookupDatabaseToolsSqlReportResultOutput> Note: This function is named LookupDatabaseToolsSqlReport in the Go SDK.
public static class GetDatabaseToolsSqlReport
{
public static Task<GetDatabaseToolsSqlReportResult> InvokeAsync(GetDatabaseToolsSqlReportArgs args, InvokeOptions? opts = null)
public static Output<GetDatabaseToolsSqlReportResult> Invoke(GetDatabaseToolsSqlReportInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDatabaseToolsSqlReportResult> getDatabaseToolsSqlReport(GetDatabaseToolsSqlReportArgs args, InvokeOptions options)
public static Output<GetDatabaseToolsSqlReportResult> getDatabaseToolsSqlReport(GetDatabaseToolsSqlReportArgs args, InvokeOptions options)
fn::invoke:
function: oci:DatabaseTools/getDatabaseToolsSqlReport:getDatabaseToolsSqlReport
arguments:
# arguments dictionarydata "oci_databasetools_getdatabasetoolssqlreport" "name" {
# arguments
}The following arguments are supported:
- Database
Tools stringSql Report Id - The OCID of a Database Tools SQL Report.
- Database
Tools stringSql Report Id - The OCID of a Database Tools SQL Report.
- database_
tools_ stringsql_ report_ id - The OCID of a Database Tools SQL Report.
- database
Tools StringSql Report Id - The OCID of a Database Tools SQL Report.
- database
Tools stringSql Report Id - The OCID of a Database Tools SQL Report.
- database_
tools_ strsql_ report_ id - The OCID of a Database Tools SQL Report.
- database
Tools StringSql Report Id - The OCID of a Database Tools SQL Report.
getDatabaseToolsSqlReport Result
The following output properties are available:
- Columns
List<Get
Database Tools Sql Report Column> - Descriptive information on columns referenced in the Database Tools SQL Report source.
- Compartment
Id string - The OCID of the compartment containing the Database Tools SQL report.
- Database
Tools stringSql Report Id - Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Description string
- The description of the variable
- Display
Name string - A user-friendly name. Does not have to be unique and can be updated. Avoid entering confidential information.
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Id string
- The OCID of the Database Tools SQL report.
- Instructions string
- Instructions on how to use the SQL report. Step-by-step guidance for an AI agent on how to execute or fill in parameters for the report.
- Lifecycle
Details string - A message describing the current state in more detail.
- Locks
List<Get
Database Tools Sql Report Lock> - Locks associated with this resource.
- Purpose string
- Purpose of the Database Tools SQL report. Scenario or conditions describing when or why this report should be used. Provides selection criteria to AI agents to improve report selection accuracy.
- Source string
- SQL query executed to generate the report.
- State string
- The current state of the Database Tools SQL report.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The time the Database Tools SQL report was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time the Database Tools SQL report was updated. An RFC3339 formatted datetime string.
- Type string
- The type of the variable
- Variables
List<Get
Database Tools Sql Report Variable> - Variables referenced in the Database Tools SQL Report source.
- Columns
[]Get
Database Tools Sql Report Column - Descriptive information on columns referenced in the Database Tools SQL Report source.
- Compartment
Id string - The OCID of the compartment containing the Database Tools SQL report.
- Database
Tools stringSql Report Id - map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Description string
- The description of the variable
- Display
Name string - A user-friendly name. Does not have to be unique and can be updated. Avoid entering confidential information.
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Id string
- The OCID of the Database Tools SQL report.
- Instructions string
- Instructions on how to use the SQL report. Step-by-step guidance for an AI agent on how to execute or fill in parameters for the report.
- Lifecycle
Details string - A message describing the current state in more detail.
- Locks
[]Get
Database Tools Sql Report Lock - Locks associated with this resource.
- Purpose string
- Purpose of the Database Tools SQL report. Scenario or conditions describing when or why this report should be used. Provides selection criteria to AI agents to improve report selection accuracy.
- Source string
- SQL query executed to generate the report.
- State string
- The current state of the Database Tools SQL report.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The time the Database Tools SQL report was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time the Database Tools SQL report was updated. An RFC3339 formatted datetime string.
- Type string
- The type of the variable
- Variables
[]Get
Database Tools Sql Report Variable - Variables referenced in the Database Tools SQL Report source.
- columns list(object)
- Descriptive information on columns referenced in the Database Tools SQL Report source.
- compartment_
id string - The OCID of the compartment containing the Database Tools SQL report.
- database_
tools_ stringsql_ report_ id - map(string)
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description string
- The description of the variable
- display_
name string - A user-friendly name. Does not have to be unique and can be updated. Avoid entering confidential information.
- map(string)
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id string
- The OCID of the Database Tools SQL report.
- instructions string
- Instructions on how to use the SQL report. Step-by-step guidance for an AI agent on how to execute or fill in parameters for the report.
- lifecycle_
details string - A message describing the current state in more detail.
- locks list(object)
- Locks associated with this resource.
- purpose string
- Purpose of the Database Tools SQL report. Scenario or conditions describing when or why this report should be used. Provides selection criteria to AI agents to improve report selection accuracy.
- source string
- SQL query executed to generate the report.
- state string
- The current state of the Database Tools SQL report.
- map(string)
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created string - The time the Database Tools SQL report was created. An RFC3339 formatted datetime string.
- time_
updated string - The time the Database Tools SQL report was updated. An RFC3339 formatted datetime string.
- type string
- The type of the variable
- variables list(object)
- Variables referenced in the Database Tools SQL Report source.
- columns
List<Get
Sql Report Column> - Descriptive information on columns referenced in the Database Tools SQL Report source.
- compartment
Id String - The OCID of the compartment containing the Database Tools SQL report.
- database
Tools StringSql Report Id - Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description String
- The description of the variable
- display
Name String - A user-friendly name. Does not have to be unique and can be updated. Avoid entering confidential information.
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id String
- The OCID of the Database Tools SQL report.
- instructions String
- Instructions on how to use the SQL report. Step-by-step guidance for an AI agent on how to execute or fill in parameters for the report.
- lifecycle
Details String - A message describing the current state in more detail.
- locks
List<Get
Sql Report Lock> - Locks associated with this resource.
- purpose String
- Purpose of the Database Tools SQL report. Scenario or conditions describing when or why this report should be used. Provides selection criteria to AI agents to improve report selection accuracy.
- source String
- SQL query executed to generate the report.
- state String
- The current state of the Database Tools SQL report.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The time the Database Tools SQL report was created. An RFC3339 formatted datetime string.
- time
Updated String - The time the Database Tools SQL report was updated. An RFC3339 formatted datetime string.
- type String
- The type of the variable
- variables
List<Get
Sql Report Variable> - Variables referenced in the Database Tools SQL Report source.
- columns
Get
Database Tools Sql Report Column[] - Descriptive information on columns referenced in the Database Tools SQL Report source.
- compartment
Id string - The OCID of the compartment containing the Database Tools SQL report.
- database
Tools stringSql Report Id - {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description string
- The description of the variable
- display
Name string - A user-friendly name. Does not have to be unique and can be updated. Avoid entering confidential information.
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id string
- The OCID of the Database Tools SQL report.
- instructions string
- Instructions on how to use the SQL report. Step-by-step guidance for an AI agent on how to execute or fill in parameters for the report.
- lifecycle
Details string - A message describing the current state in more detail.
- locks
Get
Database Tools Sql Report Lock[] - Locks associated with this resource.
- purpose string
- Purpose of the Database Tools SQL report. Scenario or conditions describing when or why this report should be used. Provides selection criteria to AI agents to improve report selection accuracy.
- source string
- SQL query executed to generate the report.
- state string
- The current state of the Database Tools SQL report.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The time the Database Tools SQL report was created. An RFC3339 formatted datetime string.
- time
Updated string - The time the Database Tools SQL report was updated. An RFC3339 formatted datetime string.
- type string
- The type of the variable
- variables
Get
Database Tools Sql Report Variable[] - Variables referenced in the Database Tools SQL Report source.
- columns
Sequence[Get
Database Tools Sql Report Column] - Descriptive information on columns referenced in the Database Tools SQL Report source.
- compartment_
id str - The OCID of the compartment containing the Database Tools SQL report.
- database_
tools_ strsql_ report_ id - Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description str
- The description of the variable
- display_
name str - A user-friendly name. Does not have to be unique and can be updated. Avoid entering confidential information.
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id str
- The OCID of the Database Tools SQL report.
- instructions str
- Instructions on how to use the SQL report. Step-by-step guidance for an AI agent on how to execute or fill in parameters for the report.
- lifecycle_
details str - A message describing the current state in more detail.
- locks
Sequence[Get
Database Tools Sql Report Lock] - Locks associated with this resource.
- purpose str
- Purpose of the Database Tools SQL report. Scenario or conditions describing when or why this report should be used. Provides selection criteria to AI agents to improve report selection accuracy.
- source str
- SQL query executed to generate the report.
- state str
- The current state of the Database Tools SQL report.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - The time the Database Tools SQL report was created. An RFC3339 formatted datetime string.
- time_
updated str - The time the Database Tools SQL report was updated. An RFC3339 formatted datetime string.
- type str
- The type of the variable
- variables
Sequence[Get
Database Tools Sql Report Variable] - Variables referenced in the Database Tools SQL Report source.
- columns List<Property Map>
- Descriptive information on columns referenced in the Database Tools SQL Report source.
- compartment
Id String - The OCID of the compartment containing the Database Tools SQL report.
- database
Tools StringSql Report Id - Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description String
- The description of the variable
- display
Name String - A user-friendly name. Does not have to be unique and can be updated. Avoid entering confidential information.
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id String
- The OCID of the Database Tools SQL report.
- instructions String
- Instructions on how to use the SQL report. Step-by-step guidance for an AI agent on how to execute or fill in parameters for the report.
- lifecycle
Details String - A message describing the current state in more detail.
- locks List<Property Map>
- Locks associated with this resource.
- purpose String
- Purpose of the Database Tools SQL report. Scenario or conditions describing when or why this report should be used. Provides selection criteria to AI agents to improve report selection accuracy.
- source String
- SQL query executed to generate the report.
- state String
- The current state of the Database Tools SQL report.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The time the Database Tools SQL report was created. An RFC3339 formatted datetime string.
- time
Updated String - The time the Database Tools SQL report was updated. An RFC3339 formatted datetime string.
- type String
- The type of the variable
- variables List<Property Map>
- Variables referenced in the Database Tools SQL Report source.
Supporting Types
GetDatabaseToolsSqlReportColumn
- Description string
- The description of the variable
- Name string
- The name of the variable
- Type string
- The type of the variable
- Description string
- The description of the variable
- Name string
- The name of the variable
- Type string
- The type of the variable
- description string
- The description of the variable
- name string
- The name of the variable
- type string
- The type of the variable
- description String
- The description of the variable
- name String
- The name of the variable
- type String
- The type of the variable
- description string
- The description of the variable
- name string
- The name of the variable
- type string
- The type of the variable
- description str
- The description of the variable
- name str
- The name of the variable
- type str
- The type of the variable
- description String
- The description of the variable
- name String
- The name of the variable
- type String
- The type of the variable
GetDatabaseToolsSqlReportLock
- Message string
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- string
- The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- Time
Created string - The time the Database Tools SQL report was created. An RFC3339 formatted datetime string.
- Type string
- The type of the variable
- Message string
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- string
- The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- Time
Created string - The time the Database Tools SQL report was created. An RFC3339 formatted datetime string.
- Type string
- The type of the variable
- message string
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- string
- The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- time_
created string - The time the Database Tools SQL report was created. An RFC3339 formatted datetime string.
- type string
- The type of the variable
- message String
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- String
- The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- time
Created String - The time the Database Tools SQL report was created. An RFC3339 formatted datetime string.
- type String
- The type of the variable
- message string
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- string
- The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- time
Created string - The time the Database Tools SQL report was created. An RFC3339 formatted datetime string.
- type string
- The type of the variable
- message str
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- str
- The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- time_
created str - The time the Database Tools SQL report was created. An RFC3339 formatted datetime string.
- type str
- The type of the variable
- message String
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- String
- The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- time
Created String - The time the Database Tools SQL report was created. An RFC3339 formatted datetime string.
- type String
- The type of the variable
GetDatabaseToolsSqlReportVariable
- Description string
- The description of the variable
- Name string
- The name of the variable
- Type string
- The type of the variable
- Description string
- The description of the variable
- Name string
- The name of the variable
- Type string
- The type of the variable
- description string
- The description of the variable
- name string
- The name of the variable
- type string
- The type of the variable
- description String
- The description of the variable
- name String
- The name of the variable
- type String
- The type of the variable
- description string
- The description of the variable
- name string
- The name of the variable
- type string
- The type of the variable
- description str
- The description of the variable
- name str
- The name of the variable
- type str
- The type of the variable
- description String
- The description of the variable
- name String
- The name of the variable
- type String
- The type of the variable
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 v4.12.0
published on Thursday, May 21, 2026 by Pulumi
published on Thursday, May 21, 2026 by Pulumi