import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * List all DbNodes of a Cloud VmCluster. * * For more information see the * [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudVmClusters.dbNodes). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const myDbNodes = gcp.oracledatabase.getDbNodes({ * location: "us-east4", * cloudVmCluster: "vmcluster-id", * }); * ``` * * ## Attributes reference * * The following attributes are exported: * * * `dbNodes` - List of dbNodes. Structure is documented below. * * The `dbNodes` block supports: * * * `name` - The name of the database node resource in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}/dbNodes/{db_node} * * * `properties` - Various properties of the database node. Structure is documented below. * * The `properties` block supports: * * * `ocid`- OCID of database node. * * * `ocpuCount` - OCPU count per database node. * * * `memorySizeGb` - The allocated memory in GBs on the database node. * * * `dbNodeStorageSizeGb` - The allocated local node storage in GBs on the database node. * * * `dbServerOcid` - The OCID of the Database server associated with the database node. * * * `hostname` - The host name for the database node. * * * `state` - State of the database node. * Possible values for `state` are:
* `PROVISIONING` - Indicates that the resource is being provisioned.
* `AVAILABLE` - Indicates that the resource is available.
* `UPDATING` - Indicates that the resource is being updated.
* `STOPPING` - Indicates that the resource is being stopped.
* `STOPPED` - Indicates that the resource is stopped.
* `STARTING` - Indicates that the resource is being started.
* `TERMINATING` - Indicates that the resource is being terminated.
* `TERMINATED` - Indicates that the resource is terminated.
* `FAILED` - Indicates that the resource has failed.
* * * `totalCpuCoreCount` - The total number of CPU cores reserved on the database node. */ export declare function getDbNodes(args: GetDbNodesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDbNodes. */ export interface GetDbNodesArgs { /** * The ID of the VM Cluster. */ cloudVmCluster: string; /** * The location of the resource. */ location: string; /** * The project in which the resource belongs. If it * is not provided, the provider project is used. */ project?: string; } /** * A collection of values returned by getDbNodes. */ export interface GetDbNodesResult { readonly cloudVmCluster: string; readonly dbNodes: outputs.oracledatabase.GetDbNodesDbNode[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly location: string; readonly project?: string; } /** * List all DbNodes of a Cloud VmCluster. * * For more information see the * [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudVmClusters.dbNodes). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const myDbNodes = gcp.oracledatabase.getDbNodes({ * location: "us-east4", * cloudVmCluster: "vmcluster-id", * }); * ``` * * ## Attributes reference * * The following attributes are exported: * * * `dbNodes` - List of dbNodes. Structure is documented below. * * The `dbNodes` block supports: * * * `name` - The name of the database node resource in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}/dbNodes/{db_node} * * * `properties` - Various properties of the database node. Structure is documented below. * * The `properties` block supports: * * * `ocid`- OCID of database node. * * * `ocpuCount` - OCPU count per database node. * * * `memorySizeGb` - The allocated memory in GBs on the database node. * * * `dbNodeStorageSizeGb` - The allocated local node storage in GBs on the database node. * * * `dbServerOcid` - The OCID of the Database server associated with the database node. * * * `hostname` - The host name for the database node. * * * `state` - State of the database node. * Possible values for `state` are:
* `PROVISIONING` - Indicates that the resource is being provisioned.
* `AVAILABLE` - Indicates that the resource is available.
* `UPDATING` - Indicates that the resource is being updated.
* `STOPPING` - Indicates that the resource is being stopped.
* `STOPPED` - Indicates that the resource is stopped.
* `STARTING` - Indicates that the resource is being started.
* `TERMINATING` - Indicates that the resource is being terminated.
* `TERMINATED` - Indicates that the resource is terminated.
* `FAILED` - Indicates that the resource has failed.
* * * `totalCpuCoreCount` - The total number of CPU cores reserved on the database node. */ export declare function getDbNodesOutput(args: GetDbNodesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDbNodes. */ export interface GetDbNodesOutputArgs { /** * The ID of the VM Cluster. */ cloudVmCluster: pulumi.Input; /** * The location of the resource. */ location: pulumi.Input; /** * The project in which the resource belongs. If it * is not provided, the provider project is used. */ project?: pulumi.Input; }