Class GetCustomAttribute
Inheritance
System.Object
GetCustomAttribute
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.VSphere
Assembly: Pulumi.VSphere.dll
Syntax
public static class GetCustomAttribute
Methods
View SourceInvokeAsync(GetCustomAttributeArgs, InvokeOptions)
The vsphere..CustomAttribute data source can be used to reference custom
attributes that are not managed by this provider. Its attributes are exactly the
same as the vsphere..CustomAttribute 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: Custom attributes are unsupported on direct ESXi connections and require vCenter.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using VSphere = Pulumi.VSphere;
class MyStack : Stack
{
public MyStack()
{
var attribute = Output.Create(VSphere.GetCustomAttribute.InvokeAsync(new VSphere.GetCustomAttributeArgs
{
Name = "test-attribute",
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetCustomAttributeResult> InvokeAsync(GetCustomAttributeArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetCustomAttributeArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetCustomAttributeResult> |