GetTagCategory
The vsphere..TagCategory data source can be used to reference tag categories
that are not managed by this provider. Its attributes are exactly the same as the
vsphere..TagCategory resource, and, like importing,
the data source takes a name to search on. The id and other attributes are
then populated with the data found by the search.
NOTE: Tagging support is unsupported on direct ESXi connections and requires vCenter 6.0 or higher.
Example Usage
using Pulumi;
using VSphere = Pulumi.VSphere;
class MyStack : Stack
{
public MyStack()
{
var category = Output.Create(VSphere.GetTagCategory.InvokeAsync(new VSphere.GetTagCategoryArgs
{
Name = "test-category",
}));
}
}
Coming soon!
import pulumi
import pulumi_vsphere as vsphere
category = vsphere.get_tag_category(name="test-category")import * as pulumi from "@pulumi/pulumi";
import * as vsphere from "@pulumi/vsphere";
const category = pulumi.output(vsphere.getTagCategory({
name: "test-category",
}, { async: true }));Using GetTagCategory
function getTagCategory(args: GetTagCategoryArgs, opts?: InvokeOptions): Promise<GetTagCategoryResult>function get_tag_category(name=None, opts=None)func LookupTagCategory(ctx *Context, args *LookupTagCategoryArgs, opts ...InvokeOption) (*LookupTagCategoryResult, error)Note: This function is named
LookupTagCategoryin the Go SDK.
public static class GetTagCategory {
public static Task<GetTagCategoryResult> InvokeAsync(GetTagCategoryArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetTagCategory Result
The following output properties are available:
- Associable
Types List<string> - Cardinality string
- Description string
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Associable
Types []string - Cardinality string
- Description string
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- associable
Types string[] - cardinality string
- description string
- id string
The provider-assigned unique ID for this managed resource.
- name string
- associable_
types List[str] - cardinality str
- description str
- id str
The provider-assigned unique ID for this managed resource.
- name str
Package Details
- Repository
- https://github.com/pulumi/pulumi-vsphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vsphereTerraform Provider.