virt

package
v0.0.0-...-a632b15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	pulumi.CustomResourceState

	ClusterGroupId pulumi.IntPtrOutput    `pulumi:"clusterGroupId"`
	ClusterTypeId  pulumi.IntOutput       `pulumi:"clusterTypeId"`
	Comments       pulumi.StringPtrOutput `pulumi:"comments"`
	Description    pulumi.StringPtrOutput `pulumi:"description"`
	// Conflicts with `siteId`, `siteGroupId` and `regionId`.
	LocationId pulumi.IntPtrOutput `pulumi:"locationId"`
	Name       pulumi.StringOutput `pulumi:"name"`
	// Conflicts with `locationId`, `siteId` and `siteGroupId`.
	RegionId pulumi.IntPtrOutput `pulumi:"regionId"`
	// Conflicts with `locationId`, `siteId` and `regionId`.
	SiteGroupId pulumi.IntPtrOutput `pulumi:"siteGroupId"`
	// Conflicts with `locationId`, `siteGroupId` and `regionId`.
	SiteId   pulumi.IntPtrOutput      `pulumi:"siteId"`
	Tags     pulumi.StringArrayOutput `pulumi:"tags"`
	TagsAlls pulumi.StringArrayOutput `pulumi:"tagsAlls"`
	TenantId pulumi.IntPtrOutput      `pulumi:"tenantId"`
}

From the [official documentation](https://netboxlabs.com/docs/netbox/models/virtualization/cluster/): > A cluster is a logical grouping of physical resources within which virtual machines run. Physical devices may be associated with clusters as hosts. This allows users to track on which host(s) a particular virtual machine may reside.

## Example Usage

```go package main

import (

"github.com/NatzkaLabsOpenSource/pulumi-netbox/sdk/go/netbox/virt"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Assumes the 'dc-west' cluster group already exists
		dcWest, err := virt.LookupClusterGroup(ctx, &virt.LookupClusterGroupArgs{
			Name: "dc-west",
		}, nil)
		if err != nil {
			return err
		}
		vmwVsphere, err := virt.NewClusterType(ctx, "vmw_vsphere", &virt.ClusterTypeArgs{
			Name: pulumi.String("VMware vSphere 6"),
		})
		if err != nil {
			return err
		}
		_, err = virt.NewCluster(ctx, "vmw_cluster_01", &virt.ClusterArgs{
			ClusterTypeId:  vmwVsphere.ID(),
			Name:           pulumi.String("vmw-cluster-01"),
			ClusterGroupId: pulumi.String(dcWest.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetCluster

func GetCluster(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ClusterState, opts ...pulumi.ResourceOption) (*Cluster, error)

GetCluster gets an existing Cluster resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCluster

func NewCluster(ctx *pulumi.Context,
	name string, args *ClusterArgs, opts ...pulumi.ResourceOption) (*Cluster, error)

NewCluster registers a new resource with the given unique name, arguments, and options.

func (*Cluster) ElementType

func (*Cluster) ElementType() reflect.Type

func (*Cluster) ToClusterOutput

func (i *Cluster) ToClusterOutput() ClusterOutput

func (*Cluster) ToClusterOutputWithContext

func (i *Cluster) ToClusterOutputWithContext(ctx context.Context) ClusterOutput

type ClusterArgs

type ClusterArgs struct {
	ClusterGroupId pulumi.IntPtrInput
	ClusterTypeId  pulumi.IntInput
	Comments       pulumi.StringPtrInput
	Description    pulumi.StringPtrInput
	// Conflicts with `siteId`, `siteGroupId` and `regionId`.
	LocationId pulumi.IntPtrInput
	Name       pulumi.StringPtrInput
	// Conflicts with `locationId`, `siteId` and `siteGroupId`.
	RegionId pulumi.IntPtrInput
	// Conflicts with `locationId`, `siteId` and `regionId`.
	SiteGroupId pulumi.IntPtrInput
	// Conflicts with `locationId`, `siteGroupId` and `regionId`.
	SiteId   pulumi.IntPtrInput
	Tags     pulumi.StringArrayInput
	TenantId pulumi.IntPtrInput
}

The set of arguments for constructing a Cluster resource.

func (ClusterArgs) ElementType

func (ClusterArgs) ElementType() reflect.Type

type ClusterArray

type ClusterArray []ClusterInput

func (ClusterArray) ElementType

func (ClusterArray) ElementType() reflect.Type

func (ClusterArray) ToClusterArrayOutput

func (i ClusterArray) ToClusterArrayOutput() ClusterArrayOutput

func (ClusterArray) ToClusterArrayOutputWithContext

func (i ClusterArray) ToClusterArrayOutputWithContext(ctx context.Context) ClusterArrayOutput

type ClusterArrayInput

type ClusterArrayInput interface {
	pulumi.Input

	ToClusterArrayOutput() ClusterArrayOutput
	ToClusterArrayOutputWithContext(context.Context) ClusterArrayOutput
}

ClusterArrayInput is an input type that accepts ClusterArray and ClusterArrayOutput values. You can construct a concrete instance of `ClusterArrayInput` via:

ClusterArray{ ClusterArgs{...} }

type ClusterArrayOutput

type ClusterArrayOutput struct{ *pulumi.OutputState }

func (ClusterArrayOutput) ElementType

func (ClusterArrayOutput) ElementType() reflect.Type

func (ClusterArrayOutput) Index

func (ClusterArrayOutput) ToClusterArrayOutput

func (o ClusterArrayOutput) ToClusterArrayOutput() ClusterArrayOutput

func (ClusterArrayOutput) ToClusterArrayOutputWithContext

func (o ClusterArrayOutput) ToClusterArrayOutputWithContext(ctx context.Context) ClusterArrayOutput

type ClusterGroup

type ClusterGroup struct {
	pulumi.CustomResourceState

	Description pulumi.StringPtrOutput `pulumi:"description"`
	Name        pulumi.StringOutput    `pulumi:"name"`
	Slug        pulumi.StringOutput    `pulumi:"slug"`
}

From the [official documentation](https://docs.netbox.dev/en/stable/features/virtualization/#cluster-groups):

> Cluster groups may be created for the purpose of organizing clusters. The arrangement of clusters into groups is optional.

## Example Usage

```go package main

import (

"github.com/NatzkaLabsOpenSource/pulumi-netbox/sdk/go/netbox/virt"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := virt.NewClusterGroup(ctx, "dc_west", &virt.ClusterGroupArgs{
			Description: pulumi.String("West Datacenter Cluster"),
			Name:        pulumi.String("dc-west"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetClusterGroup

func GetClusterGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ClusterGroupState, opts ...pulumi.ResourceOption) (*ClusterGroup, error)

GetClusterGroup gets an existing ClusterGroup resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewClusterGroup

func NewClusterGroup(ctx *pulumi.Context,
	name string, args *ClusterGroupArgs, opts ...pulumi.ResourceOption) (*ClusterGroup, error)

NewClusterGroup registers a new resource with the given unique name, arguments, and options.

func (*ClusterGroup) ElementType

func (*ClusterGroup) ElementType() reflect.Type

func (*ClusterGroup) ToClusterGroupOutput

func (i *ClusterGroup) ToClusterGroupOutput() ClusterGroupOutput

func (*ClusterGroup) ToClusterGroupOutputWithContext

func (i *ClusterGroup) ToClusterGroupOutputWithContext(ctx context.Context) ClusterGroupOutput

type ClusterGroupArgs

type ClusterGroupArgs struct {
	Description pulumi.StringPtrInput
	Name        pulumi.StringPtrInput
	Slug        pulumi.StringPtrInput
}

The set of arguments for constructing a ClusterGroup resource.

func (ClusterGroupArgs) ElementType

func (ClusterGroupArgs) ElementType() reflect.Type

type ClusterGroupArray

type ClusterGroupArray []ClusterGroupInput

func (ClusterGroupArray) ElementType

func (ClusterGroupArray) ElementType() reflect.Type

func (ClusterGroupArray) ToClusterGroupArrayOutput

func (i ClusterGroupArray) ToClusterGroupArrayOutput() ClusterGroupArrayOutput

func (ClusterGroupArray) ToClusterGroupArrayOutputWithContext

func (i ClusterGroupArray) ToClusterGroupArrayOutputWithContext(ctx context.Context) ClusterGroupArrayOutput

type ClusterGroupArrayInput

type ClusterGroupArrayInput interface {
	pulumi.Input

	ToClusterGroupArrayOutput() ClusterGroupArrayOutput
	ToClusterGroupArrayOutputWithContext(context.Context) ClusterGroupArrayOutput
}

ClusterGroupArrayInput is an input type that accepts ClusterGroupArray and ClusterGroupArrayOutput values. You can construct a concrete instance of `ClusterGroupArrayInput` via:

ClusterGroupArray{ ClusterGroupArgs{...} }

type ClusterGroupArrayOutput

type ClusterGroupArrayOutput struct{ *pulumi.OutputState }

func (ClusterGroupArrayOutput) ElementType

func (ClusterGroupArrayOutput) ElementType() reflect.Type

func (ClusterGroupArrayOutput) Index

func (ClusterGroupArrayOutput) ToClusterGroupArrayOutput

func (o ClusterGroupArrayOutput) ToClusterGroupArrayOutput() ClusterGroupArrayOutput

func (ClusterGroupArrayOutput) ToClusterGroupArrayOutputWithContext

func (o ClusterGroupArrayOutput) ToClusterGroupArrayOutputWithContext(ctx context.Context) ClusterGroupArrayOutput

type ClusterGroupInput

type ClusterGroupInput interface {
	pulumi.Input

	ToClusterGroupOutput() ClusterGroupOutput
	ToClusterGroupOutputWithContext(ctx context.Context) ClusterGroupOutput
}

type ClusterGroupMap

type ClusterGroupMap map[string]ClusterGroupInput

func (ClusterGroupMap) ElementType

func (ClusterGroupMap) ElementType() reflect.Type

func (ClusterGroupMap) ToClusterGroupMapOutput

func (i ClusterGroupMap) ToClusterGroupMapOutput() ClusterGroupMapOutput

func (ClusterGroupMap) ToClusterGroupMapOutputWithContext

func (i ClusterGroupMap) ToClusterGroupMapOutputWithContext(ctx context.Context) ClusterGroupMapOutput

type ClusterGroupMapInput

type ClusterGroupMapInput interface {
	pulumi.Input

	ToClusterGroupMapOutput() ClusterGroupMapOutput
	ToClusterGroupMapOutputWithContext(context.Context) ClusterGroupMapOutput
}

ClusterGroupMapInput is an input type that accepts ClusterGroupMap and ClusterGroupMapOutput values. You can construct a concrete instance of `ClusterGroupMapInput` via:

ClusterGroupMap{ "key": ClusterGroupArgs{...} }

type ClusterGroupMapOutput

type ClusterGroupMapOutput struct{ *pulumi.OutputState }

func (ClusterGroupMapOutput) ElementType

func (ClusterGroupMapOutput) ElementType() reflect.Type

func (ClusterGroupMapOutput) MapIndex

func (ClusterGroupMapOutput) ToClusterGroupMapOutput

func (o ClusterGroupMapOutput) ToClusterGroupMapOutput() ClusterGroupMapOutput

func (ClusterGroupMapOutput) ToClusterGroupMapOutputWithContext

func (o ClusterGroupMapOutput) ToClusterGroupMapOutputWithContext(ctx context.Context) ClusterGroupMapOutput

type ClusterGroupOutput

type ClusterGroupOutput struct{ *pulumi.OutputState }

func (ClusterGroupOutput) Description

func (o ClusterGroupOutput) Description() pulumi.StringPtrOutput

func (ClusterGroupOutput) ElementType

func (ClusterGroupOutput) ElementType() reflect.Type

func (ClusterGroupOutput) Name

func (ClusterGroupOutput) Slug

func (ClusterGroupOutput) ToClusterGroupOutput

func (o ClusterGroupOutput) ToClusterGroupOutput() ClusterGroupOutput

func (ClusterGroupOutput) ToClusterGroupOutputWithContext

func (o ClusterGroupOutput) ToClusterGroupOutputWithContext(ctx context.Context) ClusterGroupOutput

type ClusterGroupState

type ClusterGroupState struct {
	Description pulumi.StringPtrInput
	Name        pulumi.StringPtrInput
	Slug        pulumi.StringPtrInput
}

func (ClusterGroupState) ElementType

func (ClusterGroupState) ElementType() reflect.Type

type ClusterInput

type ClusterInput interface {
	pulumi.Input

	ToClusterOutput() ClusterOutput
	ToClusterOutputWithContext(ctx context.Context) ClusterOutput
}

type ClusterMap

type ClusterMap map[string]ClusterInput

func (ClusterMap) ElementType

func (ClusterMap) ElementType() reflect.Type

func (ClusterMap) ToClusterMapOutput

func (i ClusterMap) ToClusterMapOutput() ClusterMapOutput

func (ClusterMap) ToClusterMapOutputWithContext

func (i ClusterMap) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput

type ClusterMapInput

type ClusterMapInput interface {
	pulumi.Input

	ToClusterMapOutput() ClusterMapOutput
	ToClusterMapOutputWithContext(context.Context) ClusterMapOutput
}

ClusterMapInput is an input type that accepts ClusterMap and ClusterMapOutput values. You can construct a concrete instance of `ClusterMapInput` via:

ClusterMap{ "key": ClusterArgs{...} }

type ClusterMapOutput

type ClusterMapOutput struct{ *pulumi.OutputState }

func (ClusterMapOutput) ElementType

func (ClusterMapOutput) ElementType() reflect.Type

func (ClusterMapOutput) MapIndex

func (ClusterMapOutput) ToClusterMapOutput

func (o ClusterMapOutput) ToClusterMapOutput() ClusterMapOutput

func (ClusterMapOutput) ToClusterMapOutputWithContext

func (o ClusterMapOutput) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput

type ClusterOutput

type ClusterOutput struct{ *pulumi.OutputState }

func (ClusterOutput) ClusterGroupId

func (o ClusterOutput) ClusterGroupId() pulumi.IntPtrOutput

func (ClusterOutput) ClusterTypeId

func (o ClusterOutput) ClusterTypeId() pulumi.IntOutput

func (ClusterOutput) Comments

func (o ClusterOutput) Comments() pulumi.StringPtrOutput

func (ClusterOutput) Description

func (o ClusterOutput) Description() pulumi.StringPtrOutput

func (ClusterOutput) ElementType

func (ClusterOutput) ElementType() reflect.Type

func (ClusterOutput) LocationId

func (o ClusterOutput) LocationId() pulumi.IntPtrOutput

Conflicts with `siteId`, `siteGroupId` and `regionId`.

func (ClusterOutput) Name

func (ClusterOutput) RegionId

func (o ClusterOutput) RegionId() pulumi.IntPtrOutput

Conflicts with `locationId`, `siteId` and `siteGroupId`.

func (ClusterOutput) SiteGroupId

func (o ClusterOutput) SiteGroupId() pulumi.IntPtrOutput

Conflicts with `locationId`, `siteId` and `regionId`.

func (ClusterOutput) SiteId

func (o ClusterOutput) SiteId() pulumi.IntPtrOutput

Conflicts with `locationId`, `siteGroupId` and `regionId`.

func (ClusterOutput) Tags

func (ClusterOutput) TagsAlls

func (o ClusterOutput) TagsAlls() pulumi.StringArrayOutput

func (ClusterOutput) TenantId

func (o ClusterOutput) TenantId() pulumi.IntPtrOutput

func (ClusterOutput) ToClusterOutput

func (o ClusterOutput) ToClusterOutput() ClusterOutput

func (ClusterOutput) ToClusterOutputWithContext

func (o ClusterOutput) ToClusterOutputWithContext(ctx context.Context) ClusterOutput

type ClusterState

type ClusterState struct {
	ClusterGroupId pulumi.IntPtrInput
	ClusterTypeId  pulumi.IntPtrInput
	Comments       pulumi.StringPtrInput
	Description    pulumi.StringPtrInput
	// Conflicts with `siteId`, `siteGroupId` and `regionId`.
	LocationId pulumi.IntPtrInput
	Name       pulumi.StringPtrInput
	// Conflicts with `locationId`, `siteId` and `siteGroupId`.
	RegionId pulumi.IntPtrInput
	// Conflicts with `locationId`, `siteId` and `regionId`.
	SiteGroupId pulumi.IntPtrInput
	// Conflicts with `locationId`, `siteGroupId` and `regionId`.
	SiteId   pulumi.IntPtrInput
	Tags     pulumi.StringArrayInput
	TagsAlls pulumi.StringArrayInput
	TenantId pulumi.IntPtrInput
}

func (ClusterState) ElementType

func (ClusterState) ElementType() reflect.Type

type ClusterType

type ClusterType struct {
	pulumi.CustomResourceState

	Name pulumi.StringOutput `pulumi:"name"`
	Slug pulumi.StringOutput `pulumi:"slug"`
}

From the [official documentation](https://docs.netbox.dev/en/stable/features/virtualization/#cluster-types):

> A cluster type represents a technology or mechanism by which a cluster is formed. For example, you might create a cluster type named "VMware vSphere" for a locally hosted cluster or "DigitalOcean NYC3" for one hosted by a cloud provider.

## Example Usage

```go package main

import (

"github.com/NatzkaLabsOpenSource/pulumi-netbox/sdk/go/netbox/virt"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := virt.NewClusterType(ctx, "vmw_vsphere", &virt.ClusterTypeArgs{
			Name: pulumi.String("VMware vSphere 6"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetClusterType

func GetClusterType(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ClusterTypeState, opts ...pulumi.ResourceOption) (*ClusterType, error)

GetClusterType gets an existing ClusterType resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewClusterType

func NewClusterType(ctx *pulumi.Context,
	name string, args *ClusterTypeArgs, opts ...pulumi.ResourceOption) (*ClusterType, error)

NewClusterType registers a new resource with the given unique name, arguments, and options.

func (*ClusterType) ElementType

func (*ClusterType) ElementType() reflect.Type

func (*ClusterType) ToClusterTypeOutput

func (i *ClusterType) ToClusterTypeOutput() ClusterTypeOutput

func (*ClusterType) ToClusterTypeOutputWithContext

func (i *ClusterType) ToClusterTypeOutputWithContext(ctx context.Context) ClusterTypeOutput

type ClusterTypeArgs

type ClusterTypeArgs struct {
	Name pulumi.StringPtrInput
	Slug pulumi.StringPtrInput
}

The set of arguments for constructing a ClusterType resource.

func (ClusterTypeArgs) ElementType

func (ClusterTypeArgs) ElementType() reflect.Type

type ClusterTypeArray

type ClusterTypeArray []ClusterTypeInput

func (ClusterTypeArray) ElementType

func (ClusterTypeArray) ElementType() reflect.Type

func (ClusterTypeArray) ToClusterTypeArrayOutput

func (i ClusterTypeArray) ToClusterTypeArrayOutput() ClusterTypeArrayOutput

func (ClusterTypeArray) ToClusterTypeArrayOutputWithContext

func (i ClusterTypeArray) ToClusterTypeArrayOutputWithContext(ctx context.Context) ClusterTypeArrayOutput

type ClusterTypeArrayInput

type ClusterTypeArrayInput interface {
	pulumi.Input

	ToClusterTypeArrayOutput() ClusterTypeArrayOutput
	ToClusterTypeArrayOutputWithContext(context.Context) ClusterTypeArrayOutput
}

ClusterTypeArrayInput is an input type that accepts ClusterTypeArray and ClusterTypeArrayOutput values. You can construct a concrete instance of `ClusterTypeArrayInput` via:

ClusterTypeArray{ ClusterTypeArgs{...} }

type ClusterTypeArrayOutput

type ClusterTypeArrayOutput struct{ *pulumi.OutputState }

func (ClusterTypeArrayOutput) ElementType

func (ClusterTypeArrayOutput) ElementType() reflect.Type

func (ClusterTypeArrayOutput) Index

func (ClusterTypeArrayOutput) ToClusterTypeArrayOutput

func (o ClusterTypeArrayOutput) ToClusterTypeArrayOutput() ClusterTypeArrayOutput

func (ClusterTypeArrayOutput) ToClusterTypeArrayOutputWithContext

func (o ClusterTypeArrayOutput) ToClusterTypeArrayOutputWithContext(ctx context.Context) ClusterTypeArrayOutput

type ClusterTypeInput

type ClusterTypeInput interface {
	pulumi.Input

	ToClusterTypeOutput() ClusterTypeOutput
	ToClusterTypeOutputWithContext(ctx context.Context) ClusterTypeOutput
}

type ClusterTypeMap

type ClusterTypeMap map[string]ClusterTypeInput

func (ClusterTypeMap) ElementType

func (ClusterTypeMap) ElementType() reflect.Type

func (ClusterTypeMap) ToClusterTypeMapOutput

func (i ClusterTypeMap) ToClusterTypeMapOutput() ClusterTypeMapOutput

func (ClusterTypeMap) ToClusterTypeMapOutputWithContext

func (i ClusterTypeMap) ToClusterTypeMapOutputWithContext(ctx context.Context) ClusterTypeMapOutput

type ClusterTypeMapInput

type ClusterTypeMapInput interface {
	pulumi.Input

	ToClusterTypeMapOutput() ClusterTypeMapOutput
	ToClusterTypeMapOutputWithContext(context.Context) ClusterTypeMapOutput
}

ClusterTypeMapInput is an input type that accepts ClusterTypeMap and ClusterTypeMapOutput values. You can construct a concrete instance of `ClusterTypeMapInput` via:

ClusterTypeMap{ "key": ClusterTypeArgs{...} }

type ClusterTypeMapOutput

type ClusterTypeMapOutput struct{ *pulumi.OutputState }

func (ClusterTypeMapOutput) ElementType

func (ClusterTypeMapOutput) ElementType() reflect.Type

func (ClusterTypeMapOutput) MapIndex

func (ClusterTypeMapOutput) ToClusterTypeMapOutput

func (o ClusterTypeMapOutput) ToClusterTypeMapOutput() ClusterTypeMapOutput

func (ClusterTypeMapOutput) ToClusterTypeMapOutputWithContext

func (o ClusterTypeMapOutput) ToClusterTypeMapOutputWithContext(ctx context.Context) ClusterTypeMapOutput

type ClusterTypeOutput

type ClusterTypeOutput struct{ *pulumi.OutputState }

func (ClusterTypeOutput) ElementType

func (ClusterTypeOutput) ElementType() reflect.Type

func (ClusterTypeOutput) Name

func (ClusterTypeOutput) Slug

func (ClusterTypeOutput) ToClusterTypeOutput

func (o ClusterTypeOutput) ToClusterTypeOutput() ClusterTypeOutput

func (ClusterTypeOutput) ToClusterTypeOutputWithContext

func (o ClusterTypeOutput) ToClusterTypeOutputWithContext(ctx context.Context) ClusterTypeOutput

type ClusterTypeState

type ClusterTypeState struct {
	Name pulumi.StringPtrInput
	Slug pulumi.StringPtrInput
}

func (ClusterTypeState) ElementType

func (ClusterTypeState) ElementType() reflect.Type

type GetInterfacesArgs

type GetInterfacesArgs struct {
	Filters []GetInterfacesFilter `pulumi:"filters"`
	// The limit of objects to return from the API lookup. Defaults to `0`.
	Limit     *int    `pulumi:"limit"`
	NameRegex *string `pulumi:"nameRegex"`
}

A collection of arguments for invoking getInterfaces.

type GetInterfacesFilter

type GetInterfacesFilter struct {
	Name  string `pulumi:"name"`
	Value string `pulumi:"value"`
}

type GetInterfacesFilterArgs

type GetInterfacesFilterArgs struct {
	Name  pulumi.StringInput `pulumi:"name"`
	Value pulumi.StringInput `pulumi:"value"`
}

func (GetInterfacesFilterArgs) ElementType

func (GetInterfacesFilterArgs) ElementType() reflect.Type

func (GetInterfacesFilterArgs) ToGetInterfacesFilterOutput

func (i GetInterfacesFilterArgs) ToGetInterfacesFilterOutput() GetInterfacesFilterOutput

func (GetInterfacesFilterArgs) ToGetInterfacesFilterOutputWithContext

func (i GetInterfacesFilterArgs) ToGetInterfacesFilterOutputWithContext(ctx context.Context) GetInterfacesFilterOutput

type GetInterfacesFilterArray

type GetInterfacesFilterArray []GetInterfacesFilterInput

func (GetInterfacesFilterArray) ElementType

func (GetInterfacesFilterArray) ElementType() reflect.Type

func (GetInterfacesFilterArray) ToGetInterfacesFilterArrayOutput

func (i GetInterfacesFilterArray) ToGetInterfacesFilterArrayOutput() GetInterfacesFilterArrayOutput

func (GetInterfacesFilterArray) ToGetInterfacesFilterArrayOutputWithContext

func (i GetInterfacesFilterArray) ToGetInterfacesFilterArrayOutputWithContext(ctx context.Context) GetInterfacesFilterArrayOutput

type GetInterfacesFilterArrayInput

type GetInterfacesFilterArrayInput interface {
	pulumi.Input

	ToGetInterfacesFilterArrayOutput() GetInterfacesFilterArrayOutput
	ToGetInterfacesFilterArrayOutputWithContext(context.Context) GetInterfacesFilterArrayOutput
}

GetInterfacesFilterArrayInput is an input type that accepts GetInterfacesFilterArray and GetInterfacesFilterArrayOutput values. You can construct a concrete instance of `GetInterfacesFilterArrayInput` via:

GetInterfacesFilterArray{ GetInterfacesFilterArgs{...} }

type GetInterfacesFilterArrayOutput

type GetInterfacesFilterArrayOutput struct{ *pulumi.OutputState }

func (GetInterfacesFilterArrayOutput) ElementType

func (GetInterfacesFilterArrayOutput) Index

func (GetInterfacesFilterArrayOutput) ToGetInterfacesFilterArrayOutput

func (o GetInterfacesFilterArrayOutput) ToGetInterfacesFilterArrayOutput() GetInterfacesFilterArrayOutput

func (GetInterfacesFilterArrayOutput) ToGetInterfacesFilterArrayOutputWithContext

func (o GetInterfacesFilterArrayOutput) ToGetInterfacesFilterArrayOutputWithContext(ctx context.Context) GetInterfacesFilterArrayOutput

type GetInterfacesFilterInput

type GetInterfacesFilterInput interface {
	pulumi.Input

	ToGetInterfacesFilterOutput() GetInterfacesFilterOutput
	ToGetInterfacesFilterOutputWithContext(context.Context) GetInterfacesFilterOutput
}

GetInterfacesFilterInput is an input type that accepts GetInterfacesFilterArgs and GetInterfacesFilterOutput values. You can construct a concrete instance of `GetInterfacesFilterInput` via:

GetInterfacesFilterArgs{...}

type GetInterfacesFilterOutput

type GetInterfacesFilterOutput struct{ *pulumi.OutputState }

func (GetInterfacesFilterOutput) ElementType

func (GetInterfacesFilterOutput) ElementType() reflect.Type

func (GetInterfacesFilterOutput) Name

func (GetInterfacesFilterOutput) ToGetInterfacesFilterOutput

func (o GetInterfacesFilterOutput) ToGetInterfacesFilterOutput() GetInterfacesFilterOutput

func (GetInterfacesFilterOutput) ToGetInterfacesFilterOutputWithContext

func (o GetInterfacesFilterOutput) ToGetInterfacesFilterOutputWithContext(ctx context.Context) GetInterfacesFilterOutput

func (GetInterfacesFilterOutput) Value

type GetInterfacesInterface

type GetInterfacesInterface struct {
	Description   string                               `pulumi:"description"`
	Enabled       bool                                 `pulumi:"enabled"`
	Id            int                                  `pulumi:"id"`
	MacAddress    string                               `pulumi:"macAddress"`
	Mode          map[string]string                    `pulumi:"mode"`
	Mtu           int                                  `pulumi:"mtu"`
	Name          string                               `pulumi:"name"`
	TagIds        []int                                `pulumi:"tagIds"`
	TaggedVlans   []GetInterfacesInterfaceTaggedVlan   `pulumi:"taggedVlans"`
	UntaggedVlans []GetInterfacesInterfaceUntaggedVlan `pulumi:"untaggedVlans"`
	VmId          int                                  `pulumi:"vmId"`
}

type GetInterfacesInterfaceArgs

type GetInterfacesInterfaceArgs struct {
	Description   pulumi.StringInput                           `pulumi:"description"`
	Enabled       pulumi.BoolInput                             `pulumi:"enabled"`
	Id            pulumi.IntInput                              `pulumi:"id"`
	MacAddress    pulumi.StringInput                           `pulumi:"macAddress"`
	Mode          pulumi.StringMapInput                        `pulumi:"mode"`
	Mtu           pulumi.IntInput                              `pulumi:"mtu"`
	Name          pulumi.StringInput                           `pulumi:"name"`
	TagIds        pulumi.IntArrayInput                         `pulumi:"tagIds"`
	TaggedVlans   GetInterfacesInterfaceTaggedVlanArrayInput   `pulumi:"taggedVlans"`
	UntaggedVlans GetInterfacesInterfaceUntaggedVlanArrayInput `pulumi:"untaggedVlans"`
	VmId          pulumi.IntInput                              `pulumi:"vmId"`
}

func (GetInterfacesInterfaceArgs) ElementType

func (GetInterfacesInterfaceArgs) ElementType() reflect.Type

func (GetInterfacesInterfaceArgs) ToGetInterfacesInterfaceOutput

func (i GetInterfacesInterfaceArgs) ToGetInterfacesInterfaceOutput() GetInterfacesInterfaceOutput

func (GetInterfacesInterfaceArgs) ToGetInterfacesInterfaceOutputWithContext

func (i GetInterfacesInterfaceArgs) ToGetInterfacesInterfaceOutputWithContext(ctx context.Context) GetInterfacesInterfaceOutput

type GetInterfacesInterfaceArray

type GetInterfacesInterfaceArray []GetInterfacesInterfaceInput

func (GetInterfacesInterfaceArray) ElementType

func (GetInterfacesInterfaceArray) ToGetInterfacesInterfaceArrayOutput

func (i GetInterfacesInterfaceArray) ToGetInterfacesInterfaceArrayOutput() GetInterfacesInterfaceArrayOutput

func (GetInterfacesInterfaceArray) ToGetInterfacesInterfaceArrayOutputWithContext

func (i GetInterfacesInterfaceArray) ToGetInterfacesInterfaceArrayOutputWithContext(ctx context.Context) GetInterfacesInterfaceArrayOutput

type GetInterfacesInterfaceArrayInput

type GetInterfacesInterfaceArrayInput interface {
	pulumi.Input

	ToGetInterfacesInterfaceArrayOutput() GetInterfacesInterfaceArrayOutput
	ToGetInterfacesInterfaceArrayOutputWithContext(context.Context) GetInterfacesInterfaceArrayOutput
}

GetInterfacesInterfaceArrayInput is an input type that accepts GetInterfacesInterfaceArray and GetInterfacesInterfaceArrayOutput values. You can construct a concrete instance of `GetInterfacesInterfaceArrayInput` via:

GetInterfacesInterfaceArray{ GetInterfacesInterfaceArgs{...} }

type GetInterfacesInterfaceArrayOutput

type GetInterfacesInterfaceArrayOutput struct{ *pulumi.OutputState }

func (GetInterfacesInterfaceArrayOutput) ElementType

func (GetInterfacesInterfaceArrayOutput) Index

func (GetInterfacesInterfaceArrayOutput) ToGetInterfacesInterfaceArrayOutput

func (o GetInterfacesInterfaceArrayOutput) ToGetInterfacesInterfaceArrayOutput() GetInterfacesInterfaceArrayOutput

func (GetInterfacesInterfaceArrayOutput) ToGetInterfacesInterfaceArrayOutputWithContext

func (o GetInterfacesInterfaceArrayOutput) ToGetInterfacesInterfaceArrayOutputWithContext(ctx context.Context) GetInterfacesInterfaceArrayOutput

type GetInterfacesInterfaceInput

type GetInterfacesInterfaceInput interface {
	pulumi.Input

	ToGetInterfacesInterfaceOutput() GetInterfacesInterfaceOutput
	ToGetInterfacesInterfaceOutputWithContext(context.Context) GetInterfacesInterfaceOutput
}

GetInterfacesInterfaceInput is an input type that accepts GetInterfacesInterfaceArgs and GetInterfacesInterfaceOutput values. You can construct a concrete instance of `GetInterfacesInterfaceInput` via:

GetInterfacesInterfaceArgs{...}

type GetInterfacesInterfaceOutput

type GetInterfacesInterfaceOutput struct{ *pulumi.OutputState }

func (GetInterfacesInterfaceOutput) Description

func (GetInterfacesInterfaceOutput) ElementType

func (GetInterfacesInterfaceOutput) Enabled

func (GetInterfacesInterfaceOutput) Id

func (GetInterfacesInterfaceOutput) MacAddress

func (GetInterfacesInterfaceOutput) Mode

func (GetInterfacesInterfaceOutput) Mtu

func (GetInterfacesInterfaceOutput) Name

func (GetInterfacesInterfaceOutput) TagIds

func (GetInterfacesInterfaceOutput) TaggedVlans

func (GetInterfacesInterfaceOutput) ToGetInterfacesInterfaceOutput

func (o GetInterfacesInterfaceOutput) ToGetInterfacesInterfaceOutput() GetInterfacesInterfaceOutput

func (GetInterfacesInterfaceOutput) ToGetInterfacesInterfaceOutputWithContext

func (o GetInterfacesInterfaceOutput) ToGetInterfacesInterfaceOutputWithContext(ctx context.Context) GetInterfacesInterfaceOutput

func (GetInterfacesInterfaceOutput) UntaggedVlans

func (GetInterfacesInterfaceOutput) VmId

type GetInterfacesInterfaceTaggedVlan

type GetInterfacesInterfaceTaggedVlan struct {
	Id   int    `pulumi:"id"`
	Name string `pulumi:"name"`
	Vid  int    `pulumi:"vid"`
}

type GetInterfacesInterfaceTaggedVlanArgs

type GetInterfacesInterfaceTaggedVlanArgs struct {
	Id   pulumi.IntInput    `pulumi:"id"`
	Name pulumi.StringInput `pulumi:"name"`
	Vid  pulumi.IntInput    `pulumi:"vid"`
}

func (GetInterfacesInterfaceTaggedVlanArgs) ElementType

func (GetInterfacesInterfaceTaggedVlanArgs) ToGetInterfacesInterfaceTaggedVlanOutput

func (i GetInterfacesInterfaceTaggedVlanArgs) ToGetInterfacesInterfaceTaggedVlanOutput() GetInterfacesInterfaceTaggedVlanOutput

func (GetInterfacesInterfaceTaggedVlanArgs) ToGetInterfacesInterfaceTaggedVlanOutputWithContext

func (i GetInterfacesInterfaceTaggedVlanArgs) ToGetInterfacesInterfaceTaggedVlanOutputWithContext(ctx context.Context) GetInterfacesInterfaceTaggedVlanOutput

type GetInterfacesInterfaceTaggedVlanArray

type GetInterfacesInterfaceTaggedVlanArray []GetInterfacesInterfaceTaggedVlanInput

func (GetInterfacesInterfaceTaggedVlanArray) ElementType

func (GetInterfacesInterfaceTaggedVlanArray) ToGetInterfacesInterfaceTaggedVlanArrayOutput

func (i GetInterfacesInterfaceTaggedVlanArray) ToGetInterfacesInterfaceTaggedVlanArrayOutput() GetInterfacesInterfaceTaggedVlanArrayOutput

func (GetInterfacesInterfaceTaggedVlanArray) ToGetInterfacesInterfaceTaggedVlanArrayOutputWithContext

func (i GetInterfacesInterfaceTaggedVlanArray) ToGetInterfacesInterfaceTaggedVlanArrayOutputWithContext(ctx context.Context) GetInterfacesInterfaceTaggedVlanArrayOutput

type GetInterfacesInterfaceTaggedVlanArrayInput

type GetInterfacesInterfaceTaggedVlanArrayInput interface {
	pulumi.Input

	ToGetInterfacesInterfaceTaggedVlanArrayOutput() GetInterfacesInterfaceTaggedVlanArrayOutput
	ToGetInterfacesInterfaceTaggedVlanArrayOutputWithContext(context.Context) GetInterfacesInterfaceTaggedVlanArrayOutput
}

GetInterfacesInterfaceTaggedVlanArrayInput is an input type that accepts GetInterfacesInterfaceTaggedVlanArray and GetInterfacesInterfaceTaggedVlanArrayOutput values. You can construct a concrete instance of `GetInterfacesInterfaceTaggedVlanArrayInput` via:

GetInterfacesInterfaceTaggedVlanArray{ GetInterfacesInterfaceTaggedVlanArgs{...} }

type GetInterfacesInterfaceTaggedVlanArrayOutput

type GetInterfacesInterfaceTaggedVlanArrayOutput struct{ *pulumi.OutputState }

func (GetInterfacesInterfaceTaggedVlanArrayOutput) ElementType

func (GetInterfacesInterfaceTaggedVlanArrayOutput) Index

func (GetInterfacesInterfaceTaggedVlanArrayOutput) ToGetInterfacesInterfaceTaggedVlanArrayOutput

func (o GetInterfacesInterfaceTaggedVlanArrayOutput) ToGetInterfacesInterfaceTaggedVlanArrayOutput() GetInterfacesInterfaceTaggedVlanArrayOutput

func (GetInterfacesInterfaceTaggedVlanArrayOutput) ToGetInterfacesInterfaceTaggedVlanArrayOutputWithContext

func (o GetInterfacesInterfaceTaggedVlanArrayOutput) ToGetInterfacesInterfaceTaggedVlanArrayOutputWithContext(ctx context.Context) GetInterfacesInterfaceTaggedVlanArrayOutput

type GetInterfacesInterfaceTaggedVlanInput

type GetInterfacesInterfaceTaggedVlanInput interface {
	pulumi.Input

	ToGetInterfacesInterfaceTaggedVlanOutput() GetInterfacesInterfaceTaggedVlanOutput
	ToGetInterfacesInterfaceTaggedVlanOutputWithContext(context.Context) GetInterfacesInterfaceTaggedVlanOutput
}

GetInterfacesInterfaceTaggedVlanInput is an input type that accepts GetInterfacesInterfaceTaggedVlanArgs and GetInterfacesInterfaceTaggedVlanOutput values. You can construct a concrete instance of `GetInterfacesInterfaceTaggedVlanInput` via:

GetInterfacesInterfaceTaggedVlanArgs{...}

type GetInterfacesInterfaceTaggedVlanOutput

type GetInterfacesInterfaceTaggedVlanOutput struct{ *pulumi.OutputState }

func (GetInterfacesInterfaceTaggedVlanOutput) ElementType

func (GetInterfacesInterfaceTaggedVlanOutput) Id

func (GetInterfacesInterfaceTaggedVlanOutput) Name

func (GetInterfacesInterfaceTaggedVlanOutput) ToGetInterfacesInterfaceTaggedVlanOutput

func (o GetInterfacesInterfaceTaggedVlanOutput) ToGetInterfacesInterfaceTaggedVlanOutput() GetInterfacesInterfaceTaggedVlanOutput

func (GetInterfacesInterfaceTaggedVlanOutput) ToGetInterfacesInterfaceTaggedVlanOutputWithContext

func (o GetInterfacesInterfaceTaggedVlanOutput) ToGetInterfacesInterfaceTaggedVlanOutputWithContext(ctx context.Context) GetInterfacesInterfaceTaggedVlanOutput

func (GetInterfacesInterfaceTaggedVlanOutput) Vid

type GetInterfacesInterfaceUntaggedVlan

type GetInterfacesInterfaceUntaggedVlan struct {
	Id   int    `pulumi:"id"`
	Name string `pulumi:"name"`
	Vid  int    `pulumi:"vid"`
}

type GetInterfacesInterfaceUntaggedVlanArgs

type GetInterfacesInterfaceUntaggedVlanArgs struct {
	Id   pulumi.IntInput    `pulumi:"id"`
	Name pulumi.StringInput `pulumi:"name"`
	Vid  pulumi.IntInput    `pulumi:"vid"`
}

func (GetInterfacesInterfaceUntaggedVlanArgs) ElementType

func (GetInterfacesInterfaceUntaggedVlanArgs) ToGetInterfacesInterfaceUntaggedVlanOutput

func (i GetInterfacesInterfaceUntaggedVlanArgs) ToGetInterfacesInterfaceUntaggedVlanOutput() GetInterfacesInterfaceUntaggedVlanOutput

func (GetInterfacesInterfaceUntaggedVlanArgs) ToGetInterfacesInterfaceUntaggedVlanOutputWithContext

func (i GetInterfacesInterfaceUntaggedVlanArgs) ToGetInterfacesInterfaceUntaggedVlanOutputWithContext(ctx context.Context) GetInterfacesInterfaceUntaggedVlanOutput

type GetInterfacesInterfaceUntaggedVlanArray

type GetInterfacesInterfaceUntaggedVlanArray []GetInterfacesInterfaceUntaggedVlanInput

func (GetInterfacesInterfaceUntaggedVlanArray) ElementType

func (GetInterfacesInterfaceUntaggedVlanArray) ToGetInterfacesInterfaceUntaggedVlanArrayOutput

func (i GetInterfacesInterfaceUntaggedVlanArray) ToGetInterfacesInterfaceUntaggedVlanArrayOutput() GetInterfacesInterfaceUntaggedVlanArrayOutput

func (GetInterfacesInterfaceUntaggedVlanArray) ToGetInterfacesInterfaceUntaggedVlanArrayOutputWithContext

func (i GetInterfacesInterfaceUntaggedVlanArray) ToGetInterfacesInterfaceUntaggedVlanArrayOutputWithContext(ctx context.Context) GetInterfacesInterfaceUntaggedVlanArrayOutput

type GetInterfacesInterfaceUntaggedVlanArrayInput

type GetInterfacesInterfaceUntaggedVlanArrayInput interface {
	pulumi.Input

	ToGetInterfacesInterfaceUntaggedVlanArrayOutput() GetInterfacesInterfaceUntaggedVlanArrayOutput
	ToGetInterfacesInterfaceUntaggedVlanArrayOutputWithContext(context.Context) GetInterfacesInterfaceUntaggedVlanArrayOutput
}

GetInterfacesInterfaceUntaggedVlanArrayInput is an input type that accepts GetInterfacesInterfaceUntaggedVlanArray and GetInterfacesInterfaceUntaggedVlanArrayOutput values. You can construct a concrete instance of `GetInterfacesInterfaceUntaggedVlanArrayInput` via:

GetInterfacesInterfaceUntaggedVlanArray{ GetInterfacesInterfaceUntaggedVlanArgs{...} }

type GetInterfacesInterfaceUntaggedVlanArrayOutput

type GetInterfacesInterfaceUntaggedVlanArrayOutput struct{ *pulumi.OutputState }

func (GetInterfacesInterfaceUntaggedVlanArrayOutput) ElementType

func (GetInterfacesInterfaceUntaggedVlanArrayOutput) Index

func (GetInterfacesInterfaceUntaggedVlanArrayOutput) ToGetInterfacesInterfaceUntaggedVlanArrayOutput

func (o GetInterfacesInterfaceUntaggedVlanArrayOutput) ToGetInterfacesInterfaceUntaggedVlanArrayOutput() GetInterfacesInterfaceUntaggedVlanArrayOutput

func (GetInterfacesInterfaceUntaggedVlanArrayOutput) ToGetInterfacesInterfaceUntaggedVlanArrayOutputWithContext

func (o GetInterfacesInterfaceUntaggedVlanArrayOutput) ToGetInterfacesInterfaceUntaggedVlanArrayOutputWithContext(ctx context.Context) GetInterfacesInterfaceUntaggedVlanArrayOutput

type GetInterfacesInterfaceUntaggedVlanInput

type GetInterfacesInterfaceUntaggedVlanInput interface {
	pulumi.Input

	ToGetInterfacesInterfaceUntaggedVlanOutput() GetInterfacesInterfaceUntaggedVlanOutput
	ToGetInterfacesInterfaceUntaggedVlanOutputWithContext(context.Context) GetInterfacesInterfaceUntaggedVlanOutput
}

GetInterfacesInterfaceUntaggedVlanInput is an input type that accepts GetInterfacesInterfaceUntaggedVlanArgs and GetInterfacesInterfaceUntaggedVlanOutput values. You can construct a concrete instance of `GetInterfacesInterfaceUntaggedVlanInput` via:

GetInterfacesInterfaceUntaggedVlanArgs{...}

type GetInterfacesInterfaceUntaggedVlanOutput

type GetInterfacesInterfaceUntaggedVlanOutput struct{ *pulumi.OutputState }

func (GetInterfacesInterfaceUntaggedVlanOutput) ElementType

func (GetInterfacesInterfaceUntaggedVlanOutput) Id

func (GetInterfacesInterfaceUntaggedVlanOutput) Name

func (GetInterfacesInterfaceUntaggedVlanOutput) ToGetInterfacesInterfaceUntaggedVlanOutput

func (o GetInterfacesInterfaceUntaggedVlanOutput) ToGetInterfacesInterfaceUntaggedVlanOutput() GetInterfacesInterfaceUntaggedVlanOutput

func (GetInterfacesInterfaceUntaggedVlanOutput) ToGetInterfacesInterfaceUntaggedVlanOutputWithContext

func (o GetInterfacesInterfaceUntaggedVlanOutput) ToGetInterfacesInterfaceUntaggedVlanOutputWithContext(ctx context.Context) GetInterfacesInterfaceUntaggedVlanOutput

func (GetInterfacesInterfaceUntaggedVlanOutput) Vid

type GetInterfacesOutputArgs

type GetInterfacesOutputArgs struct {
	Filters GetInterfacesFilterArrayInput `pulumi:"filters"`
	// The limit of objects to return from the API lookup. Defaults to `0`.
	Limit     pulumi.IntPtrInput    `pulumi:"limit"`
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
}

A collection of arguments for invoking getInterfaces.

func (GetInterfacesOutputArgs) ElementType

func (GetInterfacesOutputArgs) ElementType() reflect.Type

type GetInterfacesResult

type GetInterfacesResult struct {
	Filters []GetInterfacesFilter `pulumi:"filters"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                   `pulumi:"id"`
	Interfaces []GetInterfacesInterface `pulumi:"interfaces"`
	// The limit of objects to return from the API lookup. Defaults to `0`.
	Limit     *int    `pulumi:"limit"`
	NameRegex *string `pulumi:"nameRegex"`
}

A collection of values returned by getInterfaces.

func GetInterfaces

func GetInterfaces(ctx *pulumi.Context, args *GetInterfacesArgs, opts ...pulumi.InvokeOption) (*GetInterfacesResult, error)

## Example Usage

type GetInterfacesResultOutput

type GetInterfacesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInterfaces.

func (GetInterfacesResultOutput) ElementType

func (GetInterfacesResultOutput) ElementType() reflect.Type

func (GetInterfacesResultOutput) Filters

func (GetInterfacesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetInterfacesResultOutput) Interfaces

func (GetInterfacesResultOutput) Limit

The limit of objects to return from the API lookup. Defaults to `0`.

func (GetInterfacesResultOutput) NameRegex

func (GetInterfacesResultOutput) ToGetInterfacesResultOutput

func (o GetInterfacesResultOutput) ToGetInterfacesResultOutput() GetInterfacesResultOutput

func (GetInterfacesResultOutput) ToGetInterfacesResultOutputWithContext

func (o GetInterfacesResultOutput) ToGetInterfacesResultOutputWithContext(ctx context.Context) GetInterfacesResultOutput

type GetVirtualMachinesArgs

type GetVirtualMachinesArgs struct {
	Filters   []GetVirtualMachinesFilter `pulumi:"filters"`
	Limit     *int                       `pulumi:"limit"`
	NameRegex *string                    `pulumi:"nameRegex"`
}

A collection of arguments for invoking getVirtualMachines.

type GetVirtualMachinesFilter

type GetVirtualMachinesFilter struct {
	Name  string `pulumi:"name"`
	Value string `pulumi:"value"`
}

type GetVirtualMachinesFilterArgs

type GetVirtualMachinesFilterArgs struct {
	Name  pulumi.StringInput `pulumi:"name"`
	Value pulumi.StringInput `pulumi:"value"`
}

func (GetVirtualMachinesFilterArgs) ElementType

func (GetVirtualMachinesFilterArgs) ToGetVirtualMachinesFilterOutput

func (i GetVirtualMachinesFilterArgs) ToGetVirtualMachinesFilterOutput() GetVirtualMachinesFilterOutput

func (GetVirtualMachinesFilterArgs) ToGetVirtualMachinesFilterOutputWithContext

func (i GetVirtualMachinesFilterArgs) ToGetVirtualMachinesFilterOutputWithContext(ctx context.Context) GetVirtualMachinesFilterOutput

type GetVirtualMachinesFilterArray

type GetVirtualMachinesFilterArray []GetVirtualMachinesFilterInput

func (GetVirtualMachinesFilterArray) ElementType

func (GetVirtualMachinesFilterArray) ToGetVirtualMachinesFilterArrayOutput

func (i GetVirtualMachinesFilterArray) ToGetVirtualMachinesFilterArrayOutput() GetVirtualMachinesFilterArrayOutput

func (GetVirtualMachinesFilterArray) ToGetVirtualMachinesFilterArrayOutputWithContext

func (i GetVirtualMachinesFilterArray) ToGetVirtualMachinesFilterArrayOutputWithContext(ctx context.Context) GetVirtualMachinesFilterArrayOutput

type GetVirtualMachinesFilterArrayInput

type GetVirtualMachinesFilterArrayInput interface {
	pulumi.Input

	ToGetVirtualMachinesFilterArrayOutput() GetVirtualMachinesFilterArrayOutput
	ToGetVirtualMachinesFilterArrayOutputWithContext(context.Context) GetVirtualMachinesFilterArrayOutput
}

GetVirtualMachinesFilterArrayInput is an input type that accepts GetVirtualMachinesFilterArray and GetVirtualMachinesFilterArrayOutput values. You can construct a concrete instance of `GetVirtualMachinesFilterArrayInput` via:

GetVirtualMachinesFilterArray{ GetVirtualMachinesFilterArgs{...} }

type GetVirtualMachinesFilterArrayOutput

type GetVirtualMachinesFilterArrayOutput struct{ *pulumi.OutputState }

func (GetVirtualMachinesFilterArrayOutput) ElementType

func (GetVirtualMachinesFilterArrayOutput) Index

func (GetVirtualMachinesFilterArrayOutput) ToGetVirtualMachinesFilterArrayOutput

func (o GetVirtualMachinesFilterArrayOutput) ToGetVirtualMachinesFilterArrayOutput() GetVirtualMachinesFilterArrayOutput

func (GetVirtualMachinesFilterArrayOutput) ToGetVirtualMachinesFilterArrayOutputWithContext

func (o GetVirtualMachinesFilterArrayOutput) ToGetVirtualMachinesFilterArrayOutputWithContext(ctx context.Context) GetVirtualMachinesFilterArrayOutput

type GetVirtualMachinesFilterInput

type GetVirtualMachinesFilterInput interface {
	pulumi.Input

	ToGetVirtualMachinesFilterOutput() GetVirtualMachinesFilterOutput
	ToGetVirtualMachinesFilterOutputWithContext(context.Context) GetVirtualMachinesFilterOutput
}

GetVirtualMachinesFilterInput is an input type that accepts GetVirtualMachinesFilterArgs and GetVirtualMachinesFilterOutput values. You can construct a concrete instance of `GetVirtualMachinesFilterInput` via:

GetVirtualMachinesFilterArgs{...}

type GetVirtualMachinesFilterOutput

type GetVirtualMachinesFilterOutput struct{ *pulumi.OutputState }

func (GetVirtualMachinesFilterOutput) ElementType

func (GetVirtualMachinesFilterOutput) Name

func (GetVirtualMachinesFilterOutput) ToGetVirtualMachinesFilterOutput

func (o GetVirtualMachinesFilterOutput) ToGetVirtualMachinesFilterOutput() GetVirtualMachinesFilterOutput

func (GetVirtualMachinesFilterOutput) ToGetVirtualMachinesFilterOutputWithContext

func (o GetVirtualMachinesFilterOutput) ToGetVirtualMachinesFilterOutputWithContext(ctx context.Context) GetVirtualMachinesFilterOutput

func (GetVirtualMachinesFilterOutput) Value

type GetVirtualMachinesOutputArgs

type GetVirtualMachinesOutputArgs struct {
	Filters   GetVirtualMachinesFilterArrayInput `pulumi:"filters"`
	Limit     pulumi.IntPtrInput                 `pulumi:"limit"`
	NameRegex pulumi.StringPtrInput              `pulumi:"nameRegex"`
}

A collection of arguments for invoking getVirtualMachines.

func (GetVirtualMachinesOutputArgs) ElementType

type GetVirtualMachinesResult

type GetVirtualMachinesResult struct {
	Filters []GetVirtualMachinesFilter `pulumi:"filters"`
	// The provider-assigned unique ID for this managed resource.
	Id        string                 `pulumi:"id"`
	Limit     *int                   `pulumi:"limit"`
	NameRegex *string                `pulumi:"nameRegex"`
	Vms       []GetVirtualMachinesVm `pulumi:"vms"`
}

A collection of values returned by getVirtualMachines.

func GetVirtualMachines

func GetVirtualMachines(ctx *pulumi.Context, args *GetVirtualMachinesArgs, opts ...pulumi.InvokeOption) (*GetVirtualMachinesResult, error)

## Example Usage

```go package main

import (

"github.com/NatzkaLabsOpenSource/pulumi-netbox/sdk/go/netbox/virt"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Assumes vmw-cluster-01 exists as a cluster in Netbox
		vmwCluster01, err := virt.LookupCluster(ctx, &virt.LookupClusterArgs{
			Name: pulumi.StringRef("vmw-cluster-01"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = virt.GetVirtualMachines(ctx, &virt.GetVirtualMachinesArgs{
			NameRegex: pulumi.StringRef("myvm-1"),
			Filters: []virt.GetVirtualMachinesFilter{
				{
					Name:  "cluster_id",
					Value: vmwCluster01.Id,
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetVirtualMachinesResultOutput

type GetVirtualMachinesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getVirtualMachines.

func (GetVirtualMachinesResultOutput) ElementType

func (GetVirtualMachinesResultOutput) Filters

func (GetVirtualMachinesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetVirtualMachinesResultOutput) Limit

func (GetVirtualMachinesResultOutput) NameRegex

func (GetVirtualMachinesResultOutput) ToGetVirtualMachinesResultOutput

func (o GetVirtualMachinesResultOutput) ToGetVirtualMachinesResultOutput() GetVirtualMachinesResultOutput

func (GetVirtualMachinesResultOutput) ToGetVirtualMachinesResultOutputWithContext

func (o GetVirtualMachinesResultOutput) ToGetVirtualMachinesResultOutputWithContext(ctx context.Context) GetVirtualMachinesResultOutput

func (GetVirtualMachinesResultOutput) Vms

type GetVirtualMachinesVm

type GetVirtualMachinesVm struct {
	ClusterId        int               `pulumi:"clusterId"`
	Comments         string            `pulumi:"comments"`
	ConfigContext    string            `pulumi:"configContext"`
	CustomFields     map[string]string `pulumi:"customFields"`
	Description      string            `pulumi:"description"`
	DeviceId         int               `pulumi:"deviceId"`
	DeviceName       string            `pulumi:"deviceName"`
	DiskSizeMb       int               `pulumi:"diskSizeMb"`
	LocalContextData string            `pulumi:"localContextData"`
	MemoryMb         int               `pulumi:"memoryMb"`
	Name             string            `pulumi:"name"`
	PlatformId       int               `pulumi:"platformId"`
	PlatformSlug     string            `pulumi:"platformSlug"`
	PrimaryIp        string            `pulumi:"primaryIp"`
	PrimaryIp4       string            `pulumi:"primaryIp4"`
	PrimaryIp6       string            `pulumi:"primaryIp6"`
	RoleId           int               `pulumi:"roleId"`
	SiteId           int               `pulumi:"siteId"`
	Status           string            `pulumi:"status"`
	TagIds           []int             `pulumi:"tagIds"`
	TenantId         int               `pulumi:"tenantId"`
	Vcpus            float64           `pulumi:"vcpus"`
	VmId             int               `pulumi:"vmId"`
}

type GetVirtualMachinesVmArgs

type GetVirtualMachinesVmArgs struct {
	ClusterId        pulumi.IntInput       `pulumi:"clusterId"`
	Comments         pulumi.StringInput    `pulumi:"comments"`
	ConfigContext    pulumi.StringInput    `pulumi:"configContext"`
	CustomFields     pulumi.StringMapInput `pulumi:"customFields"`
	Description      pulumi.StringInput    `pulumi:"description"`
	DeviceId         pulumi.IntInput       `pulumi:"deviceId"`
	DeviceName       pulumi.StringInput    `pulumi:"deviceName"`
	DiskSizeMb       pulumi.IntInput       `pulumi:"diskSizeMb"`
	LocalContextData pulumi.StringInput    `pulumi:"localContextData"`
	MemoryMb         pulumi.IntInput       `pulumi:"memoryMb"`
	Name             pulumi.StringInput    `pulumi:"name"`
	PlatformId       pulumi.IntInput       `pulumi:"platformId"`
	PlatformSlug     pulumi.StringInput    `pulumi:"platformSlug"`
	PrimaryIp        pulumi.StringInput    `pulumi:"primaryIp"`
	PrimaryIp4       pulumi.StringInput    `pulumi:"primaryIp4"`
	PrimaryIp6       pulumi.StringInput    `pulumi:"primaryIp6"`
	RoleId           pulumi.IntInput       `pulumi:"roleId"`
	SiteId           pulumi.IntInput       `pulumi:"siteId"`
	Status           pulumi.StringInput    `pulumi:"status"`
	TagIds           pulumi.IntArrayInput  `pulumi:"tagIds"`
	TenantId         pulumi.IntInput       `pulumi:"tenantId"`
	Vcpus            pulumi.Float64Input   `pulumi:"vcpus"`
	VmId             pulumi.IntInput       `pulumi:"vmId"`
}

func (GetVirtualMachinesVmArgs) ElementType

func (GetVirtualMachinesVmArgs) ElementType() reflect.Type

func (GetVirtualMachinesVmArgs) ToGetVirtualMachinesVmOutput

func (i GetVirtualMachinesVmArgs) ToGetVirtualMachinesVmOutput() GetVirtualMachinesVmOutput

func (GetVirtualMachinesVmArgs) ToGetVirtualMachinesVmOutputWithContext

func (i GetVirtualMachinesVmArgs) ToGetVirtualMachinesVmOutputWithContext(ctx context.Context) GetVirtualMachinesVmOutput

type GetVirtualMachinesVmArray

type GetVirtualMachinesVmArray []GetVirtualMachinesVmInput

func (GetVirtualMachinesVmArray) ElementType

func (GetVirtualMachinesVmArray) ElementType() reflect.Type

func (GetVirtualMachinesVmArray) ToGetVirtualMachinesVmArrayOutput

func (i GetVirtualMachinesVmArray) ToGetVirtualMachinesVmArrayOutput() GetVirtualMachinesVmArrayOutput

func (GetVirtualMachinesVmArray) ToGetVirtualMachinesVmArrayOutputWithContext

func (i GetVirtualMachinesVmArray) ToGetVirtualMachinesVmArrayOutputWithContext(ctx context.Context) GetVirtualMachinesVmArrayOutput

type GetVirtualMachinesVmArrayInput

type GetVirtualMachinesVmArrayInput interface {
	pulumi.Input

	ToGetVirtualMachinesVmArrayOutput() GetVirtualMachinesVmArrayOutput
	ToGetVirtualMachinesVmArrayOutputWithContext(context.Context) GetVirtualMachinesVmArrayOutput
}

GetVirtualMachinesVmArrayInput is an input type that accepts GetVirtualMachinesVmArray and GetVirtualMachinesVmArrayOutput values. You can construct a concrete instance of `GetVirtualMachinesVmArrayInput` via:

GetVirtualMachinesVmArray{ GetVirtualMachinesVmArgs{...} }

type GetVirtualMachinesVmArrayOutput

type GetVirtualMachinesVmArrayOutput struct{ *pulumi.OutputState }

func (GetVirtualMachinesVmArrayOutput) ElementType

func (GetVirtualMachinesVmArrayOutput) Index

func (GetVirtualMachinesVmArrayOutput) ToGetVirtualMachinesVmArrayOutput

func (o GetVirtualMachinesVmArrayOutput) ToGetVirtualMachinesVmArrayOutput() GetVirtualMachinesVmArrayOutput

func (GetVirtualMachinesVmArrayOutput) ToGetVirtualMachinesVmArrayOutputWithContext

func (o GetVirtualMachinesVmArrayOutput) ToGetVirtualMachinesVmArrayOutputWithContext(ctx context.Context) GetVirtualMachinesVmArrayOutput

type GetVirtualMachinesVmInput

type GetVirtualMachinesVmInput interface {
	pulumi.Input

	ToGetVirtualMachinesVmOutput() GetVirtualMachinesVmOutput
	ToGetVirtualMachinesVmOutputWithContext(context.Context) GetVirtualMachinesVmOutput
}

GetVirtualMachinesVmInput is an input type that accepts GetVirtualMachinesVmArgs and GetVirtualMachinesVmOutput values. You can construct a concrete instance of `GetVirtualMachinesVmInput` via:

GetVirtualMachinesVmArgs{...}

type GetVirtualMachinesVmOutput

type GetVirtualMachinesVmOutput struct{ *pulumi.OutputState }

func (GetVirtualMachinesVmOutput) ClusterId

func (GetVirtualMachinesVmOutput) Comments

func (GetVirtualMachinesVmOutput) ConfigContext

func (GetVirtualMachinesVmOutput) CustomFields

func (GetVirtualMachinesVmOutput) Description

func (GetVirtualMachinesVmOutput) DeviceId

func (GetVirtualMachinesVmOutput) DeviceName

func (GetVirtualMachinesVmOutput) DiskSizeMb

func (GetVirtualMachinesVmOutput) ElementType

func (GetVirtualMachinesVmOutput) ElementType() reflect.Type

func (GetVirtualMachinesVmOutput) LocalContextData

func (o GetVirtualMachinesVmOutput) LocalContextData() pulumi.StringOutput

func (GetVirtualMachinesVmOutput) MemoryMb

func (GetVirtualMachinesVmOutput) Name

func (GetVirtualMachinesVmOutput) PlatformId

func (GetVirtualMachinesVmOutput) PlatformSlug

func (GetVirtualMachinesVmOutput) PrimaryIp

func (GetVirtualMachinesVmOutput) PrimaryIp4

func (GetVirtualMachinesVmOutput) PrimaryIp6

func (GetVirtualMachinesVmOutput) RoleId

func (GetVirtualMachinesVmOutput) SiteId

func (GetVirtualMachinesVmOutput) Status

func (GetVirtualMachinesVmOutput) TagIds

func (GetVirtualMachinesVmOutput) TenantId

func (GetVirtualMachinesVmOutput) ToGetVirtualMachinesVmOutput

func (o GetVirtualMachinesVmOutput) ToGetVirtualMachinesVmOutput() GetVirtualMachinesVmOutput

func (GetVirtualMachinesVmOutput) ToGetVirtualMachinesVmOutputWithContext

func (o GetVirtualMachinesVmOutput) ToGetVirtualMachinesVmOutputWithContext(ctx context.Context) GetVirtualMachinesVmOutput

func (GetVirtualMachinesVmOutput) Vcpus

func (GetVirtualMachinesVmOutput) VmId

type Interface

type Interface struct {
	pulumi.CustomResourceState

	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Defaults to `true`.
	Enabled    pulumi.BoolPtrOutput   `pulumi:"enabled"`
	MacAddress pulumi.StringPtrOutput `pulumi:"macAddress"`
	// Valid values are `access`, `tagged` and `tagged-all`.
	Mode        pulumi.StringPtrOutput   `pulumi:"mode"`
	Mtu         pulumi.IntPtrOutput      `pulumi:"mtu"`
	Name        pulumi.StringOutput      `pulumi:"name"`
	TaggedVlans pulumi.IntArrayOutput    `pulumi:"taggedVlans"`
	Tags        pulumi.StringArrayOutput `pulumi:"tags"`
	TagsAlls    pulumi.StringArrayOutput `pulumi:"tagsAlls"`
	// Deprecated: This attribute is not supported by netbox any longer. It will be removed in future versions of this provider.
	Type             pulumi.StringPtrOutput `pulumi:"type"`
	UntaggedVlan     pulumi.IntPtrOutput    `pulumi:"untaggedVlan"`
	VirtualMachineId pulumi.IntOutput       `pulumi:"virtualMachineId"`
}

From the [official documentation](https://docs.netbox.dev/en/stable/features/virtualization/#interfaces):

> Virtual machine interfaces behave similarly to device interfaces, and can be assigned to VRFs, and may have IP addresses, VLANs, and services attached to them. However, given their virtual nature, they lack properties pertaining to physical attributes. For example, VM interfaces do not have a physical type and cannot have cables attached to them.

func GetInterface

func GetInterface(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InterfaceState, opts ...pulumi.ResourceOption) (*Interface, error)

GetInterface gets an existing Interface resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewInterface

func NewInterface(ctx *pulumi.Context,
	name string, args *InterfaceArgs, opts ...pulumi.ResourceOption) (*Interface, error)

NewInterface registers a new resource with the given unique name, arguments, and options.

func (*Interface) ElementType

func (*Interface) ElementType() reflect.Type

func (*Interface) ToInterfaceOutput

func (i *Interface) ToInterfaceOutput() InterfaceOutput

func (*Interface) ToInterfaceOutputWithContext

func (i *Interface) ToInterfaceOutputWithContext(ctx context.Context) InterfaceOutput

type InterfaceArgs

type InterfaceArgs struct {
	Description pulumi.StringPtrInput
	// Defaults to `true`.
	Enabled    pulumi.BoolPtrInput
	MacAddress pulumi.StringPtrInput
	// Valid values are `access`, `tagged` and `tagged-all`.
	Mode        pulumi.StringPtrInput
	Mtu         pulumi.IntPtrInput
	Name        pulumi.StringPtrInput
	TaggedVlans pulumi.IntArrayInput
	Tags        pulumi.StringArrayInput
	// Deprecated: This attribute is not supported by netbox any longer. It will be removed in future versions of this provider.
	Type             pulumi.StringPtrInput
	UntaggedVlan     pulumi.IntPtrInput
	VirtualMachineId pulumi.IntInput
}

The set of arguments for constructing a Interface resource.

func (InterfaceArgs) ElementType

func (InterfaceArgs) ElementType() reflect.Type

type InterfaceArray

type InterfaceArray []InterfaceInput

func (InterfaceArray) ElementType

func (InterfaceArray) ElementType() reflect.Type

func (InterfaceArray) ToInterfaceArrayOutput

func (i InterfaceArray) ToInterfaceArrayOutput() InterfaceArrayOutput

func (InterfaceArray) ToInterfaceArrayOutputWithContext

func (i InterfaceArray) ToInterfaceArrayOutputWithContext(ctx context.Context) InterfaceArrayOutput

type InterfaceArrayInput

type InterfaceArrayInput interface {
	pulumi.Input

	ToInterfaceArrayOutput() InterfaceArrayOutput
	ToInterfaceArrayOutputWithContext(context.Context) InterfaceArrayOutput
}

InterfaceArrayInput is an input type that accepts InterfaceArray and InterfaceArrayOutput values. You can construct a concrete instance of `InterfaceArrayInput` via:

InterfaceArray{ InterfaceArgs{...} }

type InterfaceArrayOutput

type InterfaceArrayOutput struct{ *pulumi.OutputState }

func (InterfaceArrayOutput) ElementType

func (InterfaceArrayOutput) ElementType() reflect.Type

func (InterfaceArrayOutput) Index

func (InterfaceArrayOutput) ToInterfaceArrayOutput

func (o InterfaceArrayOutput) ToInterfaceArrayOutput() InterfaceArrayOutput

func (InterfaceArrayOutput) ToInterfaceArrayOutputWithContext

func (o InterfaceArrayOutput) ToInterfaceArrayOutputWithContext(ctx context.Context) InterfaceArrayOutput

type InterfaceInput

type InterfaceInput interface {
	pulumi.Input

	ToInterfaceOutput() InterfaceOutput
	ToInterfaceOutputWithContext(ctx context.Context) InterfaceOutput
}

type InterfaceMap

type InterfaceMap map[string]InterfaceInput

func (InterfaceMap) ElementType

func (InterfaceMap) ElementType() reflect.Type

func (InterfaceMap) ToInterfaceMapOutput

func (i InterfaceMap) ToInterfaceMapOutput() InterfaceMapOutput

func (InterfaceMap) ToInterfaceMapOutputWithContext

func (i InterfaceMap) ToInterfaceMapOutputWithContext(ctx context.Context) InterfaceMapOutput

type InterfaceMapInput

type InterfaceMapInput interface {
	pulumi.Input

	ToInterfaceMapOutput() InterfaceMapOutput
	ToInterfaceMapOutputWithContext(context.Context) InterfaceMapOutput
}

InterfaceMapInput is an input type that accepts InterfaceMap and InterfaceMapOutput values. You can construct a concrete instance of `InterfaceMapInput` via:

InterfaceMap{ "key": InterfaceArgs{...} }

type InterfaceMapOutput

type InterfaceMapOutput struct{ *pulumi.OutputState }

func (InterfaceMapOutput) ElementType

func (InterfaceMapOutput) ElementType() reflect.Type

func (InterfaceMapOutput) MapIndex

func (InterfaceMapOutput) ToInterfaceMapOutput

func (o InterfaceMapOutput) ToInterfaceMapOutput() InterfaceMapOutput

func (InterfaceMapOutput) ToInterfaceMapOutputWithContext

func (o InterfaceMapOutput) ToInterfaceMapOutputWithContext(ctx context.Context) InterfaceMapOutput

type InterfaceOutput

type InterfaceOutput struct{ *pulumi.OutputState }

func (InterfaceOutput) Description

func (o InterfaceOutput) Description() pulumi.StringPtrOutput

func (InterfaceOutput) ElementType

func (InterfaceOutput) ElementType() reflect.Type

func (InterfaceOutput) Enabled

func (o InterfaceOutput) Enabled() pulumi.BoolPtrOutput

Defaults to `true`.

func (InterfaceOutput) MacAddress

func (o InterfaceOutput) MacAddress() pulumi.StringPtrOutput

func (InterfaceOutput) Mode

Valid values are `access`, `tagged` and `tagged-all`.

func (InterfaceOutput) Mtu

func (InterfaceOutput) Name

func (InterfaceOutput) TaggedVlans

func (o InterfaceOutput) TaggedVlans() pulumi.IntArrayOutput

func (InterfaceOutput) Tags

func (InterfaceOutput) TagsAlls

func (InterfaceOutput) ToInterfaceOutput

func (o InterfaceOutput) ToInterfaceOutput() InterfaceOutput

func (InterfaceOutput) ToInterfaceOutputWithContext

func (o InterfaceOutput) ToInterfaceOutputWithContext(ctx context.Context) InterfaceOutput

func (InterfaceOutput) Type deprecated

Deprecated: This attribute is not supported by netbox any longer. It will be removed in future versions of this provider.

func (InterfaceOutput) UntaggedVlan

func (o InterfaceOutput) UntaggedVlan() pulumi.IntPtrOutput

func (InterfaceOutput) VirtualMachineId

func (o InterfaceOutput) VirtualMachineId() pulumi.IntOutput

type InterfaceState

type InterfaceState struct {
	Description pulumi.StringPtrInput
	// Defaults to `true`.
	Enabled    pulumi.BoolPtrInput
	MacAddress pulumi.StringPtrInput
	// Valid values are `access`, `tagged` and `tagged-all`.
	Mode        pulumi.StringPtrInput
	Mtu         pulumi.IntPtrInput
	Name        pulumi.StringPtrInput
	TaggedVlans pulumi.IntArrayInput
	Tags        pulumi.StringArrayInput
	TagsAlls    pulumi.StringArrayInput
	// Deprecated: This attribute is not supported by netbox any longer. It will be removed in future versions of this provider.
	Type             pulumi.StringPtrInput
	UntaggedVlan     pulumi.IntPtrInput
	VirtualMachineId pulumi.IntPtrInput
}

func (InterfaceState) ElementType

func (InterfaceState) ElementType() reflect.Type

type LookupClusterArgs

type LookupClusterArgs struct {
	ClusterGroupId *int `pulumi:"clusterGroupId"`
	// At least one of `name`, `siteId` or `id` must be given.
	Id *string `pulumi:"id"`
	// At least one of `name`, `siteId` or `id` must be given.
	Name *string `pulumi:"name"`
	// At least one of `name`, `siteId` or `id` must be given.
	SiteId *int `pulumi:"siteId"`
}

A collection of arguments for invoking getCluster.

type LookupClusterGroupArgs

type LookupClusterGroupArgs struct {
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getClusterGroup.

type LookupClusterGroupOutputArgs

type LookupClusterGroupOutputArgs struct {
	Name pulumi.StringInput `pulumi:"name"`
}

A collection of arguments for invoking getClusterGroup.

func (LookupClusterGroupOutputArgs) ElementType

type LookupClusterGroupResult

type LookupClusterGroupResult struct {
	ClusterGroupId int `pulumi:"clusterGroupId"`
	// The provider-assigned unique ID for this managed resource.
	Id   string `pulumi:"id"`
	Name string `pulumi:"name"`
}

A collection of values returned by getClusterGroup.

func LookupClusterGroup

func LookupClusterGroup(ctx *pulumi.Context, args *LookupClusterGroupArgs, opts ...pulumi.InvokeOption) (*LookupClusterGroupResult, error)

## Example Usage

```go package main

import (

"github.com/NatzkaLabsOpenSource/pulumi-netbox/sdk/go/netbox/virt"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := virt.LookupClusterGroup(ctx, &virt.LookupClusterGroupArgs{
			Name: "dc-west",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupClusterGroupResultOutput

type LookupClusterGroupResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getClusterGroup.

func (LookupClusterGroupResultOutput) ClusterGroupId

func (o LookupClusterGroupResultOutput) ClusterGroupId() pulumi.IntOutput

func (LookupClusterGroupResultOutput) ElementType

func (LookupClusterGroupResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupClusterGroupResultOutput) Name

func (LookupClusterGroupResultOutput) ToLookupClusterGroupResultOutput

func (o LookupClusterGroupResultOutput) ToLookupClusterGroupResultOutput() LookupClusterGroupResultOutput

func (LookupClusterGroupResultOutput) ToLookupClusterGroupResultOutputWithContext

func (o LookupClusterGroupResultOutput) ToLookupClusterGroupResultOutputWithContext(ctx context.Context) LookupClusterGroupResultOutput

type LookupClusterOutputArgs

type LookupClusterOutputArgs struct {
	ClusterGroupId pulumi.IntPtrInput `pulumi:"clusterGroupId"`
	// At least one of `name`, `siteId` or `id` must be given.
	Id pulumi.StringPtrInput `pulumi:"id"`
	// At least one of `name`, `siteId` or `id` must be given.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// At least one of `name`, `siteId` or `id` must be given.
	SiteId pulumi.IntPtrInput `pulumi:"siteId"`
}

A collection of arguments for invoking getCluster.

func (LookupClusterOutputArgs) ElementType

func (LookupClusterOutputArgs) ElementType() reflect.Type

type LookupClusterResult

type LookupClusterResult struct {
	ClusterGroupId int               `pulumi:"clusterGroupId"`
	ClusterId      int               `pulumi:"clusterId"`
	ClusterTypeId  int               `pulumi:"clusterTypeId"`
	Comments       string            `pulumi:"comments"`
	CustomFields   map[string]string `pulumi:"customFields"`
	Description    string            `pulumi:"description"`
	// At least one of `name`, `siteId` or `id` must be given.
	Id         string `pulumi:"id"`
	LocationId int    `pulumi:"locationId"`
	// At least one of `name`, `siteId` or `id` must be given.
	Name        *string `pulumi:"name"`
	RegionId    int     `pulumi:"regionId"`
	ScopeId     int     `pulumi:"scopeId"`
	ScopeType   string  `pulumi:"scopeType"`
	SiteGroupId int     `pulumi:"siteGroupId"`
	// At least one of `name`, `siteId` or `id` must be given.
	SiteId int      `pulumi:"siteId"`
	Tags   []string `pulumi:"tags"`
}

A collection of values returned by getCluster.

func LookupCluster

func LookupCluster(ctx *pulumi.Context, args *LookupClusterArgs, opts ...pulumi.InvokeOption) (*LookupClusterResult, error)

## Example Usage

```go package main

import (

"github.com/NatzkaLabsOpenSource/pulumi-netbox/sdk/go/netbox/virt"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := virt.LookupCluster(ctx, &virt.LookupClusterArgs{
			Name: pulumi.StringRef("vmw-cluster-01"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupClusterResultOutput

type LookupClusterResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getCluster.

func (LookupClusterResultOutput) ClusterGroupId

func (o LookupClusterResultOutput) ClusterGroupId() pulumi.IntOutput

func (LookupClusterResultOutput) ClusterId

func (LookupClusterResultOutput) ClusterTypeId

func (o LookupClusterResultOutput) ClusterTypeId() pulumi.IntOutput

func (LookupClusterResultOutput) Comments

func (LookupClusterResultOutput) CustomFields

func (LookupClusterResultOutput) Description

func (LookupClusterResultOutput) ElementType

func (LookupClusterResultOutput) ElementType() reflect.Type

func (LookupClusterResultOutput) Id

At least one of `name`, `siteId` or `id` must be given.

func (LookupClusterResultOutput) LocationId

func (LookupClusterResultOutput) Name

At least one of `name`, `siteId` or `id` must be given.

func (LookupClusterResultOutput) RegionId

func (LookupClusterResultOutput) ScopeId

func (LookupClusterResultOutput) ScopeType

func (LookupClusterResultOutput) SiteGroupId

func (o LookupClusterResultOutput) SiteGroupId() pulumi.IntOutput

func (LookupClusterResultOutput) SiteId

At least one of `name`, `siteId` or `id` must be given.

func (LookupClusterResultOutput) Tags

func (LookupClusterResultOutput) ToLookupClusterResultOutput

func (o LookupClusterResultOutput) ToLookupClusterResultOutput() LookupClusterResultOutput

func (LookupClusterResultOutput) ToLookupClusterResultOutputWithContext

func (o LookupClusterResultOutput) ToLookupClusterResultOutputWithContext(ctx context.Context) LookupClusterResultOutput

type LookupClusterTypeArgs

type LookupClusterTypeArgs struct {
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getClusterType.

type LookupClusterTypeOutputArgs

type LookupClusterTypeOutputArgs struct {
	Name pulumi.StringInput `pulumi:"name"`
}

A collection of arguments for invoking getClusterType.

func (LookupClusterTypeOutputArgs) ElementType

type LookupClusterTypeResult

type LookupClusterTypeResult struct {
	ClusterTypeId int `pulumi:"clusterTypeId"`
	// The provider-assigned unique ID for this managed resource.
	Id   string `pulumi:"id"`
	Name string `pulumi:"name"`
}

A collection of values returned by getClusterType.

type LookupClusterTypeResultOutput

type LookupClusterTypeResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getClusterType.

func (LookupClusterTypeResultOutput) ClusterTypeId

func (LookupClusterTypeResultOutput) ElementType

func (LookupClusterTypeResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupClusterTypeResultOutput) Name

func (LookupClusterTypeResultOutput) ToLookupClusterTypeResultOutput

func (o LookupClusterTypeResultOutput) ToLookupClusterTypeResultOutput() LookupClusterTypeResultOutput

func (LookupClusterTypeResultOutput) ToLookupClusterTypeResultOutputWithContext

func (o LookupClusterTypeResultOutput) ToLookupClusterTypeResultOutputWithContext(ctx context.Context) LookupClusterTypeResultOutput

type PrimaryIp

type PrimaryIp struct {
	pulumi.CustomResourceState

	IpAddressId pulumi.IntOutput `pulumi:"ipAddressId"`
	// Defaults to `4`.
	IpAddressVersion pulumi.IntPtrOutput `pulumi:"ipAddressVersion"`
	VirtualMachineId pulumi.IntOutput    `pulumi:"virtualMachineId"`
}

This resource is used to define the primary IP for a given virtual machine. The primary IP is reflected in the Virtual machine Netbox UI, which identifies the Primary IPv4 and IPv6 addresses.

func GetPrimaryIp

func GetPrimaryIp(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PrimaryIpState, opts ...pulumi.ResourceOption) (*PrimaryIp, error)

GetPrimaryIp gets an existing PrimaryIp resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewPrimaryIp

func NewPrimaryIp(ctx *pulumi.Context,
	name string, args *PrimaryIpArgs, opts ...pulumi.ResourceOption) (*PrimaryIp, error)

NewPrimaryIp registers a new resource with the given unique name, arguments, and options.

func (*PrimaryIp) ElementType

func (*PrimaryIp) ElementType() reflect.Type

func (*PrimaryIp) ToPrimaryIpOutput

func (i *PrimaryIp) ToPrimaryIpOutput() PrimaryIpOutput

func (*PrimaryIp) ToPrimaryIpOutputWithContext

func (i *PrimaryIp) ToPrimaryIpOutputWithContext(ctx context.Context) PrimaryIpOutput

type PrimaryIpArgs

type PrimaryIpArgs struct {
	IpAddressId pulumi.IntInput
	// Defaults to `4`.
	IpAddressVersion pulumi.IntPtrInput
	VirtualMachineId pulumi.IntInput
}

The set of arguments for constructing a PrimaryIp resource.

func (PrimaryIpArgs) ElementType

func (PrimaryIpArgs) ElementType() reflect.Type

type PrimaryIpArray

type PrimaryIpArray []PrimaryIpInput

func (PrimaryIpArray) ElementType

func (PrimaryIpArray) ElementType() reflect.Type

func (PrimaryIpArray) ToPrimaryIpArrayOutput

func (i PrimaryIpArray) ToPrimaryIpArrayOutput() PrimaryIpArrayOutput

func (PrimaryIpArray) ToPrimaryIpArrayOutputWithContext

func (i PrimaryIpArray) ToPrimaryIpArrayOutputWithContext(ctx context.Context) PrimaryIpArrayOutput

type PrimaryIpArrayInput

type PrimaryIpArrayInput interface {
	pulumi.Input

	ToPrimaryIpArrayOutput() PrimaryIpArrayOutput
	ToPrimaryIpArrayOutputWithContext(context.Context) PrimaryIpArrayOutput
}

PrimaryIpArrayInput is an input type that accepts PrimaryIpArray and PrimaryIpArrayOutput values. You can construct a concrete instance of `PrimaryIpArrayInput` via:

PrimaryIpArray{ PrimaryIpArgs{...} }

type PrimaryIpArrayOutput

type PrimaryIpArrayOutput struct{ *pulumi.OutputState }

func (PrimaryIpArrayOutput) ElementType

func (PrimaryIpArrayOutput) ElementType() reflect.Type

func (PrimaryIpArrayOutput) Index

func (PrimaryIpArrayOutput) ToPrimaryIpArrayOutput

func (o PrimaryIpArrayOutput) ToPrimaryIpArrayOutput() PrimaryIpArrayOutput

func (PrimaryIpArrayOutput) ToPrimaryIpArrayOutputWithContext

func (o PrimaryIpArrayOutput) ToPrimaryIpArrayOutputWithContext(ctx context.Context) PrimaryIpArrayOutput

type PrimaryIpInput

type PrimaryIpInput interface {
	pulumi.Input

	ToPrimaryIpOutput() PrimaryIpOutput
	ToPrimaryIpOutputWithContext(ctx context.Context) PrimaryIpOutput
}

type PrimaryIpMap

type PrimaryIpMap map[string]PrimaryIpInput

func (PrimaryIpMap) ElementType

func (PrimaryIpMap) ElementType() reflect.Type

func (PrimaryIpMap) ToPrimaryIpMapOutput

func (i PrimaryIpMap) ToPrimaryIpMapOutput() PrimaryIpMapOutput

func (PrimaryIpMap) ToPrimaryIpMapOutputWithContext

func (i PrimaryIpMap) ToPrimaryIpMapOutputWithContext(ctx context.Context) PrimaryIpMapOutput

type PrimaryIpMapInput

type PrimaryIpMapInput interface {
	pulumi.Input

	ToPrimaryIpMapOutput() PrimaryIpMapOutput
	ToPrimaryIpMapOutputWithContext(context.Context) PrimaryIpMapOutput
}

PrimaryIpMapInput is an input type that accepts PrimaryIpMap and PrimaryIpMapOutput values. You can construct a concrete instance of `PrimaryIpMapInput` via:

PrimaryIpMap{ "key": PrimaryIpArgs{...} }

type PrimaryIpMapOutput

type PrimaryIpMapOutput struct{ *pulumi.OutputState }

func (PrimaryIpMapOutput) ElementType

func (PrimaryIpMapOutput) ElementType() reflect.Type

func (PrimaryIpMapOutput) MapIndex

func (PrimaryIpMapOutput) ToPrimaryIpMapOutput

func (o PrimaryIpMapOutput) ToPrimaryIpMapOutput() PrimaryIpMapOutput

func (PrimaryIpMapOutput) ToPrimaryIpMapOutputWithContext

func (o PrimaryIpMapOutput) ToPrimaryIpMapOutputWithContext(ctx context.Context) PrimaryIpMapOutput

type PrimaryIpOutput

type PrimaryIpOutput struct{ *pulumi.OutputState }

func (PrimaryIpOutput) ElementType

func (PrimaryIpOutput) ElementType() reflect.Type

func (PrimaryIpOutput) IpAddressId

func (o PrimaryIpOutput) IpAddressId() pulumi.IntOutput

func (PrimaryIpOutput) IpAddressVersion

func (o PrimaryIpOutput) IpAddressVersion() pulumi.IntPtrOutput

Defaults to `4`.

func (PrimaryIpOutput) ToPrimaryIpOutput

func (o PrimaryIpOutput) ToPrimaryIpOutput() PrimaryIpOutput

func (PrimaryIpOutput) ToPrimaryIpOutputWithContext

func (o PrimaryIpOutput) ToPrimaryIpOutputWithContext(ctx context.Context) PrimaryIpOutput

func (PrimaryIpOutput) VirtualMachineId

func (o PrimaryIpOutput) VirtualMachineId() pulumi.IntOutput

type PrimaryIpState

type PrimaryIpState struct {
	IpAddressId pulumi.IntPtrInput
	// Defaults to `4`.
	IpAddressVersion pulumi.IntPtrInput
	VirtualMachineId pulumi.IntPtrInput
}

func (PrimaryIpState) ElementType

func (PrimaryIpState) ElementType() reflect.Type

type VirtualDisk

type VirtualDisk struct {
	pulumi.CustomResourceState

	CustomFields     pulumi.StringMapOutput   `pulumi:"customFields"`
	Description      pulumi.StringPtrOutput   `pulumi:"description"`
	Name             pulumi.StringOutput      `pulumi:"name"`
	SizeMb           pulumi.IntOutput         `pulumi:"sizeMb"`
	Tags             pulumi.StringArrayOutput `pulumi:"tags"`
	TagsAlls         pulumi.StringArrayOutput `pulumi:"tagsAlls"`
	VirtualMachineId pulumi.IntOutput         `pulumi:"virtualMachineId"`
}

From the [official documentation](https://docs.netbox.dev/en/stable/models/virtualization/virtualdisk/):

> A virtual disk is used to model discrete virtual hard disks assigned to virtual machines.

## Example Usage

```go package main

import (

"github.com/NatzkaLabsOpenSource/pulumi-netbox/sdk/go/netbox/virt"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Assumes vmw-cluster-01 exists in Netbox
		vmwCluster01, err := virt.LookupCluster(ctx, &virt.LookupClusterArgs{
			Name: pulumi.StringRef("vmw-cluster-01"),
		}, nil)
		if err != nil {
			return err
		}
		baseVm, err := virt.NewVirtualMachine(ctx, "base_vm", &virt.VirtualMachineArgs{
			ClusterId: pulumi.String(vmwCluster01.Id),
			Name:      pulumi.String("myvm-1"),
		})
		if err != nil {
			return err
		}
		_, err = virt.NewVirtualDisk(ctx, "example", &virt.VirtualDiskArgs{
			Name:             pulumi.String("disk-01"),
			Description:      pulumi.String("Main disk"),
			SizeMb:           pulumi.Int(50),
			VirtualMachineId: baseVm.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetVirtualDisk

func GetVirtualDisk(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *VirtualDiskState, opts ...pulumi.ResourceOption) (*VirtualDisk, error)

GetVirtualDisk gets an existing VirtualDisk resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewVirtualDisk

func NewVirtualDisk(ctx *pulumi.Context,
	name string, args *VirtualDiskArgs, opts ...pulumi.ResourceOption) (*VirtualDisk, error)

NewVirtualDisk registers a new resource with the given unique name, arguments, and options.

func (*VirtualDisk) ElementType

func (*VirtualDisk) ElementType() reflect.Type

func (*VirtualDisk) ToVirtualDiskOutput

func (i *VirtualDisk) ToVirtualDiskOutput() VirtualDiskOutput

func (*VirtualDisk) ToVirtualDiskOutputWithContext

func (i *VirtualDisk) ToVirtualDiskOutputWithContext(ctx context.Context) VirtualDiskOutput

type VirtualDiskArgs

type VirtualDiskArgs struct {
	CustomFields     pulumi.StringMapInput
	Description      pulumi.StringPtrInput
	Name             pulumi.StringPtrInput
	SizeMb           pulumi.IntInput
	Tags             pulumi.StringArrayInput
	VirtualMachineId pulumi.IntInput
}

The set of arguments for constructing a VirtualDisk resource.

func (VirtualDiskArgs) ElementType

func (VirtualDiskArgs) ElementType() reflect.Type

type VirtualDiskArray

type VirtualDiskArray []VirtualDiskInput

func (VirtualDiskArray) ElementType

func (VirtualDiskArray) ElementType() reflect.Type

func (VirtualDiskArray) ToVirtualDiskArrayOutput

func (i VirtualDiskArray) ToVirtualDiskArrayOutput() VirtualDiskArrayOutput

func (VirtualDiskArray) ToVirtualDiskArrayOutputWithContext

func (i VirtualDiskArray) ToVirtualDiskArrayOutputWithContext(ctx context.Context) VirtualDiskArrayOutput

type VirtualDiskArrayInput

type VirtualDiskArrayInput interface {
	pulumi.Input

	ToVirtualDiskArrayOutput() VirtualDiskArrayOutput
	ToVirtualDiskArrayOutputWithContext(context.Context) VirtualDiskArrayOutput
}

VirtualDiskArrayInput is an input type that accepts VirtualDiskArray and VirtualDiskArrayOutput values. You can construct a concrete instance of `VirtualDiskArrayInput` via:

VirtualDiskArray{ VirtualDiskArgs{...} }

type VirtualDiskArrayOutput

type VirtualDiskArrayOutput struct{ *pulumi.OutputState }

func (VirtualDiskArrayOutput) ElementType

func (VirtualDiskArrayOutput) ElementType() reflect.Type

func (VirtualDiskArrayOutput) Index

func (VirtualDiskArrayOutput) ToVirtualDiskArrayOutput

func (o VirtualDiskArrayOutput) ToVirtualDiskArrayOutput() VirtualDiskArrayOutput

func (VirtualDiskArrayOutput) ToVirtualDiskArrayOutputWithContext

func (o VirtualDiskArrayOutput) ToVirtualDiskArrayOutputWithContext(ctx context.Context) VirtualDiskArrayOutput

type VirtualDiskInput

type VirtualDiskInput interface {
	pulumi.Input

	ToVirtualDiskOutput() VirtualDiskOutput
	ToVirtualDiskOutputWithContext(ctx context.Context) VirtualDiskOutput
}

type VirtualDiskMap

type VirtualDiskMap map[string]VirtualDiskInput

func (VirtualDiskMap) ElementType

func (VirtualDiskMap) ElementType() reflect.Type

func (VirtualDiskMap) ToVirtualDiskMapOutput

func (i VirtualDiskMap) ToVirtualDiskMapOutput() VirtualDiskMapOutput

func (VirtualDiskMap) ToVirtualDiskMapOutputWithContext

func (i VirtualDiskMap) ToVirtualDiskMapOutputWithContext(ctx context.Context) VirtualDiskMapOutput

type VirtualDiskMapInput

type VirtualDiskMapInput interface {
	pulumi.Input

	ToVirtualDiskMapOutput() VirtualDiskMapOutput
	ToVirtualDiskMapOutputWithContext(context.Context) VirtualDiskMapOutput
}

VirtualDiskMapInput is an input type that accepts VirtualDiskMap and VirtualDiskMapOutput values. You can construct a concrete instance of `VirtualDiskMapInput` via:

VirtualDiskMap{ "key": VirtualDiskArgs{...} }

type VirtualDiskMapOutput

type VirtualDiskMapOutput struct{ *pulumi.OutputState }

func (VirtualDiskMapOutput) ElementType

func (VirtualDiskMapOutput) ElementType() reflect.Type

func (VirtualDiskMapOutput) MapIndex

func (VirtualDiskMapOutput) ToVirtualDiskMapOutput

func (o VirtualDiskMapOutput) ToVirtualDiskMapOutput() VirtualDiskMapOutput

func (VirtualDiskMapOutput) ToVirtualDiskMapOutputWithContext

func (o VirtualDiskMapOutput) ToVirtualDiskMapOutputWithContext(ctx context.Context) VirtualDiskMapOutput

type VirtualDiskOutput

type VirtualDiskOutput struct{ *pulumi.OutputState }

func (VirtualDiskOutput) CustomFields

func (o VirtualDiskOutput) CustomFields() pulumi.StringMapOutput

func (VirtualDiskOutput) Description

func (o VirtualDiskOutput) Description() pulumi.StringPtrOutput

func (VirtualDiskOutput) ElementType

func (VirtualDiskOutput) ElementType() reflect.Type

func (VirtualDiskOutput) Name

func (VirtualDiskOutput) SizeMb

func (o VirtualDiskOutput) SizeMb() pulumi.IntOutput

func (VirtualDiskOutput) Tags

func (VirtualDiskOutput) TagsAlls

func (VirtualDiskOutput) ToVirtualDiskOutput

func (o VirtualDiskOutput) ToVirtualDiskOutput() VirtualDiskOutput

func (VirtualDiskOutput) ToVirtualDiskOutputWithContext

func (o VirtualDiskOutput) ToVirtualDiskOutputWithContext(ctx context.Context) VirtualDiskOutput

func (VirtualDiskOutput) VirtualMachineId

func (o VirtualDiskOutput) VirtualMachineId() pulumi.IntOutput

type VirtualDiskState

type VirtualDiskState struct {
	CustomFields     pulumi.StringMapInput
	Description      pulumi.StringPtrInput
	Name             pulumi.StringPtrInput
	SizeMb           pulumi.IntPtrInput
	Tags             pulumi.StringArrayInput
	TagsAlls         pulumi.StringArrayInput
	VirtualMachineId pulumi.IntPtrInput
}

func (VirtualDiskState) ElementType

func (VirtualDiskState) ElementType() reflect.Type

type VirtualMachine

type VirtualMachine struct {
	pulumi.CustomResourceState

	// At least one of `siteId` or `clusterId` must be given.
	ClusterId    pulumi.IntPtrOutput    `pulumi:"clusterId"`
	Comments     pulumi.StringPtrOutput `pulumi:"comments"`
	CustomFields pulumi.StringMapOutput `pulumi:"customFields"`
	Description  pulumi.StringPtrOutput `pulumi:"description"`
	DeviceId     pulumi.IntPtrOutput    `pulumi:"deviceId"`
	DiskSizeMb   pulumi.IntOutput       `pulumi:"diskSizeMb"`
	// This is best managed through the use of `jsonencode` and a map of settings.
	LocalContextData pulumi.StringPtrOutput `pulumi:"localContextData"`
	MemoryMb         pulumi.IntPtrOutput    `pulumi:"memoryMb"`
	Name             pulumi.StringOutput    `pulumi:"name"`
	PlatformId       pulumi.IntPtrOutput    `pulumi:"platformId"`
	PrimaryIpv4      pulumi.IntOutput       `pulumi:"primaryIpv4"`
	PrimaryIpv6      pulumi.IntOutput       `pulumi:"primaryIpv6"`
	RoleId           pulumi.IntPtrOutput    `pulumi:"roleId"`
	// At least one of `siteId` or `clusterId` must be given.
	SiteId pulumi.IntPtrOutput `pulumi:"siteId"`
	// Valid values are `offline`, `active`, `planned`, `staged`, `failed` and `decommissioning`. Defaults to `active`.
	Status   pulumi.StringPtrOutput   `pulumi:"status"`
	Tags     pulumi.StringArrayOutput `pulumi:"tags"`
	TagsAlls pulumi.StringArrayOutput `pulumi:"tagsAlls"`
	TenantId pulumi.IntPtrOutput      `pulumi:"tenantId"`
	Vcpus    pulumi.Float64PtrOutput  `pulumi:"vcpus"`
}

From the [official documentation](https://docs.netbox.dev/en/stable/features/virtualization/#virtual-machines):

> A virtual machine is a virtualized compute instance. These behave in NetBox very similarly to device objects, but without any physical attributes. For example, a VM may have interfaces assigned to it with IP addresses and VLANs, however its interfaces cannot be connected via cables (because they are virtual). Each VM may also define its compute, memory, and storage resources as well.

func GetVirtualMachine

func GetVirtualMachine(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *VirtualMachineState, opts ...pulumi.ResourceOption) (*VirtualMachine, error)

GetVirtualMachine gets an existing VirtualMachine resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewVirtualMachine

func NewVirtualMachine(ctx *pulumi.Context,
	name string, args *VirtualMachineArgs, opts ...pulumi.ResourceOption) (*VirtualMachine, error)

NewVirtualMachine registers a new resource with the given unique name, arguments, and options.

func (*VirtualMachine) ElementType

func (*VirtualMachine) ElementType() reflect.Type

func (*VirtualMachine) ToVirtualMachineOutput

func (i *VirtualMachine) ToVirtualMachineOutput() VirtualMachineOutput

func (*VirtualMachine) ToVirtualMachineOutputWithContext

func (i *VirtualMachine) ToVirtualMachineOutputWithContext(ctx context.Context) VirtualMachineOutput

type VirtualMachineArgs

type VirtualMachineArgs struct {
	// At least one of `siteId` or `clusterId` must be given.
	ClusterId    pulumi.IntPtrInput
	Comments     pulumi.StringPtrInput
	CustomFields pulumi.StringMapInput
	Description  pulumi.StringPtrInput
	DeviceId     pulumi.IntPtrInput
	DiskSizeMb   pulumi.IntPtrInput
	// This is best managed through the use of `jsonencode` and a map of settings.
	LocalContextData pulumi.StringPtrInput
	MemoryMb         pulumi.IntPtrInput
	Name             pulumi.StringPtrInput
	PlatformId       pulumi.IntPtrInput
	RoleId           pulumi.IntPtrInput
	// At least one of `siteId` or `clusterId` must be given.
	SiteId pulumi.IntPtrInput
	// Valid values are `offline`, `active`, `planned`, `staged`, `failed` and `decommissioning`. Defaults to `active`.
	Status   pulumi.StringPtrInput
	Tags     pulumi.StringArrayInput
	TenantId pulumi.IntPtrInput
	Vcpus    pulumi.Float64PtrInput
}

The set of arguments for constructing a VirtualMachine resource.

func (VirtualMachineArgs) ElementType

func (VirtualMachineArgs) ElementType() reflect.Type

type VirtualMachineArray

type VirtualMachineArray []VirtualMachineInput

func (VirtualMachineArray) ElementType

func (VirtualMachineArray) ElementType() reflect.Type

func (VirtualMachineArray) ToVirtualMachineArrayOutput

func (i VirtualMachineArray) ToVirtualMachineArrayOutput() VirtualMachineArrayOutput

func (VirtualMachineArray) ToVirtualMachineArrayOutputWithContext

func (i VirtualMachineArray) ToVirtualMachineArrayOutputWithContext(ctx context.Context) VirtualMachineArrayOutput

type VirtualMachineArrayInput

type VirtualMachineArrayInput interface {
	pulumi.Input

	ToVirtualMachineArrayOutput() VirtualMachineArrayOutput
	ToVirtualMachineArrayOutputWithContext(context.Context) VirtualMachineArrayOutput
}

VirtualMachineArrayInput is an input type that accepts VirtualMachineArray and VirtualMachineArrayOutput values. You can construct a concrete instance of `VirtualMachineArrayInput` via:

VirtualMachineArray{ VirtualMachineArgs{...} }

type VirtualMachineArrayOutput

type VirtualMachineArrayOutput struct{ *pulumi.OutputState }

func (VirtualMachineArrayOutput) ElementType

func (VirtualMachineArrayOutput) ElementType() reflect.Type

func (VirtualMachineArrayOutput) Index

func (VirtualMachineArrayOutput) ToVirtualMachineArrayOutput

func (o VirtualMachineArrayOutput) ToVirtualMachineArrayOutput() VirtualMachineArrayOutput

func (VirtualMachineArrayOutput) ToVirtualMachineArrayOutputWithContext

func (o VirtualMachineArrayOutput) ToVirtualMachineArrayOutputWithContext(ctx context.Context) VirtualMachineArrayOutput

type VirtualMachineInput

type VirtualMachineInput interface {
	pulumi.Input

	ToVirtualMachineOutput() VirtualMachineOutput
	ToVirtualMachineOutputWithContext(ctx context.Context) VirtualMachineOutput
}

type VirtualMachineMap

type VirtualMachineMap map[string]VirtualMachineInput

func (VirtualMachineMap) ElementType

func (VirtualMachineMap) ElementType() reflect.Type

func (VirtualMachineMap) ToVirtualMachineMapOutput

func (i VirtualMachineMap) ToVirtualMachineMapOutput() VirtualMachineMapOutput

func (VirtualMachineMap) ToVirtualMachineMapOutputWithContext

func (i VirtualMachineMap) ToVirtualMachineMapOutputWithContext(ctx context.Context) VirtualMachineMapOutput

type VirtualMachineMapInput

type VirtualMachineMapInput interface {
	pulumi.Input

	ToVirtualMachineMapOutput() VirtualMachineMapOutput
	ToVirtualMachineMapOutputWithContext(context.Context) VirtualMachineMapOutput
}

VirtualMachineMapInput is an input type that accepts VirtualMachineMap and VirtualMachineMapOutput values. You can construct a concrete instance of `VirtualMachineMapInput` via:

VirtualMachineMap{ "key": VirtualMachineArgs{...} }

type VirtualMachineMapOutput

type VirtualMachineMapOutput struct{ *pulumi.OutputState }

func (VirtualMachineMapOutput) ElementType

func (VirtualMachineMapOutput) ElementType() reflect.Type

func (VirtualMachineMapOutput) MapIndex

func (VirtualMachineMapOutput) ToVirtualMachineMapOutput

func (o VirtualMachineMapOutput) ToVirtualMachineMapOutput() VirtualMachineMapOutput

func (VirtualMachineMapOutput) ToVirtualMachineMapOutputWithContext

func (o VirtualMachineMapOutput) ToVirtualMachineMapOutputWithContext(ctx context.Context) VirtualMachineMapOutput

type VirtualMachineOutput

type VirtualMachineOutput struct{ *pulumi.OutputState }

func (VirtualMachineOutput) ClusterId

At least one of `siteId` or `clusterId` must be given.

func (VirtualMachineOutput) Comments

func (VirtualMachineOutput) CustomFields

func (o VirtualMachineOutput) CustomFields() pulumi.StringMapOutput

func (VirtualMachineOutput) Description

func (VirtualMachineOutput) DeviceId

func (VirtualMachineOutput) DiskSizeMb

func (o VirtualMachineOutput) DiskSizeMb() pulumi.IntOutput

func (VirtualMachineOutput) ElementType

func (VirtualMachineOutput) ElementType() reflect.Type

func (VirtualMachineOutput) LocalContextData

func (o VirtualMachineOutput) LocalContextData() pulumi.StringPtrOutput

This is best managed through the use of `jsonencode` and a map of settings.

func (VirtualMachineOutput) MemoryMb

func (VirtualMachineOutput) Name

func (VirtualMachineOutput) PlatformId

func (o VirtualMachineOutput) PlatformId() pulumi.IntPtrOutput

func (VirtualMachineOutput) PrimaryIpv4

func (o VirtualMachineOutput) PrimaryIpv4() pulumi.IntOutput

func (VirtualMachineOutput) PrimaryIpv6

func (o VirtualMachineOutput) PrimaryIpv6() pulumi.IntOutput

func (VirtualMachineOutput) RoleId

func (VirtualMachineOutput) SiteId

At least one of `siteId` or `clusterId` must be given.

func (VirtualMachineOutput) Status

Valid values are `offline`, `active`, `planned`, `staged`, `failed` and `decommissioning`. Defaults to `active`.

func (VirtualMachineOutput) Tags

func (VirtualMachineOutput) TagsAlls

func (VirtualMachineOutput) TenantId

func (VirtualMachineOutput) ToVirtualMachineOutput

func (o VirtualMachineOutput) ToVirtualMachineOutput() VirtualMachineOutput

func (VirtualMachineOutput) ToVirtualMachineOutputWithContext

func (o VirtualMachineOutput) ToVirtualMachineOutputWithContext(ctx context.Context) VirtualMachineOutput

func (VirtualMachineOutput) Vcpus

type VirtualMachineState

type VirtualMachineState struct {
	// At least one of `siteId` or `clusterId` must be given.
	ClusterId    pulumi.IntPtrInput
	Comments     pulumi.StringPtrInput
	CustomFields pulumi.StringMapInput
	Description  pulumi.StringPtrInput
	DeviceId     pulumi.IntPtrInput
	DiskSizeMb   pulumi.IntPtrInput
	// This is best managed through the use of `jsonencode` and a map of settings.
	LocalContextData pulumi.StringPtrInput
	MemoryMb         pulumi.IntPtrInput
	Name             pulumi.StringPtrInput
	PlatformId       pulumi.IntPtrInput
	PrimaryIpv4      pulumi.IntPtrInput
	PrimaryIpv6      pulumi.IntPtrInput
	RoleId           pulumi.IntPtrInput
	// At least one of `siteId` or `clusterId` must be given.
	SiteId pulumi.IntPtrInput
	// Valid values are `offline`, `active`, `planned`, `staged`, `failed` and `decommissioning`. Defaults to `active`.
	Status   pulumi.StringPtrInput
	Tags     pulumi.StringArrayInput
	TagsAlls pulumi.StringArrayInput
	TenantId pulumi.IntPtrInput
	Vcpus    pulumi.Float64PtrInput
}

func (VirtualMachineState) ElementType

func (VirtualMachineState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL