import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * ## * * *** * ## subcategory: "Database" * * layout: "oci" * page_title: "Oracle Cloud Infrastructure: oci.Database.getAutonomousDatabases" * sidebar_current: "docs-oci-datasource-database-autonomous_databases" * description: |- * Provides the list of Autonomous Databases in Oracle Cloud Infrastructure Database service * --- * * # Data Source: oci.Database.getAutonomousDatabases * This data source provides the list of Autonomous Databases in Oracle Cloud Infrastructure Database service. * * Gets a list of Autonomous AI Databases based on the query parameters specified. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAutonomousDatabases = oci.database.getAutonomousDatabases({ * compartmentId: compartmentId, * autonomousContainerDatabaseId: testAutonomousContainerDatabase.id, * dbVersion: autonomousDatabaseDbVersion, * dbWorkload: autonomousDatabaseDbWorkload, * displayName: autonomousDatabaseDisplayName, * infrastructureType: autonomousDatabaseInfrastructureType, * isDataGuardEnabled: autonomousDatabaseIsDataGuardEnabled === "true", * isFreeTier: autonomousDatabaseIsFreeTier === "true", * isRefreshableClone: autonomousDatabaseIsRefreshableClone === "true", * isResourcePoolLeader: autonomousDatabaseIsResourcePoolLeader === "true", * lifecycleStateNotEqualTo: autonomousDatabaseLifecycleStateNotEqualTo, * resourcePoolLeaderId: testResourcePoolLeader.id, * state: autonomousDatabaseState, * }); * ``` */ export declare function getAutonomousDatabases(args: GetAutonomousDatabasesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getAutonomousDatabases. */ export interface GetAutonomousDatabasesArgs { /** * The Autonomous Container Database [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ autonomousContainerDatabaseId?: string; /** * The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ compartmentId: string; /** * A filter to return only Autonomous AI Database resources that match the specified dbVersion. */ dbVersion?: string; /** * A filter to return only Autonomous AI Database resources that match the specified workload type. */ dbWorkload?: string; /** * A filter to return only resources that match the entire display name given. The match is not case sensitive. */ displayName?: string; filters?: inputs.Database.GetAutonomousDatabasesFilter[]; /** * A filter to return only resources that match the given Infrastructure Type. */ infrastructureType?: string; /** * A filter to return only resources that have Data Guard enabled. */ isDataGuardEnabled?: boolean; /** * Filter on the value of the resource's 'isFreeTier' property. A value of `true` returns only Always Free resources. A value of `false` excludes Always Free resources from the returned results. Omitting this parameter returns both Always Free and paid resources. */ isFreeTier?: boolean; /** * Filter on the value of the resource's 'isRefreshableClone' property. A value of `true` returns only refreshable clones. A value of `false` excludes refreshable clones from the returned results. Omitting this parameter returns both refreshable clones and databases that are not refreshable clones. */ isRefreshableClone?: boolean; /** * Filter if the resource is the resource pool leader. A value of `true` returns only resource pool leader. */ isResourcePoolLeader?: boolean; lifecycleStateNotEqualTo?: string; /** * The database [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resourcepool Leader Autonomous AI Database. */ resourcePoolLeaderId?: string; /** * A filter to return only resources that match the given lifecycle state exactly. */ state?: string; } /** * A collection of values returned by getAutonomousDatabases. */ export interface GetAutonomousDatabasesResult { /** * The Autonomous Container Database [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Used only by Autonomous AI Database on Dedicated Exadata Infrastructure. */ readonly autonomousContainerDatabaseId?: string; /** * The list of autonomous_databases. */ readonly autonomousDatabases: outputs.Database.GetAutonomousDatabasesAutonomousDatabase[]; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ readonly compartmentId: string; /** * A valid Oracle AI Database version for Autonomous AI Database. When you specify 23ai for dbversion, the system will provision a 23ai database, but the UI will display it as 26ai. When you specify 26ai for dbversion, the system will provision and display a 26ai database as expected. For new databases, it is recommended to use either 19c or 26ai. */ readonly dbVersion?: string; /** * The Autonomous AI Database workload type. The following values are valid: * * OLTP - indicates an Autonomous AI Transaction Processing database * * DW - indicates an Autonomous AI Lakehouse database * * AJD - indicates an Autonomous AI JSON Database * * APEX - indicates an Autonomous AI Database with the Oracle APEX AI Application Development workload type. * * LH - indicates an Oracle Autonomous AI Lakehouse database */ readonly dbWorkload?: string; /** * The user-friendly name for the Autonomous AI Database. The name does not have to be unique. */ readonly displayName?: string; readonly filters?: outputs.Database.GetAutonomousDatabasesFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The infrastructure type this resource belongs to. */ readonly infrastructureType?: string; /** * **Deprecated.** Indicates whether the Autonomous AI Database has local (in-region) Data Guard enabled. Not applicable to cross-region Autonomous Data Guard associations, or to Autonomous AI Databases using dedicated Exadata infrastructure or Exadata Cloud@Customer infrastructure. */ readonly isDataGuardEnabled?: boolean; /** * Indicates if this is an Always Free resource. The default value is false. Note that Always Free Autonomous AI Databases have 1 CPU and 20GB of memory. For Always Free databases, memory and CPU cannot be scaled. */ readonly isFreeTier?: boolean; /** * Indicates if the Autonomous AI Database is a refreshable clone. */ readonly isRefreshableClone?: boolean; readonly isResourcePoolLeader?: boolean; readonly lifecycleStateNotEqualTo?: string; /** * The unique identifier for leader Autonomous AI Database OCID [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ readonly resourcePoolLeaderId?: string; /** * The current state of the Autonomous AI Database. */ readonly state?: string; } /** * ## * * *** * ## subcategory: "Database" * * layout: "oci" * page_title: "Oracle Cloud Infrastructure: oci.Database.getAutonomousDatabases" * sidebar_current: "docs-oci-datasource-database-autonomous_databases" * description: |- * Provides the list of Autonomous Databases in Oracle Cloud Infrastructure Database service * --- * * # Data Source: oci.Database.getAutonomousDatabases * This data source provides the list of Autonomous Databases in Oracle Cloud Infrastructure Database service. * * Gets a list of Autonomous AI Databases based on the query parameters specified. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAutonomousDatabases = oci.database.getAutonomousDatabases({ * compartmentId: compartmentId, * autonomousContainerDatabaseId: testAutonomousContainerDatabase.id, * dbVersion: autonomousDatabaseDbVersion, * dbWorkload: autonomousDatabaseDbWorkload, * displayName: autonomousDatabaseDisplayName, * infrastructureType: autonomousDatabaseInfrastructureType, * isDataGuardEnabled: autonomousDatabaseIsDataGuardEnabled === "true", * isFreeTier: autonomousDatabaseIsFreeTier === "true", * isRefreshableClone: autonomousDatabaseIsRefreshableClone === "true", * isResourcePoolLeader: autonomousDatabaseIsResourcePoolLeader === "true", * lifecycleStateNotEqualTo: autonomousDatabaseLifecycleStateNotEqualTo, * resourcePoolLeaderId: testResourcePoolLeader.id, * state: autonomousDatabaseState, * }); * ``` */ export declare function getAutonomousDatabasesOutput(args: GetAutonomousDatabasesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getAutonomousDatabases. */ export interface GetAutonomousDatabasesOutputArgs { /** * The Autonomous Container Database [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ autonomousContainerDatabaseId?: pulumi.Input; /** * The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ compartmentId: pulumi.Input; /** * A filter to return only Autonomous AI Database resources that match the specified dbVersion. */ dbVersion?: pulumi.Input; /** * A filter to return only Autonomous AI Database resources that match the specified workload type. */ dbWorkload?: pulumi.Input; /** * A filter to return only resources that match the entire display name given. The match is not case sensitive. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * A filter to return only resources that match the given Infrastructure Type. */ infrastructureType?: pulumi.Input; /** * A filter to return only resources that have Data Guard enabled. */ isDataGuardEnabled?: pulumi.Input; /** * Filter on the value of the resource's 'isFreeTier' property. A value of `true` returns only Always Free resources. A value of `false` excludes Always Free resources from the returned results. Omitting this parameter returns both Always Free and paid resources. */ isFreeTier?: pulumi.Input; /** * Filter on the value of the resource's 'isRefreshableClone' property. A value of `true` returns only refreshable clones. A value of `false` excludes refreshable clones from the returned results. Omitting this parameter returns both refreshable clones and databases that are not refreshable clones. */ isRefreshableClone?: pulumi.Input; /** * Filter if the resource is the resource pool leader. A value of `true` returns only resource pool leader. */ isResourcePoolLeader?: pulumi.Input; lifecycleStateNotEqualTo?: pulumi.Input; /** * The database [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resourcepool Leader Autonomous AI Database. */ resourcePoolLeaderId?: pulumi.Input; /** * A filter to return only resources that match the given lifecycle state exactly. */ state?: pulumi.Input; } //# sourceMappingURL=getAutonomousDatabases.d.ts.map