UNPKG

@pulumi/gcp

Version:

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

142 lines 5.21 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.getDbServersOutput = exports.getDbServers = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = 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