UNPKG

@pulumi/gcp

Version:

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

165 lines 6.63 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! *** var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getDbNodesOutput = exports.getDbNodes = void 0; const pulumi = __importStar(require("@pulumi/pulumi")); const utilities = __importStar(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