UNPKG

@pulumi/vsphere

Version:

A Pulumi package for creating vsphere resources

64 lines 2.44 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.getTagCategoryOutput = exports.getTagCategory = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * The `vsphere.TagCategory` data source can be used to reference tag categories * that are not managed by this provider. Its attributes are the same as the * `vsphere.TagCategory` resource, and, like importing, * the data source uses a name and category as search criteria. The `id` and other * attributes are populated with the data found by the search. * * > **NOTE:** Tagging is not supported on direct ESXi hosts connections and * requires vCenter Server. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; * * const category = vsphere.getTagCategory({ * name: "example-category", * }); * ``` */ function getTagCategory(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getTagCategory:getTagCategory", { "name": args.name, }, opts); } exports.getTagCategory = getTagCategory; /** * The `vsphere.TagCategory` data source can be used to reference tag categories * that are not managed by this provider. Its attributes are the same as the * `vsphere.TagCategory` resource, and, like importing, * the data source uses a name and category as search criteria. The `id` and other * attributes are populated with the data found by the search. * * > **NOTE:** Tagging is not supported on direct ESXi hosts connections and * requires vCenter Server. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; * * const category = vsphere.getTagCategory({ * name: "example-category", * }); * ``` */ function getTagCategoryOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("vsphere:index/getTagCategory:getTagCategory", { "name": args.name, }, opts); } exports.getTagCategoryOutput = getTagCategoryOutput; //# sourceMappingURL=getTagCategory.js.map