Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.DataSafe.getTargetDatabasesSchemas
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
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/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[_datasafe.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[_datasafe.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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DataSafe/getTargetDatabasesSchemas:getTargetDatabasesSchemas
arguments:
# arguments dictionary
The following arguments are supported:
- Target
Database stringId - The OCID of the Data Safe target database.
- Filters
List<Get
Target Databases Schemas Filter> - Is
Oracle boolMaintained - A filter to return only items related to specific type of schema.
- Schema
Name stringContains - A filter to return only items if schema name contains a specific string.
- Schema
Names List<string> - A filter to return only items related to specific schema name.
- Target
Database stringId - The OCID of the Data Safe target database.
- Filters
[]Get
Target Databases Schemas Filter - Is
Oracle boolMaintained - A filter to return only items related to specific type of schema.
- Schema
Name stringContains - A filter to return only items if schema name contains a specific string.
- Schema
Names []string - A filter to return only items related to specific schema name.
- target
Database StringId - The OCID of the Data Safe target database.
- filters
List<Get
Target Databases Schemas Filter> - is
Oracle BooleanMaintained - A filter to return only items related to specific type of schema.
- schema
Name StringContains - A filter to return only items if schema name contains a specific string.
- schema
Names List<String> - A filter to return only items related to specific schema name.
- target
Database stringId - The OCID of the Data Safe target database.
- filters
Get
Target Databases Schemas Filter[] - is
Oracle booleanMaintained - A filter to return only items related to specific type of schema.
- schema
Name stringContains - A filter to return only items if schema name contains a specific string.
- schema
Names 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[datasafe.
Get Target 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.
- target
Database StringId - The OCID of the Data Safe target database.
- filters List<Property Map>
- is
Oracle BooleanMaintained - A filter to return only items related to specific type of schema.
- schema
Name StringContains - A filter to return only items if schema name contains a specific string.
- schema
Names 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<Get
Target Databases Schemas Schema> - The list of schemas.
- Target
Database stringId - Filters
List<Get
Target Databases Schemas Filter> - Is
Oracle boolMaintained - Indicates if the schema is oracle supplied.
- Schema
Name stringContains - Schema
Names List<string> - Name of the schema.
- Id string
- The provider-assigned unique ID for this managed resource.
- Schemas
[]Get
Target Databases Schemas Schema - The list of schemas.
- Target
Database stringId - Filters
[]Get
Target Databases Schemas Filter - Is
Oracle boolMaintained - Indicates if the schema is oracle supplied.
- Schema
Name stringContains - Schema
Names []string - Name of the schema.
- id String
- The provider-assigned unique ID for this managed resource.
- schemas
List<Get
Target Databases Schemas Schema> - The list of schemas.
- target
Database StringId - filters
List<Get
Target Databases Schemas Filter> - is
Oracle BooleanMaintained - Indicates if the schema is oracle supplied.
- schema
Name StringContains - schema
Names List<String> - Name of the schema.
- id string
- The provider-assigned unique ID for this managed resource.
- schemas
Get
Target Databases Schemas Schema[] - The list of schemas.
- target
Database stringId - filters
Get
Target Databases Schemas Filter[] - is
Oracle booleanMaintained - Indicates if the schema is oracle supplied.
- schema
Name stringContains - schema
Names string[] - Name of the schema.
- id str
- The provider-assigned unique ID for this managed resource.
- schemas
Sequence[datasafe.
Get Target Databases Schemas Schema] - The list of schemas.
- target_
database_ strid - filters
Sequence[datasafe.
Get Target 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.
- target
Database StringId - filters List<Property Map>
- is
Oracle BooleanMaintained - Indicates if the schema is oracle supplied.
- schema
Name StringContains - schema
Names List<String> - Name of the schema.
Supporting Types
GetTargetDatabasesSchemasFilter
GetTargetDatabasesSchemasSchema
- Is
Oracle boolMaintained - A filter to return only items related to specific type of schema.
- Schema
Name 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 string - A filter to return only items related to specific schema name.
- is
Oracle BooleanMaintained - A filter to return only items related to specific type of schema.
- schema
Name String - A filter to return only items related to specific schema name.
- is
Oracle booleanMaintained - A filter to return only items related to specific type of schema.
- schema
Name 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.
- is
Oracle BooleanMaintained - A filter to return only items related to specific type of schema.
- schema
Name 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
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi