GetDynamic

The vsphere..getDynamic data source can be used to get the managed object reference ID of any tagged managed object in vCenter by providing a list of tag IDs and an optional regular expression to filter objects by name.

Using GetDynamic

function getDynamic(args: GetDynamicArgs, opts?: InvokeOptions): Promise<GetDynamicResult>
function  get_dynamic(filters=None, name_regex=None, type=None, opts=None)
func GetDynamic(ctx *Context, args *GetDynamicArgs, opts ...InvokeOption) (*GetDynamicResult, error)
public static class GetDynamic {
    public static Task<GetDynamicResult> InvokeAsync(GetDynamicArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Filters List<string>

A list of tag IDs that must be present on an object to be a match.

NameRegex string

A regular expression that will be used to match the object’s name.

Type string

The managed object type the returned object must match. For a full list, click here.

Filters []string

A list of tag IDs that must be present on an object to be a match.

NameRegex string

A regular expression that will be used to match the object’s name.

Type string

The managed object type the returned object must match. For a full list, click here.

filters string[]

A list of tag IDs that must be present on an object to be a match.

nameRegex string

A regular expression that will be used to match the object’s name.

type string

The managed object type the returned object must match. For a full list, click here.

filters List[str]

A list of tag IDs that must be present on an object to be a match.

name_regex str

A regular expression that will be used to match the object’s name.

type str

The managed object type the returned object must match. For a full list, click here.

GetDynamic Result

The following output properties are available:

Filters List<string>
Id string

The provider-assigned unique ID for this managed resource.

NameRegex string
Type string
Filters []string
Id string

The provider-assigned unique ID for this managed resource.

NameRegex string
Type string
filters string[]
id string

The provider-assigned unique ID for this managed resource.

nameRegex string
type string
filters List[str]
id str

The provider-assigned unique ID for this managed resource.

name_regex str
type str

Package Details

Repository
https://github.com/pulumi/pulumi-vsphere
License
Apache-2.0
Notes
This Pulumi package is based on the vsphere Terraform Provider.