UNPKG

@pulumi/openstack

Version:

A Pulumi package for creating and managing OpenStack cloud resources.

56 lines 1.86 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.getInstanceV2Output = exports.getInstanceV2 = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to get the details of a running server * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const instance = openstack.compute.getInstanceV2({ * id: "2ba26dc6-a12d-4889-8f25-794ea5bf4453", * }); * ``` */ function getInstanceV2(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("openstack:compute/getInstanceV2:getInstanceV2", { "id": args.id, "networks": args.networks, "region": args.region, "userData": args.userData, }, opts); } exports.getInstanceV2 = getInstanceV2; /** * Use this data source to get the details of a running server * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const instance = openstack.compute.getInstanceV2({ * id: "2ba26dc6-a12d-4889-8f25-794ea5bf4453", * }); * ``` */ function getInstanceV2Output(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("openstack:compute/getInstanceV2:getInstanceV2", { "id": args.id, "networks": args.networks, "region": args.region, "userData": args.userData, }, opts); } exports.getInstanceV2Output = getInstanceV2Output; //# sourceMappingURL=getInstanceV2.js.map