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 Db Nodes in Oracle Cloud Infrastructure Database service. * * Lists the database nodes in the specified DB system and compartment. In addition to the other required parameters, either '--db-system-id' or '--vm-cluster-id' also must be provided, depending on the service being accessed. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testDbNodes = oci.database.getDbNodes({ * compartmentId: compartmentId, * dbServerId: testDbServer.id, * dbSystemId: testDbSystem.id, * state: dbNodeState, * vmClusterId: testVmCluster.id, * }); * ``` */ export declare function getDbNodes(args: GetDbNodesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDbNodes. */ export interface GetDbNodesArgs { /** * The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ compartmentId: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server. */ dbServerId?: string; /** * The DB system [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). If provided, filters the results to the set of database versions which are supported for the DB system. */ dbSystemId?: string; filters?: inputs.Database.GetDbNodesFilter[]; /** * A filter to return only resources that match the given lifecycle state exactly. */ state?: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster. */ vmClusterId?: string; } /** * A collection of values returned by getDbNodes. */ export interface GetDbNodesResult { readonly compartmentId: string; /** * The list of db_nodes. */ readonly dbNodes: outputs.Database.GetDbNodesDbNode[]; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node. */ readonly dbServerId?: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. */ readonly dbSystemId?: string; readonly filters?: outputs.Database.GetDbNodesFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The current state of the database node. */ readonly state?: string; readonly vmClusterId?: string; } /** * This data source provides the list of Db Nodes in Oracle Cloud Infrastructure Database service. * * Lists the database nodes in the specified DB system and compartment. In addition to the other required parameters, either '--db-system-id' or '--vm-cluster-id' also must be provided, depending on the service being accessed. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testDbNodes = oci.database.getDbNodes({ * compartmentId: compartmentId, * dbServerId: testDbServer.id, * dbSystemId: testDbSystem.id, * state: dbNodeState, * vmClusterId: testVmCluster.id, * }); * ``` */ export declare function getDbNodesOutput(args: GetDbNodesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDbNodes. */ export interface GetDbNodesOutputArgs { /** * The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ compartmentId: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server. */ dbServerId?: pulumi.Input; /** * The DB system [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). If provided, filters the results to the set of database versions which are supported for the DB system. */ dbSystemId?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * A filter to return only resources that match the given lifecycle state exactly. */ state?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster. */ vmClusterId?: pulumi.Input; } //# sourceMappingURL=getDbNodes.d.ts.map