UNPKG

@pulumi/gcp

Version:

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

108 lines 3.98 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getInstanceGuestAttributesOutput = exports.getInstanceGuestAttributes = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Get information about a VM instance resource within GCE. For more information see * [the official documentation](https://cloud.google.com/compute/docs/instances) * and * [API](https://cloud.google.com/compute/docs/reference/latest/instances). * * Get information about VM's guest attrubutes. For more information see [the official documentation](https://cloud.google.com/compute/docs/metadata/manage-guest-attributes) * and * [API](https://cloud.google.com/compute/docs/reference/rest/v1/instances/getGuestAttributes). * * ## Example Usage * * ### Get All Attributes From A Single Namespace * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const appserverGa = gcp.compute.getInstanceGuestAttributes({ * name: "primary-application-server", * zone: "us-central1-a", * queryPath: "variables/", * }); * ``` * * ### Get A Specific Variable * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const appserverGa = gcp.compute.getInstanceGuestAttributes({ * name: "primary-application-server", * zone: "us-central1-a", * variableKey: "variables/key1", * }); * ``` */ function getInstanceGuestAttributes(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:compute/getInstanceGuestAttributes:getInstanceGuestAttributes", { "name": args.name, "project": args.project, "queryPath": args.queryPath, "region": args.region, "variableKey": args.variableKey, "zone": args.zone, }, opts); } exports.getInstanceGuestAttributes = getInstanceGuestAttributes; /** * Get information about a VM instance resource within GCE. For more information see * [the official documentation](https://cloud.google.com/compute/docs/instances) * and * [API](https://cloud.google.com/compute/docs/reference/latest/instances). * * Get information about VM's guest attrubutes. For more information see [the official documentation](https://cloud.google.com/compute/docs/metadata/manage-guest-attributes) * and * [API](https://cloud.google.com/compute/docs/reference/rest/v1/instances/getGuestAttributes). * * ## Example Usage * * ### Get All Attributes From A Single Namespace * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const appserverGa = gcp.compute.getInstanceGuestAttributes({ * name: "primary-application-server", * zone: "us-central1-a", * queryPath: "variables/", * }); * ``` * * ### Get A Specific Variable * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const appserverGa = gcp.compute.getInstanceGuestAttributes({ * name: "primary-application-server", * zone: "us-central1-a", * variableKey: "variables/key1", * }); * ``` */ function getInstanceGuestAttributesOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:compute/getInstanceGuestAttributes:getInstanceGuestAttributes", { "name": args.name, "project": args.project, "queryPath": args.queryPath, "region": args.region, "variableKey": args.variableKey, "zone": args.zone, }, opts); } exports.getInstanceGuestAttributesOutput = getInstanceGuestAttributesOutput; //# sourceMappingURL=getInstanceGuestAttributes.js.map