@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
165 lines • 6.26 kB
JavaScript
;
// *** 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.getDbServersOutput = exports.getDbServers = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
* List all DbServers of a Cloud Exdata Infrastructure.
*
* For more information see the
* [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudExadataInfrastructures.dbServers).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const myDbServers = gcp.oracledatabase.getDbServers({
* location: "us-east4",
* cloudExadataInfrastructure: "exadata-id",
* });
* ```
*
* ## Attributes reference
*
* The following attributes are exported:
*
* * `dbServers` - List of dbServers. Structure is documented below.
*
* <a name="nestedDbservers"></a> The `dbServers` block supports:
*
* * `displayName` - User friendly name for the resource.
*
* * `properties` - Various properties of the databse server. Structure is documented below.
*
* <a name="nestedProperties"></a> The `properties` block supports:
*
* * `ocid` - The OCID of database server.
*
* * `ocpuCount` - The OCPU count per database.
*
* * `maxOcpuCount` - The total number of CPU cores available.
*
* * `memorySizeGb` - The allocated memory in gigabytes on the database server.
*
* * `maxMemorySizeGb` - The total memory available in gigabytes.
*
* * `dbNodeStorageSizeGb` - The local storage per VM.
*
* * `maxDbNodeStorageSizeGb` - The total local node storage available in GBs.
*
* * `vmCount` - The VM count per database.
*
* * `state` - The current state of the database server.
* <a name="nestedStates"></a>Allowed values for `state` are:<br>
* `CREATING` - Indicates that the resource is being created.<br>
* `AVAILABLE` - Indicates that the resource is available.<br>
* `UNAVAILABLE` - Indicates that the resource is unavailable.<br>
* `DELETING` - Indicates that the resource is being deleted.<br>
* `DELETED` - Indicates that the resource has been deleted.<br>
*
* * `dbNodeIds` - The OCID of database nodes associated with the database server.
*/
function getDbServers(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:oracledatabase/getDbServers:getDbServers", {
"cloudExadataInfrastructure": args.cloudExadataInfrastructure,
"location": args.location,
"project": args.project,
}, opts);
}
exports.getDbServers = getDbServers;
/**
* List all DbServers of a Cloud Exdata Infrastructure.
*
* For more information see the
* [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudExadataInfrastructures.dbServers).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const myDbServers = gcp.oracledatabase.getDbServers({
* location: "us-east4",
* cloudExadataInfrastructure: "exadata-id",
* });
* ```
*
* ## Attributes reference
*
* The following attributes are exported:
*
* * `dbServers` - List of dbServers. Structure is documented below.
*
* <a name="nestedDbservers"></a> The `dbServers` block supports:
*
* * `displayName` - User friendly name for the resource.
*
* * `properties` - Various properties of the databse server. Structure is documented below.
*
* <a name="nestedProperties"></a> The `properties` block supports:
*
* * `ocid` - The OCID of database server.
*
* * `ocpuCount` - The OCPU count per database.
*
* * `maxOcpuCount` - The total number of CPU cores available.
*
* * `memorySizeGb` - The allocated memory in gigabytes on the database server.
*
* * `maxMemorySizeGb` - The total memory available in gigabytes.
*
* * `dbNodeStorageSizeGb` - The local storage per VM.
*
* * `maxDbNodeStorageSizeGb` - The total local node storage available in GBs.
*
* * `vmCount` - The VM count per database.
*
* * `state` - The current state of the database server.
* <a name="nestedStates"></a>Allowed values for `state` are:<br>
* `CREATING` - Indicates that the resource is being created.<br>
* `AVAILABLE` - Indicates that the resource is available.<br>
* `UNAVAILABLE` - Indicates that the resource is unavailable.<br>
* `DELETING` - Indicates that the resource is being deleted.<br>
* `DELETED` - Indicates that the resource has been deleted.<br>
*
* * `dbNodeIds` - The OCID of database nodes associated with the database server.
*/
function getDbServersOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:oracledatabase/getDbServers:getDbServers", {
"cloudExadataInfrastructure": args.cloudExadataInfrastructure,
"location": args.location,
"project": args.project,
}, opts);
}
exports.getDbServersOutput = getDbServersOutput;
//# sourceMappingURL=getDbServers.js.map