Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DataSafe.getTargetDatabasesSchemas
Explore with Pulumi AI
This data source provides the list of Target Databases Schemas in Oracle Cloud Infrastructure Data Safe service.
Returns list of schema.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testTargetDatabasesSchemas = oci.DataSafe.getTargetDatabasesSchemas({
    targetDatabaseId: testTargetDatabase.id,
    isOracleMaintained: targetDatabasesSchemaIsOracleMaintained,
    schemaNames: targetDatabasesSchemaSchemaName,
    schemaNameContains: targetDatabasesSchemaSchemaNameContains,
});
import pulumi
import pulumi_oci as oci
test_target_databases_schemas = oci.DataSafe.get_target_databases_schemas(target_database_id=test_target_database["id"],
    is_oracle_maintained=target_databases_schema_is_oracle_maintained,
    schema_names=target_databases_schema_schema_name,
    schema_name_contains=target_databases_schema_schema_name_contains)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/datasafe"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datasafe.GetTargetDatabasesSchemas(ctx, &datasafe.GetTargetDatabasesSchemasArgs{
			TargetDatabaseId:   testTargetDatabase.Id,
			IsOracleMaintained: pulumi.BoolRef(targetDatabasesSchemaIsOracleMaintained),
			SchemaNames:        targetDatabasesSchemaSchemaName,
			SchemaNameContains: pulumi.StringRef(targetDatabasesSchemaSchemaNameContains),
		}, 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 testTargetDatabasesSchemas = Oci.DataSafe.GetTargetDatabasesSchemas.Invoke(new()
    {
        TargetDatabaseId = testTargetDatabase.Id,
        IsOracleMaintained = targetDatabasesSchemaIsOracleMaintained,
        SchemaNames = targetDatabasesSchemaSchemaName,
        SchemaNameContains = targetDatabasesSchemaSchemaNameContains,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.DataSafeFunctions;
import com.pulumi.oci.DataSafe.inputs.GetTargetDatabasesSchemasArgs;
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 testTargetDatabasesSchemas = DataSafeFunctions.getTargetDatabasesSchemas(GetTargetDatabasesSchemasArgs.builder()
            .targetDatabaseId(testTargetDatabase.id())
            .isOracleMaintained(targetDatabasesSchemaIsOracleMaintained)
            .schemaNames(targetDatabasesSchemaSchemaName)
            .schemaNameContains(targetDatabasesSchemaSchemaNameContains)
            .build());
    }
}
variables:
  testTargetDatabasesSchemas:
    fn::invoke:
      function: oci:DataSafe:getTargetDatabasesSchemas
      arguments:
        targetDatabaseId: ${testTargetDatabase.id}
        isOracleMaintained: ${targetDatabasesSchemaIsOracleMaintained}
        schemaNames: ${targetDatabasesSchemaSchemaName}
        schemaNameContains: ${targetDatabasesSchemaSchemaNameContains}
Using getTargetDatabasesSchemas
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 getTargetDatabasesSchemas(args: GetTargetDatabasesSchemasArgs, opts?: InvokeOptions): Promise<GetTargetDatabasesSchemasResult>
function getTargetDatabasesSchemasOutput(args: GetTargetDatabasesSchemasOutputArgs, opts?: InvokeOptions): Output<GetTargetDatabasesSchemasResult>def get_target_databases_schemas(filters: Optional[Sequence[GetTargetDatabasesSchemasFilter]] = None,
                                 is_oracle_maintained: Optional[bool] = None,
                                 schema_name_contains: Optional[str] = None,
                                 schema_names: Optional[Sequence[str]] = None,
                                 target_database_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetTargetDatabasesSchemasResult
def get_target_databases_schemas_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetTargetDatabasesSchemasFilterArgs]]]] = None,
                                 is_oracle_maintained: Optional[pulumi.Input[bool]] = None,
                                 schema_name_contains: Optional[pulumi.Input[str]] = None,
                                 schema_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                 target_database_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetTargetDatabasesSchemasResult]func GetTargetDatabasesSchemas(ctx *Context, args *GetTargetDatabasesSchemasArgs, opts ...InvokeOption) (*GetTargetDatabasesSchemasResult, error)
func GetTargetDatabasesSchemasOutput(ctx *Context, args *GetTargetDatabasesSchemasOutputArgs, opts ...InvokeOption) GetTargetDatabasesSchemasResultOutput> Note: This function is named GetTargetDatabasesSchemas in the Go SDK.
public static class GetTargetDatabasesSchemas 
{
    public static Task<GetTargetDatabasesSchemasResult> InvokeAsync(GetTargetDatabasesSchemasArgs args, InvokeOptions? opts = null)
    public static Output<GetTargetDatabasesSchemasResult> Invoke(GetTargetDatabasesSchemasInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTargetDatabasesSchemasResult> getTargetDatabasesSchemas(GetTargetDatabasesSchemasArgs args, InvokeOptions options)
public static Output<GetTargetDatabasesSchemasResult> getTargetDatabasesSchemas(GetTargetDatabasesSchemasArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DataSafe/getTargetDatabasesSchemas:getTargetDatabasesSchemas
  arguments:
    # arguments dictionaryThe following arguments are supported:
- TargetDatabase stringId 
- The OCID of the Data Safe target database.
- Filters
List<GetTarget Databases Schemas Filter> 
- IsOracle boolMaintained 
- A filter to return only items related to specific type of schema.
- SchemaName stringContains 
- A filter to return only items if schema name contains a specific string.
- SchemaNames List<string>
- A filter to return only items related to specific schema name.
- TargetDatabase stringId 
- The OCID of the Data Safe target database.
- Filters
[]GetTarget Databases Schemas Filter 
- IsOracle boolMaintained 
- A filter to return only items related to specific type of schema.
- SchemaName stringContains 
- A filter to return only items if schema name contains a specific string.
- SchemaNames []string
- A filter to return only items related to specific schema name.
- targetDatabase StringId 
- The OCID of the Data Safe target database.
- filters
List<GetTarget Databases Schemas Filter> 
- isOracle BooleanMaintained 
- A filter to return only items related to specific type of schema.
- schemaName StringContains 
- A filter to return only items if schema name contains a specific string.
- schemaNames List<String>
- A filter to return only items related to specific schema name.
- targetDatabase stringId 
- The OCID of the Data Safe target database.
- filters
GetTarget Databases Schemas Filter[] 
- isOracle booleanMaintained 
- A filter to return only items related to specific type of schema.
- schemaName stringContains 
- A filter to return only items if schema name contains a specific string.
- schemaNames string[]
- A filter to return only items related to specific schema name.
- target_database_ strid 
- The OCID of the Data Safe target database.
- filters
Sequence[GetTarget Databases Schemas Filter] 
- is_oracle_ boolmaintained 
- A filter to return only items related to specific type of schema.
- schema_name_ strcontains 
- A filter to return only items if schema name contains a specific string.
- schema_names Sequence[str]
- A filter to return only items related to specific schema name.
- targetDatabase StringId 
- The OCID of the Data Safe target database.
- filters List<Property Map>
- isOracle BooleanMaintained 
- A filter to return only items related to specific type of schema.
- schemaName StringContains 
- A filter to return only items if schema name contains a specific string.
- schemaNames List<String>
- A filter to return only items related to specific schema name.
getTargetDatabasesSchemas Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Schemas
List<GetTarget Databases Schemas Schema> 
- The list of schemas.
- TargetDatabase stringId 
- Filters
List<GetTarget Databases Schemas Filter> 
- IsOracle boolMaintained 
- Indicates if the schema is oracle supplied.
- SchemaName stringContains 
- SchemaNames List<string>
- Name of the schema.
- Id string
- The provider-assigned unique ID for this managed resource.
- Schemas
[]GetTarget Databases Schemas Schema 
- The list of schemas.
- TargetDatabase stringId 
- Filters
[]GetTarget Databases Schemas Filter 
- IsOracle boolMaintained 
- Indicates if the schema is oracle supplied.
- SchemaName stringContains 
- SchemaNames []string
- Name of the schema.
- id String
- The provider-assigned unique ID for this managed resource.
- schemas
List<GetTarget Databases Schemas Schema> 
- The list of schemas.
- targetDatabase StringId 
- filters
List<GetTarget Databases Schemas Filter> 
- isOracle BooleanMaintained 
- Indicates if the schema is oracle supplied.
- schemaName StringContains 
- schemaNames List<String>
- Name of the schema.
- id string
- The provider-assigned unique ID for this managed resource.
- schemas
GetTarget Databases Schemas Schema[] 
- The list of schemas.
- targetDatabase stringId 
- filters
GetTarget Databases Schemas Filter[] 
- isOracle booleanMaintained 
- Indicates if the schema is oracle supplied.
- schemaName stringContains 
- schemaNames string[]
- Name of the schema.
- id str
- The provider-assigned unique ID for this managed resource.
- schemas
Sequence[GetTarget Databases Schemas Schema] 
- The list of schemas.
- target_database_ strid 
- filters
Sequence[GetTarget Databases Schemas Filter] 
- is_oracle_ boolmaintained 
- Indicates if the schema is oracle supplied.
- schema_name_ strcontains 
- schema_names Sequence[str]
- Name of the schema.
- id String
- The provider-assigned unique ID for this managed resource.
- schemas List<Property Map>
- The list of schemas.
- targetDatabase StringId 
- filters List<Property Map>
- isOracle BooleanMaintained 
- Indicates if the schema is oracle supplied.
- schemaName StringContains 
- schemaNames List<String>
- Name of the schema.
Supporting Types
GetTargetDatabasesSchemasFilter    
GetTargetDatabasesSchemasSchema    
- IsOracle boolMaintained 
- A filter to return only items related to specific type of schema.
- SchemaName string
- A filter to return only items related to specific schema name.
- IsOracle boolMaintained 
- A filter to return only items related to specific type of schema.
- SchemaName string
- A filter to return only items related to specific schema name.
- isOracle BooleanMaintained 
- A filter to return only items related to specific type of schema.
- schemaName String
- A filter to return only items related to specific schema name.
- isOracle booleanMaintained 
- A filter to return only items related to specific type of schema.
- schemaName string
- A filter to return only items related to specific schema name.
- is_oracle_ boolmaintained 
- A filter to return only items related to specific type of schema.
- schema_name str
- A filter to return only items related to specific schema name.
- isOracle BooleanMaintained 
- A filter to return only items related to specific type of schema.
- schemaName String
- A filter to return only items related to specific schema name.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.