@pulumi/vsphere
Version:
A Pulumi package for creating vsphere resources
77 lines (76 loc) • 2.45 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* 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",
* });
* ```
*/
export declare function getTagCategory(args: GetTagCategoryArgs, opts?: pulumi.InvokeOptions): Promise<GetTagCategoryResult>;
/**
* A collection of arguments for invoking getTagCategory.
*/
export interface GetTagCategoryArgs {
/**
* The name of the tag category.
*/
name: string;
}
/**
* A collection of values returned by getTagCategory.
*/
export interface GetTagCategoryResult {
readonly associableTypes: string[];
readonly cardinality: string;
readonly description: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name: string;
}
/**
* 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",
* });
* ```
*/
export declare function getTagCategoryOutput(args: GetTagCategoryOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTagCategoryResult>;
/**
* A collection of arguments for invoking getTagCategory.
*/
export interface GetTagCategoryOutputArgs {
/**
* The name of the tag category.
*/
name: pulumi.Input<string>;
}