UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

142 lines 5.58 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getDbNodesOutput = exports.getDbNodes = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * 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. * * <a name="nestedDbnodes"></a> 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. * * <a name="nestedProperties"></a> 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. * <a name="nestedStates"></a>Possible values for `state` are:<br> * `PROVISIONING` - Indicates that the resource is being provisioned.<br> * `AVAILABLE` - Indicates that the resource is available.<br> * `UPDATING` - Indicates that the resource is being updated.<br> * `STOPPING` - Indicates that the resource is being stopped.<br> * `STOPPED` - Indicates that the resource is stopped.<br> * `STARTING` - Indicates that the resource is being started.<br> * `TERMINATING` - Indicates that the resource is being terminated.<br> * `TERMINATED` - Indicates that the resource is terminated.<br> * `FAILED` - Indicates that the resource has failed.<br> * * * `totalCpuCoreCount` - The total number of CPU cores reserved on the database node. */ function getDbNodes(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:oracledatabase/getDbNodes:getDbNodes", { "cloudVmCluster": args.cloudVmCluster, "location": args.location, "project": args.project, }, opts); } exports.getDbNodes = getDbNodes; /** * 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. * * <a name="nestedDbnodes"></a> 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. * * <a name="nestedProperties"></a> 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. * <a name="nestedStates"></a>Possible values for `state` are:<br> * `PROVISIONING` - Indicates that the resource is being provisioned.<br> * `AVAILABLE` - Indicates that the resource is available.<br> * `UPDATING` - Indicates that the resource is being updated.<br> * `STOPPING` - Indicates that the resource is being stopped.<br> * `STOPPED` - Indicates that the resource is stopped.<br> * `STARTING` - Indicates that the resource is being started.<br> * `TERMINATING` - Indicates that the resource is being terminated.<br> * `TERMINATED` - Indicates that the resource is terminated.<br> * `FAILED` - Indicates that the resource has failed.<br> * * * `totalCpuCoreCount` - The total number of CPU cores reserved on the database node. */ function getDbNodesOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:oracledatabase/getDbNodes:getDbNodes", { "cloudVmCluster": args.cloudVmCluster, "location": args.location, "project": args.project, }, opts); } exports.getDbNodesOutput = getDbNodesOutput; //# sourceMappingURL=getDbNodes.js.map