import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Target Databases in Oracle Cloud Infrastructure Data Safe service. * * Returns the list of registered target databases in Data Safe. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testTargetDatabases = oci.datasafe.getTargetDatabases({ * compartmentId: compartmentId, * accessLevel: targetDatabaseAccessLevel, * associatedResourceId: testAssociatedResource.id, * compartmentIdInSubtree: targetDatabaseCompartmentIdInSubtree === "true", * databaseType: targetDatabaseDatabaseType, * displayName: targetDatabaseDisplayName, * infrastructureType: targetDatabaseInfrastructureType, * state: targetDatabaseState, * targetDatabaseId: testTargetDatabase.id, * }); * ``` */ export declare function getTargetDatabases(args: GetTargetDatabasesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getTargetDatabases. */ export interface GetTargetDatabasesArgs { /** * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed. */ accessLevel?: string; /** * A filter to return the target databases that are associated to the resource id passed in as a parameter value. */ associatedResourceId?: string; /** * A filter to return only resources that match the specified compartment OCID. */ compartmentId: string; /** * Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting. */ compartmentIdInSubtree?: boolean; /** * A filter to return only target databases that match the specified database type. */ databaseType?: string; /** * A filter to return only resources that match the specified display name. */ displayName?: string; filters?: inputs.DataSafe.GetTargetDatabasesFilter[]; /** * A filter to return only target databases that match the specified infrastructure type. */ infrastructureType?: string; /** * A filter to return only target databases that match the specified lifecycle state. */ state?: string; /** * A filter to return the target database that matches the specified OCID. */ targetDatabaseId?: string; } /** * A collection of values returned by getTargetDatabases. */ export interface GetTargetDatabasesResult { readonly accessLevel?: string; readonly associatedResourceId?: string; /** * The OCID of the compartment which contains the Data Safe target database. */ readonly compartmentId: string; readonly compartmentIdInSubtree?: boolean; /** * The database type. */ readonly databaseType?: string; /** * The display name of the peer target database in Data Safe. */ readonly displayName?: string; readonly filters?: outputs.DataSafe.GetTargetDatabasesFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The infrastructure type the database is running on. */ readonly infrastructureType?: string; /** * The current state of the target database in Data Safe. */ readonly state?: string; readonly targetDatabaseId?: string; /** * The list of target_databases. */ readonly targetDatabases: outputs.DataSafe.GetTargetDatabasesTargetDatabase[]; } /** * This data source provides the list of Target Databases in Oracle Cloud Infrastructure Data Safe service. * * Returns the list of registered target databases in Data Safe. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testTargetDatabases = oci.datasafe.getTargetDatabases({ * compartmentId: compartmentId, * accessLevel: targetDatabaseAccessLevel, * associatedResourceId: testAssociatedResource.id, * compartmentIdInSubtree: targetDatabaseCompartmentIdInSubtree === "true", * databaseType: targetDatabaseDatabaseType, * displayName: targetDatabaseDisplayName, * infrastructureType: targetDatabaseInfrastructureType, * state: targetDatabaseState, * targetDatabaseId: testTargetDatabase.id, * }); * ``` */ export declare function getTargetDatabasesOutput(args: GetTargetDatabasesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getTargetDatabases. */ export interface GetTargetDatabasesOutputArgs { /** * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed. */ accessLevel?: pulumi.Input; /** * A filter to return the target databases that are associated to the resource id passed in as a parameter value. */ associatedResourceId?: pulumi.Input; /** * A filter to return only resources that match the specified compartment OCID. */ compartmentId: pulumi.Input; /** * Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting. */ compartmentIdInSubtree?: pulumi.Input; /** * A filter to return only target databases that match the specified database type. */ databaseType?: pulumi.Input; /** * A filter to return only resources that match the specified display name. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * A filter to return only target databases that match the specified infrastructure type. */ infrastructureType?: pulumi.Input; /** * A filter to return only target databases that match the specified lifecycle state. */ state?: pulumi.Input; /** * A filter to return the target database that matches the specified OCID. */ targetDatabaseId?: pulumi.Input; } //# sourceMappingURL=getTargetDatabases.d.ts.map