xenorchestra

package
v1.5.2 Latest Latest
Warning

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

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

Documentation

Overview

A Pulumi package for creating and managing Xen Orchestra cloud resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Acl

type Acl struct {
	pulumi.CustomResourceState

	// Must be one of admin, operator, viewer. See the [Xen orchestra docs](https://xen-orchestra.com/docs/acls.html) on ACLs for more details.
	Action pulumi.StringOutput `pulumi:"action"`
	// The id of the object that will be able to be used by the subject.
	Object pulumi.StringOutput `pulumi:"object"`
	// The uuid of the user account that the acl will apply to.
	Subject pulumi.StringOutput `pulumi:"subject"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		pool, err := xenorchestra.GetXoaPool(ctx, &xenorchestra.GetXoaPoolArgs{
			NameLabel: "Your pool",
		}, nil)
		if err != nil {
			return err
		}
		user, err := xenorchestra.GetXoaUser(ctx, &xenorchestra.GetXoaUserArgs{
			Username: "my-username",
		}, nil)
		if err != nil {
			return err
		}
		_, err = xenorchestra.NewAcl(ctx, "acl", &xenorchestra.AclArgs{
			Subject: pulumi.String(user.Id),
			Object:  pulumi.String(pool.Id),
			Action:  pulumi.String("operator"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetAcl

func GetAcl(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AclState, opts ...pulumi.ResourceOption) (*Acl, error)

GetAcl gets an existing Acl 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 NewAcl

func NewAcl(ctx *pulumi.Context,
	name string, args *AclArgs, opts ...pulumi.ResourceOption) (*Acl, error)

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

func (*Acl) ElementType

func (*Acl) ElementType() reflect.Type

func (*Acl) ToAclOutput

func (i *Acl) ToAclOutput() AclOutput

func (*Acl) ToAclOutputWithContext

func (i *Acl) ToAclOutputWithContext(ctx context.Context) AclOutput

type AclArgs

type AclArgs struct {
	// Must be one of admin, operator, viewer. See the [Xen orchestra docs](https://xen-orchestra.com/docs/acls.html) on ACLs for more details.
	Action pulumi.StringInput
	// The id of the object that will be able to be used by the subject.
	Object pulumi.StringInput
	// The uuid of the user account that the acl will apply to.
	Subject pulumi.StringInput
}

The set of arguments for constructing a Acl resource.

func (AclArgs) ElementType

func (AclArgs) ElementType() reflect.Type

type AclArray

type AclArray []AclInput

func (AclArray) ElementType

func (AclArray) ElementType() reflect.Type

func (AclArray) ToAclArrayOutput

func (i AclArray) ToAclArrayOutput() AclArrayOutput

func (AclArray) ToAclArrayOutputWithContext

func (i AclArray) ToAclArrayOutputWithContext(ctx context.Context) AclArrayOutput

type AclArrayInput

type AclArrayInput interface {
	pulumi.Input

	ToAclArrayOutput() AclArrayOutput
	ToAclArrayOutputWithContext(context.Context) AclArrayOutput
}

AclArrayInput is an input type that accepts AclArray and AclArrayOutput values. You can construct a concrete instance of `AclArrayInput` via:

AclArray{ AclArgs{...} }

type AclArrayOutput

type AclArrayOutput struct{ *pulumi.OutputState }

func (AclArrayOutput) ElementType

func (AclArrayOutput) ElementType() reflect.Type

func (AclArrayOutput) Index

func (AclArrayOutput) ToAclArrayOutput

func (o AclArrayOutput) ToAclArrayOutput() AclArrayOutput

func (AclArrayOutput) ToAclArrayOutputWithContext

func (o AclArrayOutput) ToAclArrayOutputWithContext(ctx context.Context) AclArrayOutput

type AclInput

type AclInput interface {
	pulumi.Input

	ToAclOutput() AclOutput
	ToAclOutputWithContext(ctx context.Context) AclOutput
}

type AclMap

type AclMap map[string]AclInput

func (AclMap) ElementType

func (AclMap) ElementType() reflect.Type

func (AclMap) ToAclMapOutput

func (i AclMap) ToAclMapOutput() AclMapOutput

func (AclMap) ToAclMapOutputWithContext

func (i AclMap) ToAclMapOutputWithContext(ctx context.Context) AclMapOutput

type AclMapInput

type AclMapInput interface {
	pulumi.Input

	ToAclMapOutput() AclMapOutput
	ToAclMapOutputWithContext(context.Context) AclMapOutput
}

AclMapInput is an input type that accepts AclMap and AclMapOutput values. You can construct a concrete instance of `AclMapInput` via:

AclMap{ "key": AclArgs{...} }

type AclMapOutput

type AclMapOutput struct{ *pulumi.OutputState }

func (AclMapOutput) ElementType

func (AclMapOutput) ElementType() reflect.Type

func (AclMapOutput) MapIndex

func (o AclMapOutput) MapIndex(k pulumi.StringInput) AclOutput

func (AclMapOutput) ToAclMapOutput

func (o AclMapOutput) ToAclMapOutput() AclMapOutput

func (AclMapOutput) ToAclMapOutputWithContext

func (o AclMapOutput) ToAclMapOutputWithContext(ctx context.Context) AclMapOutput

type AclOutput

type AclOutput struct{ *pulumi.OutputState }

func (AclOutput) Action

func (o AclOutput) Action() pulumi.StringOutput

Must be one of admin, operator, viewer. See the [Xen orchestra docs](https://xen-orchestra.com/docs/acls.html) on ACLs for more details.

func (AclOutput) ElementType

func (AclOutput) ElementType() reflect.Type

func (AclOutput) Object

func (o AclOutput) Object() pulumi.StringOutput

The id of the object that will be able to be used by the subject.

func (AclOutput) Subject

func (o AclOutput) Subject() pulumi.StringOutput

The uuid of the user account that the acl will apply to.

func (AclOutput) ToAclOutput

func (o AclOutput) ToAclOutput() AclOutput

func (AclOutput) ToAclOutputWithContext

func (o AclOutput) ToAclOutputWithContext(ctx context.Context) AclOutput

type AclState

type AclState struct {
	// Must be one of admin, operator, viewer. See the [Xen orchestra docs](https://xen-orchestra.com/docs/acls.html) on ACLs for more details.
	Action pulumi.StringPtrInput
	// The id of the object that will be able to be used by the subject.
	Object pulumi.StringPtrInput
	// The uuid of the user account that the acl will apply to.
	Subject pulumi.StringPtrInput
}

func (AclState) ElementType

func (AclState) ElementType() reflect.Type

type BondedNetwork deprecated

type BondedNetwork struct {
	pulumi.CustomResourceState

	Automatic pulumi.BoolPtrOutput `pulumi:"automatic"`
	// The bond mode that should be used for this network.
	BondMode pulumi.StringPtrOutput `pulumi:"bondMode"`
	// This argument controls whether the network should enforce VIF locking. This defaults to `false` which means that no filtering rules are applied.
	DefaultIsLocked pulumi.BoolPtrOutput `pulumi:"defaultIsLocked"`
	// The MTU of the network. Defaults to `1500` if unspecified.
	Mtu             pulumi.IntPtrOutput    `pulumi:"mtu"`
	NameDescription pulumi.StringPtrOutput `pulumi:"nameDescription"`
	// The name label of the network.
	NameLabel pulumi.StringOutput `pulumi:"nameLabel"`
	// The pifs (uuid) that should be used for this network.
	PifIds pulumi.StringArrayOutput `pulumi:"pifIds"`
	// The pool id that this network should belong to.
	PoolId pulumi.StringOutput `pulumi:"poolId"`
}

A resource for managing Bonded Xen Orchestra networks. See the XCP-ng [networking docs](https://xcp-ng.org/docs/networking.html) for more details.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		host1, err := xenorchestra.GetXoaHost(ctx, &xenorchestra.GetXoaHostArgs{
			NameLabel: "Your host",
		}, nil)
		if err != nil {
			return err
		}
		eth1, err := xenorchestra.GetXoaPif(ctx, &xenorchestra.GetXoaPifArgs{
			Device: "eth1",
			Vlan:   -1,
			HostId: pulumi.StringRef(host1.Id),
		}, nil)
		if err != nil {
			return err
		}
		eth2, err := xenorchestra.GetXoaPif(ctx, &xenorchestra.GetXoaPifArgs{
			Device: "eth2",
			Vlan:   -1,
			HostId: pulumi.StringRef(host1.Id),
		}, nil)
		if err != nil {
			return err
		}
		// Create a bonded network from normal PIFs
		_, err = xenorchestra.NewXoaBondedNetwork(ctx, "network", &xenorchestra.XoaBondedNetworkArgs{
			NameLabel: pulumi.String("new network name"),
			BondMode:  pulumi.String("active-backup"),
			PoolId:    pulumi.String(host1.PoolId),
			PifIds: pulumi.StringArray{
				pulumi.String(eth1.Id),
				pulumi.String(eth2.Id),
			},
		})
		if err != nil {
			return err
		}
		// Create a bonded network from PIFs on VLANs
		eth1Vlan, err := xenorchestra.GetXoaPif(ctx, &xenorchestra.GetXoaPifArgs{
			Device: "eth1",
			Vlan:   15,
			HostId: pulumi.StringRef(host1.Id),
		}, nil)
		if err != nil {
			return err
		}
		eth2Vlan, err := xenorchestra.GetXoaPif(ctx, &xenorchestra.GetXoaPifArgs{
			Device: "eth2",
			Vlan:   15,
			HostId: pulumi.StringRef(host1.Id),
		}, nil)
		if err != nil {
			return err
		}
		// Create a bonded network from normal PIFs
		_, err = xenorchestra.NewXoaBondedNetwork(ctx, "network_vlan", &xenorchestra.XoaBondedNetworkArgs{
			NameLabel: pulumi.String("new network name"),
			BondMode:  pulumi.String("active-backup"),
			PoolId:    pulumi.String(host1.PoolId),
			PifIds: pulumi.StringArray{
				pulumi.String(eth1Vlan.Id),
				pulumi.String(eth2Vlan.Id),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

Deprecated: xenorchestra.index/bondednetwork.BondedNetwork has been deprecated in favor of xenorchestra.index/xoabondednetwork.XoaBondedNetwork

func GetBondedNetwork

func GetBondedNetwork(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *BondedNetworkState, opts ...pulumi.ResourceOption) (*BondedNetwork, error)

GetBondedNetwork gets an existing BondedNetwork 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 NewBondedNetwork

func NewBondedNetwork(ctx *pulumi.Context,
	name string, args *BondedNetworkArgs, opts ...pulumi.ResourceOption) (*BondedNetwork, error)

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

func (*BondedNetwork) ElementType

func (*BondedNetwork) ElementType() reflect.Type

func (*BondedNetwork) ToBondedNetworkOutput

func (i *BondedNetwork) ToBondedNetworkOutput() BondedNetworkOutput

func (*BondedNetwork) ToBondedNetworkOutputWithContext

func (i *BondedNetwork) ToBondedNetworkOutputWithContext(ctx context.Context) BondedNetworkOutput

type BondedNetworkArgs

type BondedNetworkArgs struct {
	Automatic pulumi.BoolPtrInput
	// The bond mode that should be used for this network.
	BondMode pulumi.StringPtrInput
	// This argument controls whether the network should enforce VIF locking. This defaults to `false` which means that no filtering rules are applied.
	DefaultIsLocked pulumi.BoolPtrInput
	// The MTU of the network. Defaults to `1500` if unspecified.
	Mtu             pulumi.IntPtrInput
	NameDescription pulumi.StringPtrInput
	// The name label of the network.
	NameLabel pulumi.StringInput
	// The pifs (uuid) that should be used for this network.
	PifIds pulumi.StringArrayInput
	// The pool id that this network should belong to.
	PoolId pulumi.StringInput
}

The set of arguments for constructing a BondedNetwork resource.

func (BondedNetworkArgs) ElementType

func (BondedNetworkArgs) ElementType() reflect.Type

type BondedNetworkArray

type BondedNetworkArray []BondedNetworkInput

func (BondedNetworkArray) ElementType

func (BondedNetworkArray) ElementType() reflect.Type

func (BondedNetworkArray) ToBondedNetworkArrayOutput

func (i BondedNetworkArray) ToBondedNetworkArrayOutput() BondedNetworkArrayOutput

func (BondedNetworkArray) ToBondedNetworkArrayOutputWithContext

func (i BondedNetworkArray) ToBondedNetworkArrayOutputWithContext(ctx context.Context) BondedNetworkArrayOutput

type BondedNetworkArrayInput

type BondedNetworkArrayInput interface {
	pulumi.Input

	ToBondedNetworkArrayOutput() BondedNetworkArrayOutput
	ToBondedNetworkArrayOutputWithContext(context.Context) BondedNetworkArrayOutput
}

BondedNetworkArrayInput is an input type that accepts BondedNetworkArray and BondedNetworkArrayOutput values. You can construct a concrete instance of `BondedNetworkArrayInput` via:

BondedNetworkArray{ BondedNetworkArgs{...} }

type BondedNetworkArrayOutput

type BondedNetworkArrayOutput struct{ *pulumi.OutputState }

func (BondedNetworkArrayOutput) ElementType

func (BondedNetworkArrayOutput) ElementType() reflect.Type

func (BondedNetworkArrayOutput) Index

func (BondedNetworkArrayOutput) ToBondedNetworkArrayOutput

func (o BondedNetworkArrayOutput) ToBondedNetworkArrayOutput() BondedNetworkArrayOutput

func (BondedNetworkArrayOutput) ToBondedNetworkArrayOutputWithContext

func (o BondedNetworkArrayOutput) ToBondedNetworkArrayOutputWithContext(ctx context.Context) BondedNetworkArrayOutput

type BondedNetworkInput

type BondedNetworkInput interface {
	pulumi.Input

	ToBondedNetworkOutput() BondedNetworkOutput
	ToBondedNetworkOutputWithContext(ctx context.Context) BondedNetworkOutput
}

type BondedNetworkMap

type BondedNetworkMap map[string]BondedNetworkInput

func (BondedNetworkMap) ElementType

func (BondedNetworkMap) ElementType() reflect.Type

func (BondedNetworkMap) ToBondedNetworkMapOutput

func (i BondedNetworkMap) ToBondedNetworkMapOutput() BondedNetworkMapOutput

func (BondedNetworkMap) ToBondedNetworkMapOutputWithContext

func (i BondedNetworkMap) ToBondedNetworkMapOutputWithContext(ctx context.Context) BondedNetworkMapOutput

type BondedNetworkMapInput

type BondedNetworkMapInput interface {
	pulumi.Input

	ToBondedNetworkMapOutput() BondedNetworkMapOutput
	ToBondedNetworkMapOutputWithContext(context.Context) BondedNetworkMapOutput
}

BondedNetworkMapInput is an input type that accepts BondedNetworkMap and BondedNetworkMapOutput values. You can construct a concrete instance of `BondedNetworkMapInput` via:

BondedNetworkMap{ "key": BondedNetworkArgs{...} }

type BondedNetworkMapOutput

type BondedNetworkMapOutput struct{ *pulumi.OutputState }

func (BondedNetworkMapOutput) ElementType

func (BondedNetworkMapOutput) ElementType() reflect.Type

func (BondedNetworkMapOutput) MapIndex

func (BondedNetworkMapOutput) ToBondedNetworkMapOutput

func (o BondedNetworkMapOutput) ToBondedNetworkMapOutput() BondedNetworkMapOutput

func (BondedNetworkMapOutput) ToBondedNetworkMapOutputWithContext

func (o BondedNetworkMapOutput) ToBondedNetworkMapOutputWithContext(ctx context.Context) BondedNetworkMapOutput

type BondedNetworkOutput

type BondedNetworkOutput struct{ *pulumi.OutputState }

func (BondedNetworkOutput) Automatic

func (BondedNetworkOutput) BondMode

The bond mode that should be used for this network.

func (BondedNetworkOutput) DefaultIsLocked

func (o BondedNetworkOutput) DefaultIsLocked() pulumi.BoolPtrOutput

This argument controls whether the network should enforce VIF locking. This defaults to `false` which means that no filtering rules are applied.

func (BondedNetworkOutput) ElementType

func (BondedNetworkOutput) ElementType() reflect.Type

func (BondedNetworkOutput) Mtu

The MTU of the network. Defaults to `1500` if unspecified.

func (BondedNetworkOutput) NameDescription

func (o BondedNetworkOutput) NameDescription() pulumi.StringPtrOutput

func (BondedNetworkOutput) NameLabel

func (o BondedNetworkOutput) NameLabel() pulumi.StringOutput

The name label of the network.

func (BondedNetworkOutput) PifIds

The pifs (uuid) that should be used for this network.

func (BondedNetworkOutput) PoolId

The pool id that this network should belong to.

func (BondedNetworkOutput) ToBondedNetworkOutput

func (o BondedNetworkOutput) ToBondedNetworkOutput() BondedNetworkOutput

func (BondedNetworkOutput) ToBondedNetworkOutputWithContext

func (o BondedNetworkOutput) ToBondedNetworkOutputWithContext(ctx context.Context) BondedNetworkOutput

type BondedNetworkState

type BondedNetworkState struct {
	Automatic pulumi.BoolPtrInput
	// The bond mode that should be used for this network.
	BondMode pulumi.StringPtrInput
	// This argument controls whether the network should enforce VIF locking. This defaults to `false` which means that no filtering rules are applied.
	DefaultIsLocked pulumi.BoolPtrInput
	// The MTU of the network. Defaults to `1500` if unspecified.
	Mtu             pulumi.IntPtrInput
	NameDescription pulumi.StringPtrInput
	// The name label of the network.
	NameLabel pulumi.StringPtrInput
	// The pifs (uuid) that should be used for this network.
	PifIds pulumi.StringArrayInput
	// The pool id that this network should belong to.
	PoolId pulumi.StringPtrInput
}

func (BondedNetworkState) ElementType

func (BondedNetworkState) ElementType() reflect.Type

type CloudConfig

type CloudConfig struct {
	pulumi.CustomResourceState

	// The name of the cloud config.
	Name pulumi.StringOutput `pulumi:"name"`
	// The cloud init config. See the cloud init docs for more [information](https://cloudinit.readthedocs.io/en/latest/topics/examples.html).
	Template pulumi.StringOutput `pulumi:"template"`
}

Creates a Xen Orchestra cloud config resource.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		demo, err := xenorchestra.NewCloudConfig(ctx, "demo", &xenorchestra.CloudConfigArgs{
			Name: pulumi.String("cloud config name"),
			Template: pulumi.String(`#cloud-config

runcmd:

  • [ ls, -l, / ]
  • [ sh, -xc, "echo $(date) ': hello world!'" ]
  • [ sh, -c, echo "=========hello world'=========" ]
  • ls -l /root

`),

		})
		if err != nil {
			return err
		}
		_, err = xenorchestra.NewVm(ctx, "bar", &xenorchestra.VmArgs{
			CloudConfig: demo.Template,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetCloudConfig

func GetCloudConfig(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CloudConfigState, opts ...pulumi.ResourceOption) (*CloudConfig, error)

GetCloudConfig gets an existing CloudConfig 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 NewCloudConfig

func NewCloudConfig(ctx *pulumi.Context,
	name string, args *CloudConfigArgs, opts ...pulumi.ResourceOption) (*CloudConfig, error)

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

func (*CloudConfig) ElementType

func (*CloudConfig) ElementType() reflect.Type

func (*CloudConfig) ToCloudConfigOutput

func (i *CloudConfig) ToCloudConfigOutput() CloudConfigOutput

func (*CloudConfig) ToCloudConfigOutputWithContext

func (i *CloudConfig) ToCloudConfigOutputWithContext(ctx context.Context) CloudConfigOutput

type CloudConfigArgs

type CloudConfigArgs struct {
	// The name of the cloud config.
	Name pulumi.StringPtrInput
	// The cloud init config. See the cloud init docs for more [information](https://cloudinit.readthedocs.io/en/latest/topics/examples.html).
	Template pulumi.StringInput
}

The set of arguments for constructing a CloudConfig resource.

func (CloudConfigArgs) ElementType

func (CloudConfigArgs) ElementType() reflect.Type

type CloudConfigArray

type CloudConfigArray []CloudConfigInput

func (CloudConfigArray) ElementType

func (CloudConfigArray) ElementType() reflect.Type

func (CloudConfigArray) ToCloudConfigArrayOutput

func (i CloudConfigArray) ToCloudConfigArrayOutput() CloudConfigArrayOutput

func (CloudConfigArray) ToCloudConfigArrayOutputWithContext

func (i CloudConfigArray) ToCloudConfigArrayOutputWithContext(ctx context.Context) CloudConfigArrayOutput

type CloudConfigArrayInput

type CloudConfigArrayInput interface {
	pulumi.Input

	ToCloudConfigArrayOutput() CloudConfigArrayOutput
	ToCloudConfigArrayOutputWithContext(context.Context) CloudConfigArrayOutput
}

CloudConfigArrayInput is an input type that accepts CloudConfigArray and CloudConfigArrayOutput values. You can construct a concrete instance of `CloudConfigArrayInput` via:

CloudConfigArray{ CloudConfigArgs{...} }

type CloudConfigArrayOutput

type CloudConfigArrayOutput struct{ *pulumi.OutputState }

func (CloudConfigArrayOutput) ElementType

func (CloudConfigArrayOutput) ElementType() reflect.Type

func (CloudConfigArrayOutput) Index

func (CloudConfigArrayOutput) ToCloudConfigArrayOutput

func (o CloudConfigArrayOutput) ToCloudConfigArrayOutput() CloudConfigArrayOutput

func (CloudConfigArrayOutput) ToCloudConfigArrayOutputWithContext

func (o CloudConfigArrayOutput) ToCloudConfigArrayOutputWithContext(ctx context.Context) CloudConfigArrayOutput

type CloudConfigInput

type CloudConfigInput interface {
	pulumi.Input

	ToCloudConfigOutput() CloudConfigOutput
	ToCloudConfigOutputWithContext(ctx context.Context) CloudConfigOutput
}

type CloudConfigMap

type CloudConfigMap map[string]CloudConfigInput

func (CloudConfigMap) ElementType

func (CloudConfigMap) ElementType() reflect.Type

func (CloudConfigMap) ToCloudConfigMapOutput

func (i CloudConfigMap) ToCloudConfigMapOutput() CloudConfigMapOutput

func (CloudConfigMap) ToCloudConfigMapOutputWithContext

func (i CloudConfigMap) ToCloudConfigMapOutputWithContext(ctx context.Context) CloudConfigMapOutput

type CloudConfigMapInput

type CloudConfigMapInput interface {
	pulumi.Input

	ToCloudConfigMapOutput() CloudConfigMapOutput
	ToCloudConfigMapOutputWithContext(context.Context) CloudConfigMapOutput
}

CloudConfigMapInput is an input type that accepts CloudConfigMap and CloudConfigMapOutput values. You can construct a concrete instance of `CloudConfigMapInput` via:

CloudConfigMap{ "key": CloudConfigArgs{...} }

type CloudConfigMapOutput

type CloudConfigMapOutput struct{ *pulumi.OutputState }

func (CloudConfigMapOutput) ElementType

func (CloudConfigMapOutput) ElementType() reflect.Type

func (CloudConfigMapOutput) MapIndex

func (CloudConfigMapOutput) ToCloudConfigMapOutput

func (o CloudConfigMapOutput) ToCloudConfigMapOutput() CloudConfigMapOutput

func (CloudConfigMapOutput) ToCloudConfigMapOutputWithContext

func (o CloudConfigMapOutput) ToCloudConfigMapOutputWithContext(ctx context.Context) CloudConfigMapOutput

type CloudConfigOutput

type CloudConfigOutput struct{ *pulumi.OutputState }

func (CloudConfigOutput) ElementType

func (CloudConfigOutput) ElementType() reflect.Type

func (CloudConfigOutput) Name

The name of the cloud config.

func (CloudConfigOutput) Template

func (o CloudConfigOutput) Template() pulumi.StringOutput

The cloud init config. See the cloud init docs for more [information](https://cloudinit.readthedocs.io/en/latest/topics/examples.html).

func (CloudConfigOutput) ToCloudConfigOutput

func (o CloudConfigOutput) ToCloudConfigOutput() CloudConfigOutput

func (CloudConfigOutput) ToCloudConfigOutputWithContext

func (o CloudConfigOutput) ToCloudConfigOutputWithContext(ctx context.Context) CloudConfigOutput

type CloudConfigState

type CloudConfigState struct {
	// The name of the cloud config.
	Name pulumi.StringPtrInput
	// The cloud init config. See the cloud init docs for more [information](https://cloudinit.readthedocs.io/en/latest/topics/examples.html).
	Template pulumi.StringPtrInput
}

func (CloudConfigState) ElementType

func (CloudConfigState) ElementType() reflect.Type

type GetHostArgs

type GetHostArgs struct {
	// The name label of the host.
	NameLabel string `pulumi:"nameLabel"`
	// The tags (labels) applied to the given entity.
	Tags []string `pulumi:"tags"`
}

A collection of arguments for invoking getHost.

type GetHostOutputArgs

type GetHostOutputArgs struct {
	// The name label of the host.
	NameLabel pulumi.StringInput `pulumi:"nameLabel"`
	// The tags (labels) applied to the given entity.
	Tags pulumi.StringArrayInput `pulumi:"tags"`
}

A collection of arguments for invoking getHost.

func (GetHostOutputArgs) ElementType

func (GetHostOutputArgs) ElementType() reflect.Type

type GetHostResult

type GetHostResult struct {
	// CPU information about the host. The 'cores' key will contain the number of cpu cores and the 'sockets' key will contain the number of sockets.
	Cpus map[string]int `pulumi:"cpus"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The memory size of the host.
	Memory float64 `pulumi:"memory"`
	// The memory usage of the host.
	MemoryUsage float64 `pulumi:"memoryUsage"`
	// The name label of the host.
	NameLabel string `pulumi:"nameLabel"`
	// Id of the pool that the host belongs to.
	PoolId string `pulumi:"poolId"`
	// The tags (labels) applied to the given entity.
	Tags []string `pulumi:"tags"`
}

A collection of values returned by getHost.

func GetHost deprecated

func GetHost(ctx *pulumi.Context, args *GetHostArgs, opts ...pulumi.InvokeOption) (*GetHostResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		host1, err := xenorchestra.GetXoaHost(ctx, &xenorchestra.GetXoaHostArgs{
			NameLabel: "Your host",
		}, nil)
		if err != nil {
			return err
		}
		_, err = xenorchestra.NewVm(ctx, "node", &xenorchestra.VmArgs{
			AffinityHost: pulumi.String(host1.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

Deprecated: xenorchestra.index/gethost.getHost has been deprecated in favor of xenorchestra.index/getxoahost.getXoaHost

type GetHostResultOutput

type GetHostResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getHost.

func (GetHostResultOutput) Cpus

CPU information about the host. The 'cores' key will contain the number of cpu cores and the 'sockets' key will contain the number of sockets.

func (GetHostResultOutput) ElementType

func (GetHostResultOutput) ElementType() reflect.Type

func (GetHostResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetHostResultOutput) Memory

The memory size of the host.

func (GetHostResultOutput) MemoryUsage

func (o GetHostResultOutput) MemoryUsage() pulumi.Float64Output

The memory usage of the host.

func (GetHostResultOutput) NameLabel

func (o GetHostResultOutput) NameLabel() pulumi.StringOutput

The name label of the host.

func (GetHostResultOutput) PoolId

Id of the pool that the host belongs to.

func (GetHostResultOutput) Tags

The tags (labels) applied to the given entity.

func (GetHostResultOutput) ToGetHostResultOutput

func (o GetHostResultOutput) ToGetHostResultOutput() GetHostResultOutput

func (GetHostResultOutput) ToGetHostResultOutputWithContext

func (o GetHostResultOutput) ToGetHostResultOutputWithContext(ctx context.Context) GetHostResultOutput

type GetHostsArgs

type GetHostsArgs struct {
	// The pool id used to filter the resulting hosts by.
	PoolId string `pulumi:"poolId"`
	// The host field to sort the results by (id and nameLabel are supported).
	SortBy *string `pulumi:"sortBy"`
	// Valid options are `asc` or `desc` and sort order is applied to `sortBy` argument.
	SortOrder *string `pulumi:"sortOrder"`
	// The tags (labels) applied to the given entity.
	Tags []string `pulumi:"tags"`
}

A collection of arguments for invoking getHosts.

type GetHostsHost

type GetHostsHost struct {
	// CPU information about the host. The 'cores' key will contain the number of cpu cores and the 'sockets' key will contain the number of sockets.
	Cpus map[string]int `pulumi:"cpus"`
	Id   string         `pulumi:"id"`
	// The memory size of the host.
	Memory int `pulumi:"memory"`
	// The memory usage of the host.
	MemoryUsage int `pulumi:"memoryUsage"`
	// The name label of the host.
	NameLabel string `pulumi:"nameLabel"`
	// Id of the pool that the host belongs to.
	PoolId string `pulumi:"poolId"`
	// The tags (labels) applied to the given entity.
	Tags []string `pulumi:"tags"`
}

type GetHostsHostArgs

type GetHostsHostArgs struct {
	// CPU information about the host. The 'cores' key will contain the number of cpu cores and the 'sockets' key will contain the number of sockets.
	Cpus pulumi.IntMapInput `pulumi:"cpus"`
	Id   pulumi.StringInput `pulumi:"id"`
	// The memory size of the host.
	Memory pulumi.IntInput `pulumi:"memory"`
	// The memory usage of the host.
	MemoryUsage pulumi.IntInput `pulumi:"memoryUsage"`
	// The name label of the host.
	NameLabel pulumi.StringInput `pulumi:"nameLabel"`
	// Id of the pool that the host belongs to.
	PoolId pulumi.StringInput `pulumi:"poolId"`
	// The tags (labels) applied to the given entity.
	Tags pulumi.StringArrayInput `pulumi:"tags"`
}

func (GetHostsHostArgs) ElementType

func (GetHostsHostArgs) ElementType() reflect.Type

func (GetHostsHostArgs) ToGetHostsHostOutput

func (i GetHostsHostArgs) ToGetHostsHostOutput() GetHostsHostOutput

func (GetHostsHostArgs) ToGetHostsHostOutputWithContext

func (i GetHostsHostArgs) ToGetHostsHostOutputWithContext(ctx context.Context) GetHostsHostOutput

type GetHostsHostArray

type GetHostsHostArray []GetHostsHostInput

func (GetHostsHostArray) ElementType

func (GetHostsHostArray) ElementType() reflect.Type

func (GetHostsHostArray) ToGetHostsHostArrayOutput

func (i GetHostsHostArray) ToGetHostsHostArrayOutput() GetHostsHostArrayOutput

func (GetHostsHostArray) ToGetHostsHostArrayOutputWithContext

func (i GetHostsHostArray) ToGetHostsHostArrayOutputWithContext(ctx context.Context) GetHostsHostArrayOutput

type GetHostsHostArrayInput

type GetHostsHostArrayInput interface {
	pulumi.Input

	ToGetHostsHostArrayOutput() GetHostsHostArrayOutput
	ToGetHostsHostArrayOutputWithContext(context.Context) GetHostsHostArrayOutput
}

GetHostsHostArrayInput is an input type that accepts GetHostsHostArray and GetHostsHostArrayOutput values. You can construct a concrete instance of `GetHostsHostArrayInput` via:

GetHostsHostArray{ GetHostsHostArgs{...} }

type GetHostsHostArrayOutput

type GetHostsHostArrayOutput struct{ *pulumi.OutputState }

func (GetHostsHostArrayOutput) ElementType

func (GetHostsHostArrayOutput) ElementType() reflect.Type

func (GetHostsHostArrayOutput) Index

func (GetHostsHostArrayOutput) ToGetHostsHostArrayOutput

func (o GetHostsHostArrayOutput) ToGetHostsHostArrayOutput() GetHostsHostArrayOutput

func (GetHostsHostArrayOutput) ToGetHostsHostArrayOutputWithContext

func (o GetHostsHostArrayOutput) ToGetHostsHostArrayOutputWithContext(ctx context.Context) GetHostsHostArrayOutput

type GetHostsHostInput

type GetHostsHostInput interface {
	pulumi.Input

	ToGetHostsHostOutput() GetHostsHostOutput
	ToGetHostsHostOutputWithContext(context.Context) GetHostsHostOutput
}

GetHostsHostInput is an input type that accepts GetHostsHostArgs and GetHostsHostOutput values. You can construct a concrete instance of `GetHostsHostInput` via:

GetHostsHostArgs{...}

type GetHostsHostOutput

type GetHostsHostOutput struct{ *pulumi.OutputState }

func (GetHostsHostOutput) Cpus

CPU information about the host. The 'cores' key will contain the number of cpu cores and the 'sockets' key will contain the number of sockets.

func (GetHostsHostOutput) ElementType

func (GetHostsHostOutput) ElementType() reflect.Type

func (GetHostsHostOutput) Id

func (GetHostsHostOutput) Memory

func (o GetHostsHostOutput) Memory() pulumi.IntOutput

The memory size of the host.

func (GetHostsHostOutput) MemoryUsage

func (o GetHostsHostOutput) MemoryUsage() pulumi.IntOutput

The memory usage of the host.

func (GetHostsHostOutput) NameLabel

func (o GetHostsHostOutput) NameLabel() pulumi.StringOutput

The name label of the host.

func (GetHostsHostOutput) PoolId

Id of the pool that the host belongs to.

func (GetHostsHostOutput) Tags

The tags (labels) applied to the given entity.

func (GetHostsHostOutput) ToGetHostsHostOutput

func (o GetHostsHostOutput) ToGetHostsHostOutput() GetHostsHostOutput

func (GetHostsHostOutput) ToGetHostsHostOutputWithContext

func (o GetHostsHostOutput) ToGetHostsHostOutputWithContext(ctx context.Context) GetHostsHostOutput

type GetHostsOutputArgs

type GetHostsOutputArgs struct {
	// The pool id used to filter the resulting hosts by.
	PoolId pulumi.StringInput `pulumi:"poolId"`
	// The host field to sort the results by (id and nameLabel are supported).
	SortBy pulumi.StringPtrInput `pulumi:"sortBy"`
	// Valid options are `asc` or `desc` and sort order is applied to `sortBy` argument.
	SortOrder pulumi.StringPtrInput `pulumi:"sortOrder"`
	// The tags (labels) applied to the given entity.
	Tags pulumi.StringArrayInput `pulumi:"tags"`
}

A collection of arguments for invoking getHosts.

func (GetHostsOutputArgs) ElementType

func (GetHostsOutputArgs) ElementType() reflect.Type

type GetHostsResult

type GetHostsResult struct {
	// The resulting hosts after applying the argument filtering.
	Hosts []GetHostsHost `pulumi:"hosts"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The primary host of the pool.
	Master string `pulumi:"master"`
	// The pool id used to filter the resulting hosts by.
	PoolId string `pulumi:"poolId"`
	// The host field to sort the results by (id and nameLabel are supported).
	SortBy *string `pulumi:"sortBy"`
	// Valid options are `asc` or `desc` and sort order is applied to `sortBy` argument.
	SortOrder *string `pulumi:"sortOrder"`
	// The tags (labels) applied to the given entity.
	Tags []string `pulumi:"tags"`
}

A collection of values returned by getHosts.

func GetHosts deprecated

func GetHosts(ctx *pulumi.Context, args *GetHostsArgs, opts ...pulumi.InvokeOption) (*GetHostsResult, error)

Use this data source to filter Xenorchestra hosts by certain criteria (name_label, tags) for use in other resources.

Deprecated: xenorchestra.index/gethosts.getHosts has been deprecated in favor of xenorchestra.index/getxoahosts.getXoaHosts

type GetHostsResultOutput

type GetHostsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getHosts.

func (GetHostsResultOutput) ElementType

func (GetHostsResultOutput) ElementType() reflect.Type

func (GetHostsResultOutput) Hosts

The resulting hosts after applying the argument filtering.

func (GetHostsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetHostsResultOutput) Master

The primary host of the pool.

func (GetHostsResultOutput) PoolId

The pool id used to filter the resulting hosts by.

func (GetHostsResultOutput) SortBy

The host field to sort the results by (id and nameLabel are supported).

func (GetHostsResultOutput) SortOrder

Valid options are `asc` or `desc` and sort order is applied to `sortBy` argument.

func (GetHostsResultOutput) Tags

The tags (labels) applied to the given entity.

func (GetHostsResultOutput) ToGetHostsResultOutput

func (o GetHostsResultOutput) ToGetHostsResultOutput() GetHostsResultOutput

func (GetHostsResultOutput) ToGetHostsResultOutputWithContext

func (o GetHostsResultOutput) ToGetHostsResultOutputWithContext(ctx context.Context) GetHostsResultOutput

type GetPifArgs

type GetPifArgs struct {
	// The name of the network device. Examples include eth0, eth1, etc. See `ifconfig` for possible devices.
	Device string `pulumi:"device"`
	// The ID of the host that the PIF belongs to.
	HostId *string `pulumi:"hostId"`
	// The VLAN the PIF belongs to.
	Vlan int `pulumi:"vlan"`
}

A collection of arguments for invoking getPif.

type GetPifOutputArgs

type GetPifOutputArgs struct {
	// The name of the network device. Examples include eth0, eth1, etc. See `ifconfig` for possible devices.
	Device pulumi.StringInput `pulumi:"device"`
	// The ID of the host that the PIF belongs to.
	HostId pulumi.StringPtrInput `pulumi:"hostId"`
	// The VLAN the PIF belongs to.
	Vlan pulumi.IntInput `pulumi:"vlan"`
}

A collection of arguments for invoking getPif.

func (GetPifOutputArgs) ElementType

func (GetPifOutputArgs) ElementType() reflect.Type

type GetPifResult

type GetPifResult struct {
	// If the PIF is attached to the network.
	Attached bool `pulumi:"attached"`
	// The name of the network device. Examples include eth0, eth1, etc. See `ifconfig` for possible devices.
	Device string `pulumi:"device"`
	// The host the PIF is associated with.
	Host string `pulumi:"host"`
	// The ID of the host that the PIF belongs to.
	HostId string `pulumi:"hostId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The network the PIF is associated with.
	Network string `pulumi:"network"`
	// The pool the PIF is associated with.
	PoolId string `pulumi:"poolId"`
	// The uuid of the PIF.
	Uuid string `pulumi:"uuid"`
	// The VLAN the PIF belongs to.
	Vlan int `pulumi:"vlan"`
}

A collection of values returned by getPif.

func GetPif deprecated

func GetPif(ctx *pulumi.Context, args *GetPifArgs, opts ...pulumi.InvokeOption) (*GetPifResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		eth0, err := xenorchestra.GetXoaPif(ctx, &xenorchestra.GetXoaPifArgs{
			Device: "eth0",
			Vlan:   -1,
		}, nil)
		if err != nil {
			return err
		}
		_, err = xenorchestra.NewVm(ctx, "demo-vm", &xenorchestra.VmArgs{
			Networks: xenorchestra.VmNetworkArray{
				&xenorchestra.VmNetworkArgs{
					NetworkId: pulumi.String(eth0.Network),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

Deprecated: xenorchestra.index/getpif.getPif has been deprecated in favor of xenorchestra.index/getxoapif.getXoaPif

type GetPifResultOutput

type GetPifResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getPif.

func GetPifOutput

func GetPifOutput(ctx *pulumi.Context, args GetPifOutputArgs, opts ...pulumi.InvokeOption) GetPifResultOutput

func (GetPifResultOutput) Attached

func (o GetPifResultOutput) Attached() pulumi.BoolOutput

If the PIF is attached to the network.

func (GetPifResultOutput) Device

The name of the network device. Examples include eth0, eth1, etc. See `ifconfig` for possible devices.

func (GetPifResultOutput) ElementType

func (GetPifResultOutput) ElementType() reflect.Type

func (GetPifResultOutput) Host

The host the PIF is associated with.

func (GetPifResultOutput) HostId

The ID of the host that the PIF belongs to.

func (GetPifResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetPifResultOutput) Network

The network the PIF is associated with.

func (GetPifResultOutput) PoolId

The pool the PIF is associated with.

func (GetPifResultOutput) ToGetPifResultOutput

func (o GetPifResultOutput) ToGetPifResultOutput() GetPifResultOutput

func (GetPifResultOutput) ToGetPifResultOutputWithContext

func (o GetPifResultOutput) ToGetPifResultOutputWithContext(ctx context.Context) GetPifResultOutput

func (GetPifResultOutput) Uuid

The uuid of the PIF.

func (GetPifResultOutput) Vlan

The VLAN the PIF belongs to.

type GetPoolArgs

type GetPoolArgs struct {
	// The nameLabel of the pool to look up.
	NameLabel string `pulumi:"nameLabel"`
}

A collection of arguments for invoking getPool.

type GetPoolOutputArgs

type GetPoolOutputArgs struct {
	// The nameLabel of the pool to look up.
	NameLabel pulumi.StringInput `pulumi:"nameLabel"`
}

A collection of arguments for invoking getPool.

func (GetPoolOutputArgs) ElementType

func (GetPoolOutputArgs) ElementType() reflect.Type

type GetPoolResult

type GetPoolResult struct {
	// CPU information about the pool. The 'cores' key will contain the number of cpu cores and the 'sockets' key will contain the number of sockets.
	Cpus map[string]string `pulumi:"cpus"`
	// The description of the pool.
	Description string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The id of the primary instance in the pool.
	Master string `pulumi:"master"`
	// The nameLabel of the pool to look up.
	NameLabel string `pulumi:"nameLabel"`
}

A collection of values returned by getPool.

func GetPool deprecated

func GetPool(ctx *pulumi.Context, args *GetPoolArgs, opts ...pulumi.InvokeOption) (*GetPoolResult, error)

Provides information about a pool.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		pool, err := xenorchestra.GetXoaPool(ctx, &xenorchestra.GetXoaPoolArgs{
			NameLabel: "Your pool",
		}, nil)
		if err != nil {
			return err
		}
		_, err = xenorchestra.GetXoaStorageRepository(ctx, &xenorchestra.GetXoaStorageRepositoryArgs{
			NameLabel: "Your storage repository label",
			PoolId:    pulumi.StringRef(pool.Id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

Deprecated: xenorchestra.index/getpool.getPool has been deprecated in favor of xenorchestra.index/getxoapool.getXoaPool

type GetPoolResultOutput

type GetPoolResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getPool.

func (GetPoolResultOutput) Cpus

CPU information about the pool. The 'cores' key will contain the number of cpu cores and the 'sockets' key will contain the number of sockets.

func (GetPoolResultOutput) Description

func (o GetPoolResultOutput) Description() pulumi.StringOutput

The description of the pool.

func (GetPoolResultOutput) ElementType

func (GetPoolResultOutput) ElementType() reflect.Type

func (GetPoolResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetPoolResultOutput) Master

The id of the primary instance in the pool.

func (GetPoolResultOutput) NameLabel

func (o GetPoolResultOutput) NameLabel() pulumi.StringOutput

The nameLabel of the pool to look up.

func (GetPoolResultOutput) ToGetPoolResultOutput

func (o GetPoolResultOutput) ToGetPoolResultOutput() GetPoolResultOutput

func (GetPoolResultOutput) ToGetPoolResultOutputWithContext

func (o GetPoolResultOutput) ToGetPoolResultOutputWithContext(ctx context.Context) GetPoolResultOutput

type GetSrArgs

type GetSrArgs struct {
	// The name of the storage repository to look up
	NameLabel string `pulumi:"nameLabel"`
	// The Id of the pool the storage repository exists on.
	PoolId *string `pulumi:"poolId"`
	// The tags (labels) applied to the given entity.
	Tags []string `pulumi:"tags"`
}

A collection of arguments for invoking getSr.

type GetSrOutputArgs

type GetSrOutputArgs struct {
	// The name of the storage repository to look up
	NameLabel pulumi.StringInput `pulumi:"nameLabel"`
	// The Id of the pool the storage repository exists on.
	PoolId pulumi.StringPtrInput `pulumi:"poolId"`
	// The tags (labels) applied to the given entity.
	Tags pulumi.StringArrayInput `pulumi:"tags"`
}

A collection of arguments for invoking getSr.

func (GetSrOutputArgs) ElementType

func (GetSrOutputArgs) ElementType() reflect.Type

type GetSrResult

type GetSrResult struct {
	// The storage container.
	Container string `pulumi:"container"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name of the storage repository to look up
	NameLabel string `pulumi:"nameLabel"`
	// The physical storage size.
	PhysicalUsage float64 `pulumi:"physicalUsage"`
	// The Id of the pool the storage repository exists on.
	PoolId *string `pulumi:"poolId"`
	// The storage size.
	Size float64 `pulumi:"size"`
	// The type of storage repository (lvm, udev, iso, user, etc).
	SrType string `pulumi:"srType"`
	// The tags (labels) applied to the given entity.
	Tags []string `pulumi:"tags"`
	// The current usage for this storage repository.
	Usage float64 `pulumi:"usage"`
	// uuid of the storage repository. This is equivalent to the id.
	Uuid string `pulumi:"uuid"`
}

A collection of values returned by getSr.

func GetSr deprecated

func GetSr(ctx *pulumi.Context, args *GetSrArgs, opts ...pulumi.InvokeOption) (*GetSrResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		localStorage, err := xenorchestra.GetXoaStorageRepository(ctx, &xenorchestra.GetXoaStorageRepositoryArgs{
			NameLabel: "Your storage repository label",
		}, nil)
		if err != nil {
			return err
		}
		_, err = xenorchestra.NewVm(ctx, "demo-vm", &xenorchestra.VmArgs{
			Disks: xenorchestra.VmDiskArray{
				&xenorchestra.VmDiskArgs{
					SrId:      pulumi.String(localStorage.Id),
					NameLabel: pulumi.String("Ubuntu Bionic Beaver 18.04_imavo"),
					Size:      pulumi.Float64(32212254720),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

Deprecated: xenorchestra.index/getsr.getSr has been deprecated in favor of xenorchestra.index/getxoastoragerepository.getXoaStorageRepository

type GetSrResultOutput

type GetSrResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSr.

func GetSrOutput

func GetSrOutput(ctx *pulumi.Context, args GetSrOutputArgs, opts ...pulumi.InvokeOption) GetSrResultOutput

func (GetSrResultOutput) Container

func (o GetSrResultOutput) Container() pulumi.StringOutput

The storage container.

func (GetSrResultOutput) ElementType

func (GetSrResultOutput) ElementType() reflect.Type

func (GetSrResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetSrResultOutput) NameLabel

func (o GetSrResultOutput) NameLabel() pulumi.StringOutput

The name of the storage repository to look up

func (GetSrResultOutput) PhysicalUsage

func (o GetSrResultOutput) PhysicalUsage() pulumi.Float64Output

The physical storage size.

func (GetSrResultOutput) PoolId

The Id of the pool the storage repository exists on.

func (GetSrResultOutput) Size

The storage size.

func (GetSrResultOutput) SrType

The type of storage repository (lvm, udev, iso, user, etc).

func (GetSrResultOutput) Tags

The tags (labels) applied to the given entity.

func (GetSrResultOutput) ToGetSrResultOutput

func (o GetSrResultOutput) ToGetSrResultOutput() GetSrResultOutput

func (GetSrResultOutput) ToGetSrResultOutputWithContext

func (o GetSrResultOutput) ToGetSrResultOutputWithContext(ctx context.Context) GetSrResultOutput

func (GetSrResultOutput) Usage

The current usage for this storage repository.

func (GetSrResultOutput) Uuid

uuid of the storage repository. This is equivalent to the id.

type GetTemplateArgs

type GetTemplateArgs struct {
	// The name of the template to look up.
	NameLabel string `pulumi:"nameLabel"`
	// The id of the pool that the template belongs to.
	PoolId *string `pulumi:"poolId"`
}

A collection of arguments for invoking getTemplate.

type GetTemplateOutputArgs

type GetTemplateOutputArgs struct {
	// The name of the template to look up.
	NameLabel pulumi.StringInput `pulumi:"nameLabel"`
	// The id of the pool that the template belongs to.
	PoolId pulumi.StringPtrInput `pulumi:"poolId"`
}

A collection of arguments for invoking getTemplate.

func (GetTemplateOutputArgs) ElementType

func (GetTemplateOutputArgs) ElementType() reflect.Type

type GetTemplateResult

type GetTemplateResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name of the template to look up.
	NameLabel string `pulumi:"nameLabel"`
	// The id of the pool that the template belongs to.
	PoolId *string `pulumi:"poolId"`
	// The uuid of the template.
	Uuid string `pulumi:"uuid"`
}

A collection of values returned by getTemplate.

func GetTemplate deprecated

func GetTemplate(ctx *pulumi.Context, args *GetTemplateArgs, opts ...pulumi.InvokeOption) (*GetTemplateResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		template, err := xenorchestra.GetXoaTemplate(ctx, &xenorchestra.GetXoaTemplateArgs{
			NameLabel: "Ubuntu Bionic Beaver 18.04",
		}, nil)
		if err != nil {
			return err
		}
		_, err = xenorchestra.NewVm(ctx, "demo-vm", &xenorchestra.VmArgs{
			Template: pulumi.String(template.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

Deprecated: xenorchestra.index/gettemplate.getTemplate has been deprecated in favor of xenorchestra.index/getxoatemplate.getXoaTemplate

type GetTemplateResultOutput

type GetTemplateResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTemplate.

func (GetTemplateResultOutput) ElementType

func (GetTemplateResultOutput) ElementType() reflect.Type

func (GetTemplateResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetTemplateResultOutput) NameLabel

The name of the template to look up.

func (GetTemplateResultOutput) PoolId

The id of the pool that the template belongs to.

func (GetTemplateResultOutput) ToGetTemplateResultOutput

func (o GetTemplateResultOutput) ToGetTemplateResultOutput() GetTemplateResultOutput

func (GetTemplateResultOutput) ToGetTemplateResultOutputWithContext

func (o GetTemplateResultOutput) ToGetTemplateResultOutputWithContext(ctx context.Context) GetTemplateResultOutput

func (GetTemplateResultOutput) Uuid

The uuid of the template.

type GetUserArgs

type GetUserArgs struct {
	// A boolean which will search for the user in the current session (`session.getUser` Xen Orchestra RPC call). This allows a non admin user to look up their own user account.
	SearchInSession *bool `pulumi:"searchInSession"`
	// The username of the XO user.
	Username string `pulumi:"username"`
}

A collection of arguments for invoking getUser.

type GetUserOutputArgs

type GetUserOutputArgs struct {
	// A boolean which will search for the user in the current session (`session.getUser` Xen Orchestra RPC call). This allows a non admin user to look up their own user account.
	SearchInSession pulumi.BoolPtrInput `pulumi:"searchInSession"`
	// The username of the XO user.
	Username pulumi.StringInput `pulumi:"username"`
}

A collection of arguments for invoking getUser.

func (GetUserOutputArgs) ElementType

func (GetUserOutputArgs) ElementType() reflect.Type

type GetUserResult

type GetUserResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A boolean which will search for the user in the current session (`session.getUser` Xen Orchestra RPC call). This allows a non admin user to look up their own user account.
	SearchInSession *bool `pulumi:"searchInSession"`
	// The username of the XO user.
	Username string `pulumi:"username"`
}

A collection of values returned by getUser.

func GetUser deprecated

func GetUser(ctx *pulumi.Context, args *GetUserArgs, opts ...pulumi.InvokeOption) (*GetUserResult, error)

Provides information about a Xen Orchestra user. If the Xen Orchestra user account you are using is not an admin, see the `searchInSession` parameter.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := xenorchestra.GetXoaUser(ctx, &xenorchestra.GetXoaUserArgs{
			Username: "my-username",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

Deprecated: xenorchestra.index/getuser.getUser has been deprecated in favor of xenorchestra.index/getxoauser.getXoaUser

type GetUserResultOutput

type GetUserResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getUser.

func (GetUserResultOutput) ElementType

func (GetUserResultOutput) ElementType() reflect.Type

func (GetUserResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetUserResultOutput) SearchInSession

func (o GetUserResultOutput) SearchInSession() pulumi.BoolPtrOutput

A boolean which will search for the user in the current session (`session.getUser` Xen Orchestra RPC call). This allows a non admin user to look up their own user account.

func (GetUserResultOutput) ToGetUserResultOutput

func (o GetUserResultOutput) ToGetUserResultOutput() GetUserResultOutput

func (GetUserResultOutput) ToGetUserResultOutputWithContext

func (o GetUserResultOutput) ToGetUserResultOutputWithContext(ctx context.Context) GetUserResultOutput

func (GetUserResultOutput) Username

The username of the XO user.

type GetVmsArgs

type GetVmsArgs struct {
	Host *string `pulumi:"host"`
	// The ID of the pool the VM belongs to.
	PoolId string `pulumi:"poolId"`
	// The power state of the vms. (Running, Halted)
	PowerState *string `pulumi:"powerState"`
}

A collection of arguments for invoking getVms.

type GetVmsOutputArgs

type GetVmsOutputArgs struct {
	Host pulumi.StringPtrInput `pulumi:"host"`
	// The ID of the pool the VM belongs to.
	PoolId pulumi.StringInput `pulumi:"poolId"`
	// The power state of the vms. (Running, Halted)
	PowerState pulumi.StringPtrInput `pulumi:"powerState"`
}

A collection of arguments for invoking getVms.

func (GetVmsOutputArgs) ElementType

func (GetVmsOutputArgs) ElementType() reflect.Type

type GetVmsResult

type GetVmsResult struct {
	Host *string `pulumi:"host"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The ID of the pool the VM belongs to.
	PoolId string `pulumi:"poolId"`
	// The power state of the vms. (Running, Halted)
	PowerState *string `pulumi:"powerState"`
	// A list of information for all vms found in this pool.
	Vms []GetVmsVm `pulumi:"vms"`
}

A collection of values returned by getVms.

func GetVms deprecated

func GetVms(ctx *pulumi.Context, args *GetVmsArgs, opts ...pulumi.InvokeOption) (*GetVmsResult, error)

Use this data source to filter Xenorchestra VMs by certain criteria (pool_id, powerState or host) for use in other resources.

Deprecated: xenorchestra.index/getvms.getVms has been deprecated in favor of xenorchestra.index/getxoavms.getXoaVms

type GetVmsResultOutput

type GetVmsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getVms.

func GetVmsOutput

func GetVmsOutput(ctx *pulumi.Context, args GetVmsOutputArgs, opts ...pulumi.InvokeOption) GetVmsResultOutput

func (GetVmsResultOutput) ElementType

func (GetVmsResultOutput) ElementType() reflect.Type

func (GetVmsResultOutput) Host

func (GetVmsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetVmsResultOutput) PoolId

The ID of the pool the VM belongs to.

func (GetVmsResultOutput) PowerState

func (o GetVmsResultOutput) PowerState() pulumi.StringPtrOutput

The power state of the vms. (Running, Halted)

func (GetVmsResultOutput) ToGetVmsResultOutput

func (o GetVmsResultOutput) ToGetVmsResultOutput() GetVmsResultOutput

func (GetVmsResultOutput) ToGetVmsResultOutputWithContext

func (o GetVmsResultOutput) ToGetVmsResultOutputWithContext(ctx context.Context) GetVmsResultOutput

func (GetVmsResultOutput) Vms

A list of information for all vms found in this pool.

type GetVmsVm

type GetVmsVm struct {
	// The preferred host you would like the VM to run on. If changed on an existing VM it will require a reboot for the VM to be rescheduled.
	AffinityHost *string `pulumi:"affinityHost"`
	// If the VM will automatically turn on. Defaults to `false`.
	AutoPoweron *bool `pulumi:"autoPoweron"`
	// List of operations on a VM that are not permitted. Examples include: clean_reboot, clean_shutdown, hard_reboot, hard_shutdown, pause, shutdown, suspend, destroy. This can be used to prevent a VM from being destroyed. The entire list can be found here
	BlockedOperations []string `pulumi:"blockedOperations"`
	// The type of clone to perform for the VM. Possible values include `fast` or `full` and defaults to `fast`. In order to perform a `full` clone, the VM template must not be a disk template.
	CloneType *string `pulumi:"cloneType"`
	// The content of the cloud-init config to use. See the cloud init docs for more [information](https://cloudinit.readthedocs.io/en/latest/topics/examples.html).
	CloudConfig *string `pulumi:"cloudConfig"`
	// The content of the cloud-init network configuration for the VM (uses [version 1](https://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v1.html))
	CloudNetworkConfig *string `pulumi:"cloudNetworkConfig"`
	CoreOs             *bool   `pulumi:"coreOs"`
	CpuCap             *int    `pulumi:"cpuCap"`
	CpuWeight          *int    `pulumi:"cpuWeight"`
	// The number of CPUs the VM will have. Updates to this field will cause a stop and start of the VM if the new CPU value is greater than the max CPU value. This can be determined with the following command:
	Cpus int `pulumi:"cpus"`
	// The disk the VM will have access to.
	Disks []GetVmsVmDisk `pulumi:"disks"`
	// Boolean parameter that allows a VM to use nested virtualization.
	ExpNestedHvm *bool `pulumi:"expNestedHvm"`
	// The restart priority for the VM. Possible values are `best-effort`, `restart` and empty string (no restarts on failure. Defaults to empty string
	HighAvailability *string `pulumi:"highAvailability"`
	Host             *string `pulumi:"host"`
	// The firmware to use for the VM. Possible values are `bios` and `uefi`.
	HvmBootFirmware *string  `pulumi:"hvmBootFirmware"`
	Id              string   `pulumi:"id"`
	Ipv4Addresses   []string `pulumi:"ipv4Addresses"`
	// This is only accessible if guest-tools is installed in the VM and if `expectedIpCidr` is set on any network interfaces. This will contain a list of the ipv6 addresses across all network interfaces in order.
	Ipv6Addresses []string `pulumi:"ipv6Addresses"`
	// The amount of memory in bytes the VM will have. Updates to this field will case a stop and start of the VM if the new value is greater than the dynamic memory max. This can be determined with the following command:
	MemoryMax int `pulumi:"memoryMax"`
	// The description of the VM.
	NameDescription *string `pulumi:"nameDescription"`
	// The name of the VM.
	NameLabel string `pulumi:"nameLabel"`
	// The network for the VM.
	Networks []GetVmsVmNetwork `pulumi:"networks"`
	// The power state of the VM. This can be Running, Halted, Paused or Suspended.
	PowerState  *string `pulumi:"powerState"`
	ResourceSet *string `pulumi:"resourceSet"`
	// Number of seconds the VM should be delayed from starting.
	StartDelay *int `pulumi:"startDelay"`
	// The tags (labels) applied to the given entity.
	Tags []string `pulumi:"tags"`
	// The ID of the VM template to create the new VM from.
	Template string `pulumi:"template"`
	// The video adapter the VM should use. Possible values include std and cirrus.
	Vga *string `pulumi:"vga"`
	// The videoram option the VM should use. Possible values include 1, 2, 4, 8, 16
	Videoram *int `pulumi:"videoram"`
	// The key value pairs to be populated in xenstore.
	Xenstore map[string]string `pulumi:"xenstore"`
}

type GetVmsVmArgs

type GetVmsVmArgs struct {
	// The preferred host you would like the VM to run on. If changed on an existing VM it will require a reboot for the VM to be rescheduled.
	AffinityHost pulumi.StringPtrInput `pulumi:"affinityHost"`
	// If the VM will automatically turn on. Defaults to `false`.
	AutoPoweron pulumi.BoolPtrInput `pulumi:"autoPoweron"`
	// List of operations on a VM that are not permitted. Examples include: clean_reboot, clean_shutdown, hard_reboot, hard_shutdown, pause, shutdown, suspend, destroy. This can be used to prevent a VM from being destroyed. The entire list can be found here
	BlockedOperations pulumi.StringArrayInput `pulumi:"blockedOperations"`
	// The type of clone to perform for the VM. Possible values include `fast` or `full` and defaults to `fast`. In order to perform a `full` clone, the VM template must not be a disk template.
	CloneType pulumi.StringPtrInput `pulumi:"cloneType"`
	// The content of the cloud-init config to use. See the cloud init docs for more [information](https://cloudinit.readthedocs.io/en/latest/topics/examples.html).
	CloudConfig pulumi.StringPtrInput `pulumi:"cloudConfig"`
	// The content of the cloud-init network configuration for the VM (uses [version 1](https://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v1.html))
	CloudNetworkConfig pulumi.StringPtrInput `pulumi:"cloudNetworkConfig"`
	CoreOs             pulumi.BoolPtrInput   `pulumi:"coreOs"`
	CpuCap             pulumi.IntPtrInput    `pulumi:"cpuCap"`
	CpuWeight          pulumi.IntPtrInput    `pulumi:"cpuWeight"`
	// The number of CPUs the VM will have. Updates to this field will cause a stop and start of the VM if the new CPU value is greater than the max CPU value. This can be determined with the following command:
	Cpus pulumi.IntInput `pulumi:"cpus"`
	// The disk the VM will have access to.
	Disks GetVmsVmDiskArrayInput `pulumi:"disks"`
	// Boolean parameter that allows a VM to use nested virtualization.
	ExpNestedHvm pulumi.BoolPtrInput `pulumi:"expNestedHvm"`
	// The restart priority for the VM. Possible values are `best-effort`, `restart` and empty string (no restarts on failure. Defaults to empty string
	HighAvailability pulumi.StringPtrInput `pulumi:"highAvailability"`
	Host             pulumi.StringPtrInput `pulumi:"host"`
	// The firmware to use for the VM. Possible values are `bios` and `uefi`.
	HvmBootFirmware pulumi.StringPtrInput   `pulumi:"hvmBootFirmware"`
	Id              pulumi.StringInput      `pulumi:"id"`
	Ipv4Addresses   pulumi.StringArrayInput `pulumi:"ipv4Addresses"`
	// This is only accessible if guest-tools is installed in the VM and if `expectedIpCidr` is set on any network interfaces. This will contain a list of the ipv6 addresses across all network interfaces in order.
	Ipv6Addresses pulumi.StringArrayInput `pulumi:"ipv6Addresses"`
	// The amount of memory in bytes the VM will have. Updates to this field will case a stop and start of the VM if the new value is greater than the dynamic memory max. This can be determined with the following command:
	MemoryMax pulumi.IntInput `pulumi:"memoryMax"`
	// The description of the VM.
	NameDescription pulumi.StringPtrInput `pulumi:"nameDescription"`
	// The name of the VM.
	NameLabel pulumi.StringInput `pulumi:"nameLabel"`
	// The network for the VM.
	Networks GetVmsVmNetworkArrayInput `pulumi:"networks"`
	// The power state of the VM. This can be Running, Halted, Paused or Suspended.
	PowerState  pulumi.StringPtrInput `pulumi:"powerState"`
	ResourceSet pulumi.StringPtrInput `pulumi:"resourceSet"`
	// Number of seconds the VM should be delayed from starting.
	StartDelay pulumi.IntPtrInput `pulumi:"startDelay"`
	// The tags (labels) applied to the given entity.
	Tags pulumi.StringArrayInput `pulumi:"tags"`
	// The ID of the VM template to create the new VM from.
	Template pulumi.StringInput `pulumi:"template"`
	// The video adapter the VM should use. Possible values include std and cirrus.
	Vga pulumi.StringPtrInput `pulumi:"vga"`
	// The videoram option the VM should use. Possible values include 1, 2, 4, 8, 16
	Videoram pulumi.IntPtrInput `pulumi:"videoram"`
	// The key value pairs to be populated in xenstore.
	Xenstore pulumi.StringMapInput `pulumi:"xenstore"`
}

func (GetVmsVmArgs) ElementType

func (GetVmsVmArgs) ElementType() reflect.Type

func (GetVmsVmArgs) ToGetVmsVmOutput

func (i GetVmsVmArgs) ToGetVmsVmOutput() GetVmsVmOutput

func (GetVmsVmArgs) ToGetVmsVmOutputWithContext

func (i GetVmsVmArgs) ToGetVmsVmOutputWithContext(ctx context.Context) GetVmsVmOutput

type GetVmsVmArray

type GetVmsVmArray []GetVmsVmInput

func (GetVmsVmArray) ElementType

func (GetVmsVmArray) ElementType() reflect.Type

func (GetVmsVmArray) ToGetVmsVmArrayOutput

func (i GetVmsVmArray) ToGetVmsVmArrayOutput() GetVmsVmArrayOutput

func (GetVmsVmArray) ToGetVmsVmArrayOutputWithContext

func (i GetVmsVmArray) ToGetVmsVmArrayOutputWithContext(ctx context.Context) GetVmsVmArrayOutput

type GetVmsVmArrayInput

type GetVmsVmArrayInput interface {
	pulumi.Input

	ToGetVmsVmArrayOutput() GetVmsVmArrayOutput
	ToGetVmsVmArrayOutputWithContext(context.Context) GetVmsVmArrayOutput
}

GetVmsVmArrayInput is an input type that accepts GetVmsVmArray and GetVmsVmArrayOutput values. You can construct a concrete instance of `GetVmsVmArrayInput` via:

GetVmsVmArray{ GetVmsVmArgs{...} }

type GetVmsVmArrayOutput

type GetVmsVmArrayOutput struct{ *pulumi.OutputState }

func (GetVmsVmArrayOutput) ElementType

func (GetVmsVmArrayOutput) ElementType() reflect.Type

func (GetVmsVmArrayOutput) Index

func (GetVmsVmArrayOutput) ToGetVmsVmArrayOutput

func (o GetVmsVmArrayOutput) ToGetVmsVmArrayOutput() GetVmsVmArrayOutput

func (GetVmsVmArrayOutput) ToGetVmsVmArrayOutputWithContext

func (o GetVmsVmArrayOutput) ToGetVmsVmArrayOutputWithContext(ctx context.Context) GetVmsVmArrayOutput

type GetVmsVmDisk

type GetVmsVmDisk struct {
	// Whether the device should be attached to the VM.
	Attached *bool `pulumi:"attached"`
	// The description for the disk
	NameDescription *string `pulumi:"nameDescription"`
	// The name for the disk
	NameLabel string `pulumi:"nameLabel"`
	// Indicates the order of the block device.
	Position string `pulumi:"position"`
	// The size in bytes for the disk.
	Size int `pulumi:"size"`
	// The storage repository ID to use.
	SrId  string `pulumi:"srId"`
	VbdId string `pulumi:"vbdId"`
	VdiId string `pulumi:"vdiId"`
}

type GetVmsVmDiskArgs

type GetVmsVmDiskArgs struct {
	// Whether the device should be attached to the VM.
	Attached pulumi.BoolPtrInput `pulumi:"attached"`
	// The description for the disk
	NameDescription pulumi.StringPtrInput `pulumi:"nameDescription"`
	// The name for the disk
	NameLabel pulumi.StringInput `pulumi:"nameLabel"`
	// Indicates the order of the block device.
	Position pulumi.StringInput `pulumi:"position"`
	// The size in bytes for the disk.
	Size pulumi.IntInput `pulumi:"size"`
	// The storage repository ID to use.
	SrId  pulumi.StringInput `pulumi:"srId"`
	VbdId pulumi.StringInput `pulumi:"vbdId"`
	VdiId pulumi.StringInput `pulumi:"vdiId"`
}

func (GetVmsVmDiskArgs) ElementType

func (GetVmsVmDiskArgs) ElementType() reflect.Type

func (GetVmsVmDiskArgs) ToGetVmsVmDiskOutput

func (i GetVmsVmDiskArgs) ToGetVmsVmDiskOutput() GetVmsVmDiskOutput

func (GetVmsVmDiskArgs) ToGetVmsVmDiskOutputWithContext

func (i GetVmsVmDiskArgs) ToGetVmsVmDiskOutputWithContext(ctx context.Context) GetVmsVmDiskOutput

type GetVmsVmDiskArray

type GetVmsVmDiskArray []GetVmsVmDiskInput

func (GetVmsVmDiskArray) ElementType

func (GetVmsVmDiskArray) ElementType() reflect.Type

func (GetVmsVmDiskArray) ToGetVmsVmDiskArrayOutput

func (i GetVmsVmDiskArray) ToGetVmsVmDiskArrayOutput() GetVmsVmDiskArrayOutput

func (GetVmsVmDiskArray) ToGetVmsVmDiskArrayOutputWithContext

func (i GetVmsVmDiskArray) ToGetVmsVmDiskArrayOutputWithContext(ctx context.Context) GetVmsVmDiskArrayOutput

type GetVmsVmDiskArrayInput

type GetVmsVmDiskArrayInput interface {
	pulumi.Input

	ToGetVmsVmDiskArrayOutput() GetVmsVmDiskArrayOutput
	ToGetVmsVmDiskArrayOutputWithContext(context.Context) GetVmsVmDiskArrayOutput
}

GetVmsVmDiskArrayInput is an input type that accepts GetVmsVmDiskArray and GetVmsVmDiskArrayOutput values. You can construct a concrete instance of `GetVmsVmDiskArrayInput` via:

GetVmsVmDiskArray{ GetVmsVmDiskArgs{...} }

type GetVmsVmDiskArrayOutput

type GetVmsVmDiskArrayOutput struct{ *pulumi.OutputState }

func (GetVmsVmDiskArrayOutput) ElementType

func (GetVmsVmDiskArrayOutput) ElementType() reflect.Type

func (GetVmsVmDiskArrayOutput) Index

func (GetVmsVmDiskArrayOutput) ToGetVmsVmDiskArrayOutput

func (o GetVmsVmDiskArrayOutput) ToGetVmsVmDiskArrayOutput() GetVmsVmDiskArrayOutput

func (GetVmsVmDiskArrayOutput) ToGetVmsVmDiskArrayOutputWithContext

func (o GetVmsVmDiskArrayOutput) ToGetVmsVmDiskArrayOutputWithContext(ctx context.Context) GetVmsVmDiskArrayOutput

type GetVmsVmDiskInput

type GetVmsVmDiskInput interface {
	pulumi.Input

	ToGetVmsVmDiskOutput() GetVmsVmDiskOutput
	ToGetVmsVmDiskOutputWithContext(context.Context) GetVmsVmDiskOutput
}

GetVmsVmDiskInput is an input type that accepts GetVmsVmDiskArgs and GetVmsVmDiskOutput values. You can construct a concrete instance of `GetVmsVmDiskInput` via:

GetVmsVmDiskArgs{...}

type GetVmsVmDiskOutput

type GetVmsVmDiskOutput struct{ *pulumi.OutputState }

func (GetVmsVmDiskOutput) Attached

Whether the device should be attached to the VM.

func (GetVmsVmDiskOutput) ElementType

func (GetVmsVmDiskOutput) ElementType() reflect.Type

func (GetVmsVmDiskOutput) NameDescription

func (o GetVmsVmDiskOutput) NameDescription() pulumi.StringPtrOutput

The description for the disk

func (GetVmsVmDiskOutput) NameLabel

func (o GetVmsVmDiskOutput) NameLabel() pulumi.StringOutput

The name for the disk

func (GetVmsVmDiskOutput) Position

func (o GetVmsVmDiskOutput) Position() pulumi.StringOutput

Indicates the order of the block device.

func (GetVmsVmDiskOutput) Size

The size in bytes for the disk.

func (GetVmsVmDiskOutput) SrId

The storage repository ID to use.

func (GetVmsVmDiskOutput) ToGetVmsVmDiskOutput

func (o GetVmsVmDiskOutput) ToGetVmsVmDiskOutput() GetVmsVmDiskOutput

func (GetVmsVmDiskOutput) ToGetVmsVmDiskOutputWithContext

func (o GetVmsVmDiskOutput) ToGetVmsVmDiskOutputWithContext(ctx context.Context) GetVmsVmDiskOutput

func (GetVmsVmDiskOutput) VbdId

func (GetVmsVmDiskOutput) VdiId

type GetVmsVmInput

type GetVmsVmInput interface {
	pulumi.Input

	ToGetVmsVmOutput() GetVmsVmOutput
	ToGetVmsVmOutputWithContext(context.Context) GetVmsVmOutput
}

GetVmsVmInput is an input type that accepts GetVmsVmArgs and GetVmsVmOutput values. You can construct a concrete instance of `GetVmsVmInput` via:

GetVmsVmArgs{...}

type GetVmsVmNetwork

type GetVmsVmNetwork struct {
	// Whether the device should be attached to the VM.
	Attached       *bool    `pulumi:"attached"`
	Device         string   `pulumi:"device"`
	ExpectedIpCidr *string  `pulumi:"expectedIpCidr"`
	Ipv4Addresses  []string `pulumi:"ipv4Addresses"`
	Ipv6Addresses  []string `pulumi:"ipv6Addresses"`
	MacAddress     string   `pulumi:"macAddress"`
	// The ID of the network the VM will be on.
	NetworkId string `pulumi:"networkId"`
}

type GetVmsVmNetworkArgs

type GetVmsVmNetworkArgs struct {
	// Whether the device should be attached to the VM.
	Attached       pulumi.BoolPtrInput     `pulumi:"attached"`
	Device         pulumi.StringInput      `pulumi:"device"`
	ExpectedIpCidr pulumi.StringPtrInput   `pulumi:"expectedIpCidr"`
	Ipv4Addresses  pulumi.StringArrayInput `pulumi:"ipv4Addresses"`
	Ipv6Addresses  pulumi.StringArrayInput `pulumi:"ipv6Addresses"`
	MacAddress     pulumi.StringInput      `pulumi:"macAddress"`
	// The ID of the network the VM will be on.
	NetworkId pulumi.StringInput `pulumi:"networkId"`
}

func (GetVmsVmNetworkArgs) ElementType

func (GetVmsVmNetworkArgs) ElementType() reflect.Type

func (GetVmsVmNetworkArgs) ToGetVmsVmNetworkOutput

func (i GetVmsVmNetworkArgs) ToGetVmsVmNetworkOutput() GetVmsVmNetworkOutput

func (GetVmsVmNetworkArgs) ToGetVmsVmNetworkOutputWithContext

func (i GetVmsVmNetworkArgs) ToGetVmsVmNetworkOutputWithContext(ctx context.Context) GetVmsVmNetworkOutput

type GetVmsVmNetworkArray

type GetVmsVmNetworkArray []GetVmsVmNetworkInput

func (GetVmsVmNetworkArray) ElementType

func (GetVmsVmNetworkArray) ElementType() reflect.Type

func (GetVmsVmNetworkArray) ToGetVmsVmNetworkArrayOutput

func (i GetVmsVmNetworkArray) ToGetVmsVmNetworkArrayOutput() GetVmsVmNetworkArrayOutput

func (GetVmsVmNetworkArray) ToGetVmsVmNetworkArrayOutputWithContext

func (i GetVmsVmNetworkArray) ToGetVmsVmNetworkArrayOutputWithContext(ctx context.Context) GetVmsVmNetworkArrayOutput

type GetVmsVmNetworkArrayInput

type GetVmsVmNetworkArrayInput interface {
	pulumi.Input

	ToGetVmsVmNetworkArrayOutput() GetVmsVmNetworkArrayOutput
	ToGetVmsVmNetworkArrayOutputWithContext(context.Context) GetVmsVmNetworkArrayOutput
}

GetVmsVmNetworkArrayInput is an input type that accepts GetVmsVmNetworkArray and GetVmsVmNetworkArrayOutput values. You can construct a concrete instance of `GetVmsVmNetworkArrayInput` via:

GetVmsVmNetworkArray{ GetVmsVmNetworkArgs{...} }

type GetVmsVmNetworkArrayOutput

type GetVmsVmNetworkArrayOutput struct{ *pulumi.OutputState }

func (GetVmsVmNetworkArrayOutput) ElementType

func (GetVmsVmNetworkArrayOutput) ElementType() reflect.Type

func (GetVmsVmNetworkArrayOutput) Index

func (GetVmsVmNetworkArrayOutput) ToGetVmsVmNetworkArrayOutput

func (o GetVmsVmNetworkArrayOutput) ToGetVmsVmNetworkArrayOutput() GetVmsVmNetworkArrayOutput

func (GetVmsVmNetworkArrayOutput) ToGetVmsVmNetworkArrayOutputWithContext

func (o GetVmsVmNetworkArrayOutput) ToGetVmsVmNetworkArrayOutputWithContext(ctx context.Context) GetVmsVmNetworkArrayOutput

type GetVmsVmNetworkInput

type GetVmsVmNetworkInput interface {
	pulumi.Input

	ToGetVmsVmNetworkOutput() GetVmsVmNetworkOutput
	ToGetVmsVmNetworkOutputWithContext(context.Context) GetVmsVmNetworkOutput
}

GetVmsVmNetworkInput is an input type that accepts GetVmsVmNetworkArgs and GetVmsVmNetworkOutput values. You can construct a concrete instance of `GetVmsVmNetworkInput` via:

GetVmsVmNetworkArgs{...}

type GetVmsVmNetworkOutput

type GetVmsVmNetworkOutput struct{ *pulumi.OutputState }

func (GetVmsVmNetworkOutput) Attached

Whether the device should be attached to the VM.

func (GetVmsVmNetworkOutput) Device

func (GetVmsVmNetworkOutput) ElementType

func (GetVmsVmNetworkOutput) ElementType() reflect.Type

func (GetVmsVmNetworkOutput) ExpectedIpCidr

func (o GetVmsVmNetworkOutput) ExpectedIpCidr() pulumi.StringPtrOutput

func (GetVmsVmNetworkOutput) Ipv4Addresses

func (GetVmsVmNetworkOutput) Ipv6Addresses

func (GetVmsVmNetworkOutput) MacAddress

func (o GetVmsVmNetworkOutput) MacAddress() pulumi.StringOutput

func (GetVmsVmNetworkOutput) NetworkId

The ID of the network the VM will be on.

func (GetVmsVmNetworkOutput) ToGetVmsVmNetworkOutput

func (o GetVmsVmNetworkOutput) ToGetVmsVmNetworkOutput() GetVmsVmNetworkOutput

func (GetVmsVmNetworkOutput) ToGetVmsVmNetworkOutputWithContext

func (o GetVmsVmNetworkOutput) ToGetVmsVmNetworkOutputWithContext(ctx context.Context) GetVmsVmNetworkOutput

type GetVmsVmOutput

type GetVmsVmOutput struct{ *pulumi.OutputState }

func (GetVmsVmOutput) AffinityHost

func (o GetVmsVmOutput) AffinityHost() pulumi.StringPtrOutput

The preferred host you would like the VM to run on. If changed on an existing VM it will require a reboot for the VM to be rescheduled.

func (GetVmsVmOutput) AutoPoweron

func (o GetVmsVmOutput) AutoPoweron() pulumi.BoolPtrOutput

If the VM will automatically turn on. Defaults to `false`.

func (GetVmsVmOutput) BlockedOperations

func (o GetVmsVmOutput) BlockedOperations() pulumi.StringArrayOutput

List of operations on a VM that are not permitted. Examples include: clean_reboot, clean_shutdown, hard_reboot, hard_shutdown, pause, shutdown, suspend, destroy. This can be used to prevent a VM from being destroyed. The entire list can be found here

func (GetVmsVmOutput) CloneType

func (o GetVmsVmOutput) CloneType() pulumi.StringPtrOutput

The type of clone to perform for the VM. Possible values include `fast` or `full` and defaults to `fast`. In order to perform a `full` clone, the VM template must not be a disk template.

func (GetVmsVmOutput) CloudConfig

func (o GetVmsVmOutput) CloudConfig() pulumi.StringPtrOutput

The content of the cloud-init config to use. See the cloud init docs for more [information](https://cloudinit.readthedocs.io/en/latest/topics/examples.html).

func (GetVmsVmOutput) CloudNetworkConfig

func (o GetVmsVmOutput) CloudNetworkConfig() pulumi.StringPtrOutput

The content of the cloud-init network configuration for the VM (uses [version 1](https://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v1.html))

func (GetVmsVmOutput) CoreOs

func (o GetVmsVmOutput) CoreOs() pulumi.BoolPtrOutput

func (GetVmsVmOutput) CpuCap

func (o GetVmsVmOutput) CpuCap() pulumi.IntPtrOutput

func (GetVmsVmOutput) CpuWeight

func (o GetVmsVmOutput) CpuWeight() pulumi.IntPtrOutput

func (GetVmsVmOutput) Cpus

func (o GetVmsVmOutput) Cpus() pulumi.IntOutput

The number of CPUs the VM will have. Updates to this field will cause a stop and start of the VM if the new CPU value is greater than the max CPU value. This can be determined with the following command:

func (GetVmsVmOutput) Disks

The disk the VM will have access to.

func (GetVmsVmOutput) ElementType

func (GetVmsVmOutput) ElementType() reflect.Type

func (GetVmsVmOutput) ExpNestedHvm

func (o GetVmsVmOutput) ExpNestedHvm() pulumi.BoolPtrOutput

Boolean parameter that allows a VM to use nested virtualization.

func (GetVmsVmOutput) HighAvailability

func (o GetVmsVmOutput) HighAvailability() pulumi.StringPtrOutput

The restart priority for the VM. Possible values are `best-effort`, `restart` and empty string (no restarts on failure. Defaults to empty string

func (GetVmsVmOutput) Host

func (GetVmsVmOutput) HvmBootFirmware

func (o GetVmsVmOutput) HvmBootFirmware() pulumi.StringPtrOutput

The firmware to use for the VM. Possible values are `bios` and `uefi`.

func (GetVmsVmOutput) Id

func (GetVmsVmOutput) Ipv4Addresses

func (o GetVmsVmOutput) Ipv4Addresses() pulumi.StringArrayOutput

func (GetVmsVmOutput) Ipv6Addresses

func (o GetVmsVmOutput) Ipv6Addresses() pulumi.StringArrayOutput

This is only accessible if guest-tools is installed in the VM and if `expectedIpCidr` is set on any network interfaces. This will contain a list of the ipv6 addresses across all network interfaces in order.

func (GetVmsVmOutput) MemoryMax

func (o GetVmsVmOutput) MemoryMax() pulumi.IntOutput

The amount of memory in bytes the VM will have. Updates to this field will case a stop and start of the VM if the new value is greater than the dynamic memory max. This can be determined with the following command:

func (GetVmsVmOutput) NameDescription

func (o GetVmsVmOutput) NameDescription() pulumi.StringPtrOutput

The description of the VM.

func (GetVmsVmOutput) NameLabel

func (o GetVmsVmOutput) NameLabel() pulumi.StringOutput

The name of the VM.

func (GetVmsVmOutput) Networks

The network for the VM.

func (GetVmsVmOutput) PowerState

func (o GetVmsVmOutput) PowerState() pulumi.StringPtrOutput

The power state of the VM. This can be Running, Halted, Paused or Suspended.

func (GetVmsVmOutput) ResourceSet

func (o GetVmsVmOutput) ResourceSet() pulumi.StringPtrOutput

func (GetVmsVmOutput) StartDelay

func (o GetVmsVmOutput) StartDelay() pulumi.IntPtrOutput

Number of seconds the VM should be delayed from starting.

func (GetVmsVmOutput) Tags

The tags (labels) applied to the given entity.

func (GetVmsVmOutput) Template

func (o GetVmsVmOutput) Template() pulumi.StringOutput

The ID of the VM template to create the new VM from.

func (GetVmsVmOutput) ToGetVmsVmOutput

func (o GetVmsVmOutput) ToGetVmsVmOutput() GetVmsVmOutput

func (GetVmsVmOutput) ToGetVmsVmOutputWithContext

func (o GetVmsVmOutput) ToGetVmsVmOutputWithContext(ctx context.Context) GetVmsVmOutput

func (GetVmsVmOutput) Vga

The video adapter the VM should use. Possible values include std and cirrus.

func (GetVmsVmOutput) Videoram

func (o GetVmsVmOutput) Videoram() pulumi.IntPtrOutput

The videoram option the VM should use. Possible values include 1, 2, 4, 8, 16

func (GetVmsVmOutput) Xenstore

func (o GetVmsVmOutput) Xenstore() pulumi.StringMapOutput

The key value pairs to be populated in xenstore.

type GetXoaCloudConfigArgs

type GetXoaCloudConfigArgs struct {
	// The name of the cloud config you want to look up.
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getXoaCloudConfig.

type GetXoaCloudConfigOutputArgs

type GetXoaCloudConfigOutputArgs struct {
	// The name of the cloud config you want to look up.
	Name pulumi.StringInput `pulumi:"name"`
}

A collection of arguments for invoking getXoaCloudConfig.

func (GetXoaCloudConfigOutputArgs) ElementType

type GetXoaCloudConfigResult

type GetXoaCloudConfigResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name of the cloud config you want to look up.
	Name string `pulumi:"name"`
	// The contents of the cloud-config.
	Template string `pulumi:"template"`
}

A collection of values returned by getXoaCloudConfig.

func GetXoaCloudConfig

func GetXoaCloudConfig(ctx *pulumi.Context, args *GetXoaCloudConfigArgs, opts ...pulumi.InvokeOption) (*GetXoaCloudConfigResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := xenorchestra.GetXoaCloudConfig(ctx, &xenorchestra.GetXoaCloudConfigArgs{
			Name: "Name of cloud config",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetXoaCloudConfigResultOutput

type GetXoaCloudConfigResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getXoaCloudConfig.

func (GetXoaCloudConfigResultOutput) ElementType

func (GetXoaCloudConfigResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetXoaCloudConfigResultOutput) Name

The name of the cloud config you want to look up.

func (GetXoaCloudConfigResultOutput) Template

The contents of the cloud-config.

func (GetXoaCloudConfigResultOutput) ToGetXoaCloudConfigResultOutput

func (o GetXoaCloudConfigResultOutput) ToGetXoaCloudConfigResultOutput() GetXoaCloudConfigResultOutput

func (GetXoaCloudConfigResultOutput) ToGetXoaCloudConfigResultOutputWithContext

func (o GetXoaCloudConfigResultOutput) ToGetXoaCloudConfigResultOutputWithContext(ctx context.Context) GetXoaCloudConfigResultOutput

type GetXoaHostArgs

type GetXoaHostArgs struct {
	// The name label of the host.
	NameLabel string `pulumi:"nameLabel"`
	// The tags (labels) applied to the given entity.
	Tags []string `pulumi:"tags"`
}

A collection of arguments for invoking getXoaHost.

type GetXoaHostOutputArgs

type GetXoaHostOutputArgs struct {
	// The name label of the host.
	NameLabel pulumi.StringInput `pulumi:"nameLabel"`
	// The tags (labels) applied to the given entity.
	Tags pulumi.StringArrayInput `pulumi:"tags"`
}

A collection of arguments for invoking getXoaHost.

func (GetXoaHostOutputArgs) ElementType

func (GetXoaHostOutputArgs) ElementType() reflect.Type

type GetXoaHostResult

type GetXoaHostResult struct {
	// CPU information about the host. The 'cores' key will contain the number of cpu cores and the 'sockets' key will contain the number of sockets.
	Cpus map[string]int `pulumi:"cpus"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The memory size of the host.
	Memory float64 `pulumi:"memory"`
	// The memory usage of the host.
	MemoryUsage float64 `pulumi:"memoryUsage"`
	// The name label of the host.
	NameLabel string `pulumi:"nameLabel"`
	// Id of the pool that the host belongs to.
	PoolId string `pulumi:"poolId"`
	// The tags (labels) applied to the given entity.
	Tags []string `pulumi:"tags"`
}

A collection of values returned by getXoaHost.

func GetXoaHost

func GetXoaHost(ctx *pulumi.Context, args *GetXoaHostArgs, opts ...pulumi.InvokeOption) (*GetXoaHostResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		host1, err := xenorchestra.GetXoaHost(ctx, &xenorchestra.GetXoaHostArgs{
			NameLabel: "Your host",
		}, nil)
		if err != nil {
			return err
		}
		_, err = xenorchestra.NewVm(ctx, "node", &xenorchestra.VmArgs{
			AffinityHost: pulumi.String(host1.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetXoaHostResultOutput

type GetXoaHostResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getXoaHost.

func (GetXoaHostResultOutput) Cpus

CPU information about the host. The 'cores' key will contain the number of cpu cores and the 'sockets' key will contain the number of sockets.

func (GetXoaHostResultOutput) ElementType

func (GetXoaHostResultOutput) ElementType() reflect.Type

func (GetXoaHostResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetXoaHostResultOutput) Memory

The memory size of the host.

func (GetXoaHostResultOutput) MemoryUsage

The memory usage of the host.

func (GetXoaHostResultOutput) NameLabel

The name label of the host.

func (GetXoaHostResultOutput) PoolId

Id of the pool that the host belongs to.

func (GetXoaHostResultOutput) Tags

The tags (labels) applied to the given entity.

func (GetXoaHostResultOutput) ToGetXoaHostResultOutput

func (o GetXoaHostResultOutput) ToGetXoaHostResultOutput() GetXoaHostResultOutput

func (GetXoaHostResultOutput) ToGetXoaHostResultOutputWithContext

func (o GetXoaHostResultOutput) ToGetXoaHostResultOutputWithContext(ctx context.Context) GetXoaHostResultOutput

type GetXoaHostsArgs

type GetXoaHostsArgs struct {
	// The pool id used to filter the resulting hosts by.
	PoolId string `pulumi:"poolId"`
	// The host field to sort the results by (id and nameLabel are supported).
	SortBy *string `pulumi:"sortBy"`
	// Valid options are `asc` or `desc` and sort order is applied to `sortBy` argument.
	SortOrder *string `pulumi:"sortOrder"`
	// The tags (labels) applied to the given entity.
	Tags []string `pulumi:"tags"`
}

A collection of arguments for invoking getXoaHosts.

type GetXoaHostsHost

type GetXoaHostsHost struct {
	// CPU information about the host. The 'cores' key will contain the number of cpu cores and the 'sockets' key will contain the number of sockets.
	Cpus map[string]int `pulumi:"cpus"`
	Id   string         `pulumi:"id"`
	// The memory size of the host.
	Memory int `pulumi:"memory"`
	// The memory usage of the host.
	MemoryUsage int `pulumi:"memoryUsage"`
	// The name label of the host.
	NameLabel string `pulumi:"nameLabel"`
	// Id of the pool that the host belongs to.
	PoolId string `pulumi:"poolId"`
	// The tags (labels) applied to the given entity.
	Tags []string `pulumi:"tags"`
}

type GetXoaHostsHostArgs

type GetXoaHostsHostArgs struct {
	// CPU information about the host. The 'cores' key will contain the number of cpu cores and the 'sockets' key will contain the number of sockets.
	Cpus pulumi.IntMapInput `pulumi:"cpus"`
	Id   pulumi.StringInput `pulumi:"id"`
	// The memory size of the host.
	Memory pulumi.IntInput `pulumi:"memory"`
	// The memory usage of the host.
	MemoryUsage pulumi.IntInput `pulumi:"memoryUsage"`
	// The name label of the host.
	NameLabel pulumi.StringInput `pulumi:"nameLabel"`
	// Id of the pool that the host belongs to.
	PoolId pulumi.StringInput `pulumi:"poolId"`
	// The tags (labels) applied to the given entity.
	Tags pulumi.StringArrayInput `pulumi:"tags"`
}

func (GetXoaHostsHostArgs) ElementType

func (GetXoaHostsHostArgs) ElementType() reflect.Type

func (GetXoaHostsHostArgs) ToGetXoaHostsHostOutput

func (i GetXoaHostsHostArgs) ToGetXoaHostsHostOutput() GetXoaHostsHostOutput

func (GetXoaHostsHostArgs) ToGetXoaHostsHostOutputWithContext

func (i GetXoaHostsHostArgs) ToGetXoaHostsHostOutputWithContext(ctx context.Context) GetXoaHostsHostOutput

type GetXoaHostsHostArray

type GetXoaHostsHostArray []GetXoaHostsHostInput

func (GetXoaHostsHostArray) ElementType

func (GetXoaHostsHostArray) ElementType() reflect.Type

func (GetXoaHostsHostArray) ToGetXoaHostsHostArrayOutput

func (i GetXoaHostsHostArray) ToGetXoaHostsHostArrayOutput() GetXoaHostsHostArrayOutput

func (GetXoaHostsHostArray) ToGetXoaHostsHostArrayOutputWithContext

func (i GetXoaHostsHostArray) ToGetXoaHostsHostArrayOutputWithContext(ctx context.Context) GetXoaHostsHostArrayOutput

type GetXoaHostsHostArrayInput

type GetXoaHostsHostArrayInput interface {
	pulumi.Input

	ToGetXoaHostsHostArrayOutput() GetXoaHostsHostArrayOutput
	ToGetXoaHostsHostArrayOutputWithContext(context.Context) GetXoaHostsHostArrayOutput
}

GetXoaHostsHostArrayInput is an input type that accepts GetXoaHostsHostArray and GetXoaHostsHostArrayOutput values. You can construct a concrete instance of `GetXoaHostsHostArrayInput` via:

GetXoaHostsHostArray{ GetXoaHostsHostArgs{...} }

type GetXoaHostsHostArrayOutput

type GetXoaHostsHostArrayOutput struct{ *pulumi.OutputState }

func (GetXoaHostsHostArrayOutput) ElementType

func (GetXoaHostsHostArrayOutput) ElementType() reflect.Type

func (GetXoaHostsHostArrayOutput) Index

func (GetXoaHostsHostArrayOutput) ToGetXoaHostsHostArrayOutput

func (o GetXoaHostsHostArrayOutput) ToGetXoaHostsHostArrayOutput() GetXoaHostsHostArrayOutput

func (GetXoaHostsHostArrayOutput) ToGetXoaHostsHostArrayOutputWithContext

func (o GetXoaHostsHostArrayOutput) ToGetXoaHostsHostArrayOutputWithContext(ctx context.Context) GetXoaHostsHostArrayOutput

type GetXoaHostsHostInput

type GetXoaHostsHostInput interface {
	pulumi.Input

	ToGetXoaHostsHostOutput() GetXoaHostsHostOutput
	ToGetXoaHostsHostOutputWithContext(context.Context) GetXoaHostsHostOutput
}

GetXoaHostsHostInput is an input type that accepts GetXoaHostsHostArgs and GetXoaHostsHostOutput values. You can construct a concrete instance of `GetXoaHostsHostInput` via:

GetXoaHostsHostArgs{...}

type GetXoaHostsHostOutput

type GetXoaHostsHostOutput struct{ *pulumi.OutputState }

func (GetXoaHostsHostOutput) Cpus

CPU information about the host. The 'cores' key will contain the number of cpu cores and the 'sockets' key will contain the number of sockets.

func (GetXoaHostsHostOutput) ElementType

func (GetXoaHostsHostOutput) ElementType() reflect.Type

func (GetXoaHostsHostOutput) Id

func (GetXoaHostsHostOutput) Memory

The memory size of the host.

func (GetXoaHostsHostOutput) MemoryUsage

func (o GetXoaHostsHostOutput) MemoryUsage() pulumi.IntOutput

The memory usage of the host.

func (GetXoaHostsHostOutput) NameLabel

The name label of the host.

func (GetXoaHostsHostOutput) PoolId

Id of the pool that the host belongs to.

func (GetXoaHostsHostOutput) Tags

The tags (labels) applied to the given entity.

func (GetXoaHostsHostOutput) ToGetXoaHostsHostOutput

func (o GetXoaHostsHostOutput) ToGetXoaHostsHostOutput() GetXoaHostsHostOutput

func (GetXoaHostsHostOutput) ToGetXoaHostsHostOutputWithContext

func (o GetXoaHostsHostOutput) ToGetXoaHostsHostOutputWithContext(ctx context.Context) GetXoaHostsHostOutput

type GetXoaHostsOutputArgs

type GetXoaHostsOutputArgs struct {
	// The pool id used to filter the resulting hosts by.
	PoolId pulumi.StringInput `pulumi:"poolId"`
	// The host field to sort the results by (id and nameLabel are supported).
	SortBy pulumi.StringPtrInput `pulumi:"sortBy"`
	// Valid options are `asc` or `desc` and sort order is applied to `sortBy` argument.
	SortOrder pulumi.StringPtrInput `pulumi:"sortOrder"`
	// The tags (labels) applied to the given entity.
	Tags pulumi.StringArrayInput `pulumi:"tags"`
}

A collection of arguments for invoking getXoaHosts.

func (GetXoaHostsOutputArgs) ElementType

func (GetXoaHostsOutputArgs) ElementType() reflect.Type

type GetXoaHostsResult

type GetXoaHostsResult struct {
	// The resulting hosts after applying the argument filtering.
	Hosts []GetXoaHostsHost `pulumi:"hosts"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The primary host of the pool.
	Master string `pulumi:"master"`
	// The pool id used to filter the resulting hosts by.
	PoolId string `pulumi:"poolId"`
	// The host field to sort the results by (id and nameLabel are supported).
	SortBy *string `pulumi:"sortBy"`
	// Valid options are `asc` or `desc` and sort order is applied to `sortBy` argument.
	SortOrder *string `pulumi:"sortOrder"`
	// The tags (labels) applied to the given entity.
	Tags []string `pulumi:"tags"`
}

A collection of values returned by getXoaHosts.

func GetXoaHosts

func GetXoaHosts(ctx *pulumi.Context, args *GetXoaHostsArgs, opts ...pulumi.InvokeOption) (*GetXoaHostsResult, error)

Use this data source to filter Xenorchestra hosts by certain criteria (name_label, tags) for use in other resources.

type GetXoaHostsResultOutput

type GetXoaHostsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getXoaHosts.

func (GetXoaHostsResultOutput) ElementType

func (GetXoaHostsResultOutput) ElementType() reflect.Type

func (GetXoaHostsResultOutput) Hosts

The resulting hosts after applying the argument filtering.

func (GetXoaHostsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetXoaHostsResultOutput) Master

The primary host of the pool.

func (GetXoaHostsResultOutput) PoolId

The pool id used to filter the resulting hosts by.

func (GetXoaHostsResultOutput) SortBy

The host field to sort the results by (id and nameLabel are supported).

func (GetXoaHostsResultOutput) SortOrder

Valid options are `asc` or `desc` and sort order is applied to `sortBy` argument.

func (GetXoaHostsResultOutput) Tags

The tags (labels) applied to the given entity.

func (GetXoaHostsResultOutput) ToGetXoaHostsResultOutput

func (o GetXoaHostsResultOutput) ToGetXoaHostsResultOutput() GetXoaHostsResultOutput

func (GetXoaHostsResultOutput) ToGetXoaHostsResultOutputWithContext

func (o GetXoaHostsResultOutput) ToGetXoaHostsResultOutputWithContext(ctx context.Context) GetXoaHostsResultOutput

type GetXoaPifArgs

type GetXoaPifArgs struct {
	// The name of the network device. Examples include eth0, eth1, etc. See `ifconfig` for possible devices.
	Device string `pulumi:"device"`
	// The ID of the host that the PIF belongs to.
	HostId *string `pulumi:"hostId"`
	// The VLAN the PIF belongs to.
	Vlan int `pulumi:"vlan"`
}

A collection of arguments for invoking getXoaPif.

type GetXoaPifOutputArgs

type GetXoaPifOutputArgs struct {
	// The name of the network device. Examples include eth0, eth1, etc. See `ifconfig` for possible devices.
	Device pulumi.StringInput `pulumi:"device"`
	// The ID of the host that the PIF belongs to.
	HostId pulumi.StringPtrInput `pulumi:"hostId"`
	// The VLAN the PIF belongs to.
	Vlan pulumi.IntInput `pulumi:"vlan"`
}

A collection of arguments for invoking getXoaPif.

func (GetXoaPifOutputArgs) ElementType

func (GetXoaPifOutputArgs) ElementType() reflect.Type

type GetXoaPifResult

type GetXoaPifResult struct {
	// If the PIF is attached to the network.
	Attached bool `pulumi:"attached"`
	// The name of the network device. Examples include eth0, eth1, etc. See `ifconfig` for possible devices.
	Device string `pulumi:"device"`
	// The host the PIF is associated with.
	Host string `pulumi:"host"`
	// The ID of the host that the PIF belongs to.
	HostId string `pulumi:"hostId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The network the PIF is associated with.
	Network string `pulumi:"network"`
	// The pool the PIF is associated with.
	PoolId string `pulumi:"poolId"`
	// The uuid of the PIF.
	Uuid string `pulumi:"uuid"`
	// The VLAN the PIF belongs to.
	Vlan int `pulumi:"vlan"`
}

A collection of values returned by getXoaPif.

func GetXoaPif

func GetXoaPif(ctx *pulumi.Context, args *GetXoaPifArgs, opts ...pulumi.InvokeOption) (*GetXoaPifResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		eth0, err := xenorchestra.GetXoaPif(ctx, &xenorchestra.GetXoaPifArgs{
			Device: "eth0",
			Vlan:   -1,
		}, nil)
		if err != nil {
			return err
		}
		_, err = xenorchestra.NewVm(ctx, "demo-vm", &xenorchestra.VmArgs{
			Networks: xenorchestra.VmNetworkArray{
				&xenorchestra.VmNetworkArgs{
					NetworkId: pulumi.String(eth0.Network),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetXoaPifResultOutput

type GetXoaPifResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getXoaPif.

func (GetXoaPifResultOutput) Attached

If the PIF is attached to the network.

func (GetXoaPifResultOutput) Device

The name of the network device. Examples include eth0, eth1, etc. See `ifconfig` for possible devices.

func (GetXoaPifResultOutput) ElementType

func (GetXoaPifResultOutput) ElementType() reflect.Type

func (GetXoaPifResultOutput) Host

The host the PIF is associated with.

func (GetXoaPifResultOutput) HostId

The ID of the host that the PIF belongs to.

func (GetXoaPifResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetXoaPifResultOutput) Network

The network the PIF is associated with.

func (GetXoaPifResultOutput) PoolId

The pool the PIF is associated with.

func (GetXoaPifResultOutput) ToGetXoaPifResultOutput

func (o GetXoaPifResultOutput) ToGetXoaPifResultOutput() GetXoaPifResultOutput

func (GetXoaPifResultOutput) ToGetXoaPifResultOutputWithContext

func (o GetXoaPifResultOutput) ToGetXoaPifResultOutputWithContext(ctx context.Context) GetXoaPifResultOutput

func (GetXoaPifResultOutput) Uuid

The uuid of the PIF.

func (GetXoaPifResultOutput) Vlan

The VLAN the PIF belongs to.

type GetXoaPoolArgs

type GetXoaPoolArgs struct {
	// The nameLabel of the pool to look up.
	NameLabel string `pulumi:"nameLabel"`
}

A collection of arguments for invoking getXoaPool.

type GetXoaPoolOutputArgs

type GetXoaPoolOutputArgs struct {
	// The nameLabel of the pool to look up.
	NameLabel pulumi.StringInput `pulumi:"nameLabel"`
}

A collection of arguments for invoking getXoaPool.

func (GetXoaPoolOutputArgs) ElementType

func (GetXoaPoolOutputArgs) ElementType() reflect.Type

type GetXoaPoolResult

type GetXoaPoolResult struct {
	// CPU information about the pool. The 'cores' key will contain the number of cpu cores and the 'sockets' key will contain the number of sockets.
	Cpus map[string]string `pulumi:"cpus"`
	// The description of the pool.
	Description string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The id of the primary instance in the pool.
	Master string `pulumi:"master"`
	// The nameLabel of the pool to look up.
	NameLabel string `pulumi:"nameLabel"`
}

A collection of values returned by getXoaPool.

func GetXoaPool

func GetXoaPool(ctx *pulumi.Context, args *GetXoaPoolArgs, opts ...pulumi.InvokeOption) (*GetXoaPoolResult, error)

Provides information about a pool.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		pool, err := xenorchestra.GetXoaPool(ctx, &xenorchestra.GetXoaPoolArgs{
			NameLabel: "Your pool",
		}, nil)
		if err != nil {
			return err
		}
		_, err = xenorchestra.GetXoaStorageRepository(ctx, &xenorchestra.GetXoaStorageRepositoryArgs{
			NameLabel: "Your storage repository label",
			PoolId:    pulumi.StringRef(pool.Id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetXoaPoolResultOutput

type GetXoaPoolResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getXoaPool.

func (GetXoaPoolResultOutput) Cpus

CPU information about the pool. The 'cores' key will contain the number of cpu cores and the 'sockets' key will contain the number of sockets.

func (GetXoaPoolResultOutput) Description

func (o GetXoaPoolResultOutput) Description() pulumi.StringOutput

The description of the pool.

func (GetXoaPoolResultOutput) ElementType

func (GetXoaPoolResultOutput) ElementType() reflect.Type

func (GetXoaPoolResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetXoaPoolResultOutput) Master

The id of the primary instance in the pool.

func (GetXoaPoolResultOutput) NameLabel

The nameLabel of the pool to look up.

func (GetXoaPoolResultOutput) ToGetXoaPoolResultOutput

func (o GetXoaPoolResultOutput) ToGetXoaPoolResultOutput() GetXoaPoolResultOutput

func (GetXoaPoolResultOutput) ToGetXoaPoolResultOutputWithContext

func (o GetXoaPoolResultOutput) ToGetXoaPoolResultOutputWithContext(ctx context.Context) GetXoaPoolResultOutput

type GetXoaResourceSetArgs

type GetXoaResourceSetArgs struct {
	// The name of the resource set to look up.
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getXoaResourceSet.

type GetXoaResourceSetOutputArgs

type GetXoaResourceSetOutputArgs struct {
	// The name of the resource set to look up.
	Name pulumi.StringInput `pulumi:"name"`
}

A collection of arguments for invoking getXoaResourceSet.

func (GetXoaResourceSetOutputArgs) ElementType

type GetXoaResourceSetResult

type GetXoaResourceSetResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name of the resource set to look up.
	Name string `pulumi:"name"`
}

A collection of values returned by getXoaResourceSet.

func GetXoaResourceSet

func GetXoaResourceSet(ctx *pulumi.Context, args *GetXoaResourceSetArgs, opts ...pulumi.InvokeOption) (*GetXoaResourceSetResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := xenorchestra.GetXoaResourceSet(ctx, &xenorchestra.GetXoaResourceSetArgs{
			Name: "my resource set",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetXoaResourceSetResultOutput

type GetXoaResourceSetResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getXoaResourceSet.

func (GetXoaResourceSetResultOutput) ElementType

func (GetXoaResourceSetResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetXoaResourceSetResultOutput) Name

The name of the resource set to look up.

func (GetXoaResourceSetResultOutput) ToGetXoaResourceSetResultOutput

func (o GetXoaResourceSetResultOutput) ToGetXoaResourceSetResultOutput() GetXoaResourceSetResultOutput

func (GetXoaResourceSetResultOutput) ToGetXoaResourceSetResultOutputWithContext

func (o GetXoaResourceSetResultOutput) ToGetXoaResourceSetResultOutputWithContext(ctx context.Context) GetXoaResourceSetResultOutput

type GetXoaStorageRepositoryArgs

type GetXoaStorageRepositoryArgs struct {
	// The name of the storage repository to look up
	NameLabel string `pulumi:"nameLabel"`
	// The Id of the pool the storage repository exists on.
	PoolId *string `pulumi:"poolId"`
	// The tags (labels) applied to the given entity.
	Tags []string `pulumi:"tags"`
}

A collection of arguments for invoking getXoaStorageRepository.

type GetXoaStorageRepositoryOutputArgs

type GetXoaStorageRepositoryOutputArgs struct {
	// The name of the storage repository to look up
	NameLabel pulumi.StringInput `pulumi:"nameLabel"`
	// The Id of the pool the storage repository exists on.
	PoolId pulumi.StringPtrInput `pulumi:"poolId"`
	// The tags (labels) applied to the given entity.
	Tags pulumi.StringArrayInput `pulumi:"tags"`
}

A collection of arguments for invoking getXoaStorageRepository.

func (GetXoaStorageRepositoryOutputArgs) ElementType

type GetXoaStorageRepositoryResult

type GetXoaStorageRepositoryResult struct {
	// The storage container.
	Container string `pulumi:"container"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name of the storage repository to look up
	NameLabel string `pulumi:"nameLabel"`
	// The physical storage size.
	PhysicalUsage float64 `pulumi:"physicalUsage"`
	// The Id of the pool the storage repository exists on.
	PoolId *string `pulumi:"poolId"`
	// The storage size.
	Size float64 `pulumi:"size"`
	// The type of storage repository (lvm, udev, iso, user, etc).
	SrType string `pulumi:"srType"`
	// The tags (labels) applied to the given entity.
	Tags []string `pulumi:"tags"`
	// The current usage for this storage repository.
	Usage float64 `pulumi:"usage"`
	// uuid of the storage repository. This is equivalent to the id.
	Uuid string `pulumi:"uuid"`
}

A collection of values returned by getXoaStorageRepository.

func GetXoaStorageRepository

func GetXoaStorageRepository(ctx *pulumi.Context, args *GetXoaStorageRepositoryArgs, opts ...pulumi.InvokeOption) (*GetXoaStorageRepositoryResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		localStorage, err := xenorchestra.GetXoaStorageRepository(ctx, &xenorchestra.GetXoaStorageRepositoryArgs{
			NameLabel: "Your storage repository label",
		}, nil)
		if err != nil {
			return err
		}
		_, err = xenorchestra.NewVm(ctx, "demo-vm", &xenorchestra.VmArgs{
			Disks: xenorchestra.VmDiskArray{
				&xenorchestra.VmDiskArgs{
					SrId:      pulumi.String(localStorage.Id),
					NameLabel: pulumi.String("Ubuntu Bionic Beaver 18.04_imavo"),
					Size:      pulumi.Float64(32212254720),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetXoaStorageRepositoryResultOutput

type GetXoaStorageRepositoryResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getXoaStorageRepository.

func (GetXoaStorageRepositoryResultOutput) Container

The storage container.

func (GetXoaStorageRepositoryResultOutput) ElementType

func (GetXoaStorageRepositoryResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetXoaStorageRepositoryResultOutput) NameLabel

The name of the storage repository to look up

func (GetXoaStorageRepositoryResultOutput) PhysicalUsage

The physical storage size.

func (GetXoaStorageRepositoryResultOutput) PoolId

The Id of the pool the storage repository exists on.

func (GetXoaStorageRepositoryResultOutput) Size

The storage size.

func (GetXoaStorageRepositoryResultOutput) SrType

The type of storage repository (lvm, udev, iso, user, etc).

func (GetXoaStorageRepositoryResultOutput) Tags

The tags (labels) applied to the given entity.

func (GetXoaStorageRepositoryResultOutput) ToGetXoaStorageRepositoryResultOutput

func (o GetXoaStorageRepositoryResultOutput) ToGetXoaStorageRepositoryResultOutput() GetXoaStorageRepositoryResultOutput

func (GetXoaStorageRepositoryResultOutput) ToGetXoaStorageRepositoryResultOutputWithContext

func (o GetXoaStorageRepositoryResultOutput) ToGetXoaStorageRepositoryResultOutputWithContext(ctx context.Context) GetXoaStorageRepositoryResultOutput

func (GetXoaStorageRepositoryResultOutput) Usage

The current usage for this storage repository.

func (GetXoaStorageRepositoryResultOutput) Uuid

uuid of the storage repository. This is equivalent to the id.

type GetXoaTemplateArgs

type GetXoaTemplateArgs struct {
	// The name of the template to look up.
	NameLabel string `pulumi:"nameLabel"`
	// The id of the pool that the template belongs to.
	PoolId *string `pulumi:"poolId"`
}

A collection of arguments for invoking getXoaTemplate.

type GetXoaTemplateOutputArgs

type GetXoaTemplateOutputArgs struct {
	// The name of the template to look up.
	NameLabel pulumi.StringInput `pulumi:"nameLabel"`
	// The id of the pool that the template belongs to.
	PoolId pulumi.StringPtrInput `pulumi:"poolId"`
}

A collection of arguments for invoking getXoaTemplate.

func (GetXoaTemplateOutputArgs) ElementType

func (GetXoaTemplateOutputArgs) ElementType() reflect.Type

type GetXoaTemplateResult

type GetXoaTemplateResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name of the template to look up.
	NameLabel string `pulumi:"nameLabel"`
	// The id of the pool that the template belongs to.
	PoolId *string `pulumi:"poolId"`
	// The uuid of the template.
	Uuid string `pulumi:"uuid"`
}

A collection of values returned by getXoaTemplate.

func GetXoaTemplate

func GetXoaTemplate(ctx *pulumi.Context, args *GetXoaTemplateArgs, opts ...pulumi.InvokeOption) (*GetXoaTemplateResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		template, err := xenorchestra.GetXoaTemplate(ctx, &xenorchestra.GetXoaTemplateArgs{
			NameLabel: "Ubuntu Bionic Beaver 18.04",
		}, nil)
		if err != nil {
			return err
		}
		_, err = xenorchestra.NewVm(ctx, "demo-vm", &xenorchestra.VmArgs{
			Template: pulumi.String(template.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetXoaTemplateResultOutput

type GetXoaTemplateResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getXoaTemplate.

func (GetXoaTemplateResultOutput) ElementType

func (GetXoaTemplateResultOutput) ElementType() reflect.Type

func (GetXoaTemplateResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetXoaTemplateResultOutput) NameLabel

The name of the template to look up.

func (GetXoaTemplateResultOutput) PoolId

The id of the pool that the template belongs to.

func (GetXoaTemplateResultOutput) ToGetXoaTemplateResultOutput

func (o GetXoaTemplateResultOutput) ToGetXoaTemplateResultOutput() GetXoaTemplateResultOutput

func (GetXoaTemplateResultOutput) ToGetXoaTemplateResultOutputWithContext

func (o GetXoaTemplateResultOutput) ToGetXoaTemplateResultOutputWithContext(ctx context.Context) GetXoaTemplateResultOutput

func (GetXoaTemplateResultOutput) Uuid

The uuid of the template.

type GetXoaUserArgs

type GetXoaUserArgs struct {
	// A boolean which will search for the user in the current session (`session.getUser` Xen Orchestra RPC call). This allows a non admin user to look up their own user account.
	SearchInSession *bool `pulumi:"searchInSession"`
	// The username of the XO user.
	Username string `pulumi:"username"`
}

A collection of arguments for invoking getXoaUser.

type GetXoaUserOutputArgs

type GetXoaUserOutputArgs struct {
	// A boolean which will search for the user in the current session (`session.getUser` Xen Orchestra RPC call). This allows a non admin user to look up their own user account.
	SearchInSession pulumi.BoolPtrInput `pulumi:"searchInSession"`
	// The username of the XO user.
	Username pulumi.StringInput `pulumi:"username"`
}

A collection of arguments for invoking getXoaUser.

func (GetXoaUserOutputArgs) ElementType

func (GetXoaUserOutputArgs) ElementType() reflect.Type

type GetXoaUserResult

type GetXoaUserResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A boolean which will search for the user in the current session (`session.getUser` Xen Orchestra RPC call). This allows a non admin user to look up their own user account.
	SearchInSession *bool `pulumi:"searchInSession"`
	// The username of the XO user.
	Username string `pulumi:"username"`
}

A collection of values returned by getXoaUser.

func GetXoaUser

func GetXoaUser(ctx *pulumi.Context, args *GetXoaUserArgs, opts ...pulumi.InvokeOption) (*GetXoaUserResult, error)

Provides information about a Xen Orchestra user. If the Xen Orchestra user account you are using is not an admin, see the `searchInSession` parameter.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := xenorchestra.GetXoaUser(ctx, &xenorchestra.GetXoaUserArgs{
			Username: "my-username",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetXoaUserResultOutput

type GetXoaUserResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getXoaUser.

func (GetXoaUserResultOutput) ElementType

func (GetXoaUserResultOutput) ElementType() reflect.Type

func (GetXoaUserResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetXoaUserResultOutput) SearchInSession

func (o GetXoaUserResultOutput) SearchInSession() pulumi.BoolPtrOutput

A boolean which will search for the user in the current session (`session.getUser` Xen Orchestra RPC call). This allows a non admin user to look up their own user account.

func (GetXoaUserResultOutput) ToGetXoaUserResultOutput

func (o GetXoaUserResultOutput) ToGetXoaUserResultOutput() GetXoaUserResultOutput

func (GetXoaUserResultOutput) ToGetXoaUserResultOutputWithContext

func (o GetXoaUserResultOutput) ToGetXoaUserResultOutputWithContext(ctx context.Context) GetXoaUserResultOutput

func (GetXoaUserResultOutput) Username

The username of the XO user.

type GetXoaVdiArgs

type GetXoaVdiArgs struct {
	// The ID of the VDI.
	Id *string `pulumi:"id"`
	// The name of the VDI to look up.
	NameLabel *string `pulumi:"nameLabel"`
	// The ID of the pool the VDI belongs to. This is useful if you have a VDI with the same name on different pools.
	PoolId *string `pulumi:"poolId"`
	// The tags (labels) applied to the given entity.
	Tags []string `pulumi:"tags"`
}

A collection of arguments for invoking getXoaVdi.

type GetXoaVdiOutputArgs

type GetXoaVdiOutputArgs struct {
	// The ID of the VDI.
	Id pulumi.StringPtrInput `pulumi:"id"`
	// The name of the VDI to look up.
	NameLabel pulumi.StringPtrInput `pulumi:"nameLabel"`
	// The ID of the pool the VDI belongs to. This is useful if you have a VDI with the same name on different pools.
	PoolId pulumi.StringPtrInput `pulumi:"poolId"`
	// The tags (labels) applied to the given entity.
	Tags pulumi.StringArrayInput `pulumi:"tags"`
}

A collection of arguments for invoking getXoaVdi.

func (GetXoaVdiOutputArgs) ElementType

func (GetXoaVdiOutputArgs) ElementType() reflect.Type

type GetXoaVdiResult

type GetXoaVdiResult struct {
	// The ID of the VDI.
	Id string `pulumi:"id"`
	// The name of the VDI to look up.
	NameLabel *string `pulumi:"nameLabel"`
	// The ID of the parent VDI if one exists. An example of when a VDI will have a parent is when it was created from a VM fast clone.
	Parent string `pulumi:"parent"`
	// The ID of the pool the VDI belongs to. This is useful if you have a VDI with the same name on different pools.
	PoolId *string `pulumi:"poolId"`
	// The tags (labels) applied to the given entity.
	Tags []string `pulumi:"tags"`
}

A collection of values returned by getXoaVdi.

func GetXoaVdi

func GetXoaVdi(ctx *pulumi.Context, args *GetXoaVdiArgs, opts ...pulumi.InvokeOption) (*GetXoaVdiResult, error)

## Example Usage

type GetXoaVdiResultOutput

type GetXoaVdiResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getXoaVdi.

func (GetXoaVdiResultOutput) ElementType

func (GetXoaVdiResultOutput) ElementType() reflect.Type

func (GetXoaVdiResultOutput) Id

The ID of the VDI.

func (GetXoaVdiResultOutput) NameLabel

The name of the VDI to look up.

func (GetXoaVdiResultOutput) Parent

The ID of the parent VDI if one exists. An example of when a VDI will have a parent is when it was created from a VM fast clone.

func (GetXoaVdiResultOutput) PoolId

The ID of the pool the VDI belongs to. This is useful if you have a VDI with the same name on different pools.

func (GetXoaVdiResultOutput) Tags

The tags (labels) applied to the given entity.

func (GetXoaVdiResultOutput) ToGetXoaVdiResultOutput

func (o GetXoaVdiResultOutput) ToGetXoaVdiResultOutput() GetXoaVdiResultOutput

func (GetXoaVdiResultOutput) ToGetXoaVdiResultOutputWithContext

func (o GetXoaVdiResultOutput) ToGetXoaVdiResultOutputWithContext(ctx context.Context) GetXoaVdiResultOutput

type GetXoaVmsArgs

type GetXoaVmsArgs struct {
	Host *string `pulumi:"host"`
	// The ID of the pool the VM belongs to.
	PoolId string `pulumi:"poolId"`
	// The power state of the vms. (Running, Halted)
	PowerState *string `pulumi:"powerState"`
}

A collection of arguments for invoking getXoaVms.

type GetXoaVmsOutputArgs

type GetXoaVmsOutputArgs struct {
	Host pulumi.StringPtrInput `pulumi:"host"`
	// The ID of the pool the VM belongs to.
	PoolId pulumi.StringInput `pulumi:"poolId"`
	// The power state of the vms. (Running, Halted)
	PowerState pulumi.StringPtrInput `pulumi:"powerState"`
}

A collection of arguments for invoking getXoaVms.

func (GetXoaVmsOutputArgs) ElementType

func (GetXoaVmsOutputArgs) ElementType() reflect.Type

type GetXoaVmsResult

type GetXoaVmsResult struct {
	Host *string `pulumi:"host"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The ID of the pool the VM belongs to.
	PoolId string `pulumi:"poolId"`
	// The power state of the vms. (Running, Halted)
	PowerState *string `pulumi:"powerState"`
	// A list of information for all vms found in this pool.
	Vms []GetXoaVmsVm `pulumi:"vms"`
}

A collection of values returned by getXoaVms.

func GetXoaVms

func GetXoaVms(ctx *pulumi.Context, args *GetXoaVmsArgs, opts ...pulumi.InvokeOption) (*GetXoaVmsResult, error)

Use this data source to filter Xenorchestra VMs by certain criteria (pool_id, powerState or host) for use in other resources.

type GetXoaVmsResultOutput

type GetXoaVmsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getXoaVms.

func (GetXoaVmsResultOutput) ElementType

func (GetXoaVmsResultOutput) ElementType() reflect.Type

func (GetXoaVmsResultOutput) Host

func (GetXoaVmsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetXoaVmsResultOutput) PoolId

The ID of the pool the VM belongs to.

func (GetXoaVmsResultOutput) PowerState

The power state of the vms. (Running, Halted)

func (GetXoaVmsResultOutput) ToGetXoaVmsResultOutput

func (o GetXoaVmsResultOutput) ToGetXoaVmsResultOutput() GetXoaVmsResultOutput

func (GetXoaVmsResultOutput) ToGetXoaVmsResultOutputWithContext

func (o GetXoaVmsResultOutput) ToGetXoaVmsResultOutputWithContext(ctx context.Context) GetXoaVmsResultOutput

func (GetXoaVmsResultOutput) Vms

A list of information for all vms found in this pool.

type GetXoaVmsVm

type GetXoaVmsVm struct {
	// The preferred host you would like the VM to run on. If changed on an existing VM it will require a reboot for the VM to be rescheduled.
	AffinityHost *string `pulumi:"affinityHost"`
	// If the VM will automatically turn on. Defaults to `false`.
	AutoPoweron *bool `pulumi:"autoPoweron"`
	// List of operations on a VM that are not permitted. Examples include: clean_reboot, clean_shutdown, hard_reboot, hard_shutdown, pause, shutdown, suspend, destroy. This can be used to prevent a VM from being destroyed. The entire list can be found here
	BlockedOperations []string `pulumi:"blockedOperations"`
	// The type of clone to perform for the VM. Possible values include `fast` or `full` and defaults to `fast`. In order to perform a `full` clone, the VM template must not be a disk template.
	CloneType *string `pulumi:"cloneType"`
	// The content of the cloud-init config to use. See the cloud init docs for more [information](https://cloudinit.readthedocs.io/en/latest/topics/examples.html).
	CloudConfig *string `pulumi:"cloudConfig"`
	// The content of the cloud-init network configuration for the VM (uses [version 1](https://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v1.html))
	CloudNetworkConfig *string `pulumi:"cloudNetworkConfig"`
	CoreOs             *bool   `pulumi:"coreOs"`
	CpuCap             *int    `pulumi:"cpuCap"`
	CpuWeight          *int    `pulumi:"cpuWeight"`
	// The number of CPUs the VM will have. Updates to this field will cause a stop and start of the VM if the new CPU value is greater than the max CPU value. This can be determined with the following command:
	Cpus int `pulumi:"cpus"`
	// The disk the VM will have access to.
	Disks []GetXoaVmsVmDisk `pulumi:"disks"`
	// Boolean parameter that allows a VM to use nested virtualization.
	ExpNestedHvm *bool `pulumi:"expNestedHvm"`
	// The restart priority for the VM. Possible values are `best-effort`, `restart` and empty string (no restarts on failure. Defaults to empty string
	HighAvailability *string `pulumi:"highAvailability"`
	Host             *string `pulumi:"host"`
	// The firmware to use for the VM. Possible values are `bios` and `uefi`.
	HvmBootFirmware *string  `pulumi:"hvmBootFirmware"`
	Id              string   `pulumi:"id"`
	Ipv4Addresses   []string `pulumi:"ipv4Addresses"`
	// This is only accessible if guest-tools is installed in the VM and if `expectedIpCidr` is set on any network interfaces. This will contain a list of the ipv6 addresses across all network interfaces in order.
	Ipv6Addresses []string `pulumi:"ipv6Addresses"`
	// The amount of memory in bytes the VM will have. Updates to this field will case a stop and start of the VM if the new value is greater than the dynamic memory max. This can be determined with the following command:
	MemoryMax int `pulumi:"memoryMax"`
	// The description of the VM.
	NameDescription *string `pulumi:"nameDescription"`
	// The name of the VM.
	NameLabel string `pulumi:"nameLabel"`
	// The network for the VM.
	Networks []GetXoaVmsVmNetwork `pulumi:"networks"`
	// The power state of the VM. This can be Running, Halted, Paused or Suspended.
	PowerState  *string `pulumi:"powerState"`
	ResourceSet *string `pulumi:"resourceSet"`
	// Number of seconds the VM should be delayed from starting.
	StartDelay *int `pulumi:"startDelay"`
	// The tags (labels) applied to the given entity.
	Tags []string `pulumi:"tags"`
	// The ID of the VM template to create the new VM from.
	Template string `pulumi:"template"`
	// The video adapter the VM should use. Possible values include std and cirrus.
	Vga *string `pulumi:"vga"`
	// The videoram option the VM should use. Possible values include 1, 2, 4, 8, 16
	Videoram *int `pulumi:"videoram"`
	// The key value pairs to be populated in xenstore.
	Xenstore map[string]string `pulumi:"xenstore"`
}

type GetXoaVmsVmArgs

type GetXoaVmsVmArgs struct {
	// The preferred host you would like the VM to run on. If changed on an existing VM it will require a reboot for the VM to be rescheduled.
	AffinityHost pulumi.StringPtrInput `pulumi:"affinityHost"`
	// If the VM will automatically turn on. Defaults to `false`.
	AutoPoweron pulumi.BoolPtrInput `pulumi:"autoPoweron"`
	// List of operations on a VM that are not permitted. Examples include: clean_reboot, clean_shutdown, hard_reboot, hard_shutdown, pause, shutdown, suspend, destroy. This can be used to prevent a VM from being destroyed. The entire list can be found here
	BlockedOperations pulumi.StringArrayInput `pulumi:"blockedOperations"`
	// The type of clone to perform for the VM. Possible values include `fast` or `full` and defaults to `fast`. In order to perform a `full` clone, the VM template must not be a disk template.
	CloneType pulumi.StringPtrInput `pulumi:"cloneType"`
	// The content of the cloud-init config to use. See the cloud init docs for more [information](https://cloudinit.readthedocs.io/en/latest/topics/examples.html).
	CloudConfig pulumi.StringPtrInput `pulumi:"cloudConfig"`
	// The content of the cloud-init network configuration for the VM (uses [version 1](https://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v1.html))
	CloudNetworkConfig pulumi.StringPtrInput `pulumi:"cloudNetworkConfig"`
	CoreOs             pulumi.BoolPtrInput   `pulumi:"coreOs"`
	CpuCap             pulumi.IntPtrInput    `pulumi:"cpuCap"`
	CpuWeight          pulumi.IntPtrInput    `pulumi:"cpuWeight"`
	// The number of CPUs the VM will have. Updates to this field will cause a stop and start of the VM if the new CPU value is greater than the max CPU value. This can be determined with the following command:
	Cpus pulumi.IntInput `pulumi:"cpus"`
	// The disk the VM will have access to.
	Disks GetXoaVmsVmDiskArrayInput `pulumi:"disks"`
	// Boolean parameter that allows a VM to use nested virtualization.
	ExpNestedHvm pulumi.BoolPtrInput `pulumi:"expNestedHvm"`
	// The restart priority for the VM. Possible values are `best-effort`, `restart` and empty string (no restarts on failure. Defaults to empty string
	HighAvailability pulumi.StringPtrInput `pulumi:"highAvailability"`
	Host             pulumi.StringPtrInput `pulumi:"host"`
	// The firmware to use for the VM. Possible values are `bios` and `uefi`.
	HvmBootFirmware pulumi.StringPtrInput   `pulumi:"hvmBootFirmware"`
	Id              pulumi.StringInput      `pulumi:"id"`
	Ipv4Addresses   pulumi.StringArrayInput `pulumi:"ipv4Addresses"`
	// This is only accessible if guest-tools is installed in the VM and if `expectedIpCidr` is set on any network interfaces. This will contain a list of the ipv6 addresses across all network interfaces in order.
	Ipv6Addresses pulumi.StringArrayInput `pulumi:"ipv6Addresses"`
	// The amount of memory in bytes the VM will have. Updates to this field will case a stop and start of the VM if the new value is greater than the dynamic memory max. This can be determined with the following command:
	MemoryMax pulumi.IntInput `pulumi:"memoryMax"`
	// The description of the VM.
	NameDescription pulumi.StringPtrInput `pulumi:"nameDescription"`
	// The name of the VM.
	NameLabel pulumi.StringInput `pulumi:"nameLabel"`
	// The network for the VM.
	Networks GetXoaVmsVmNetworkArrayInput `pulumi:"networks"`
	// The power state of the VM. This can be Running, Halted, Paused or Suspended.
	PowerState  pulumi.StringPtrInput `pulumi:"powerState"`
	ResourceSet pulumi.StringPtrInput `pulumi:"resourceSet"`
	// Number of seconds the VM should be delayed from starting.
	StartDelay pulumi.IntPtrInput `pulumi:"startDelay"`
	// The tags (labels) applied to the given entity.
	Tags pulumi.StringArrayInput `pulumi:"tags"`
	// The ID of the VM template to create the new VM from.
	Template pulumi.StringInput `pulumi:"template"`
	// The video adapter the VM should use. Possible values include std and cirrus.
	Vga pulumi.StringPtrInput `pulumi:"vga"`
	// The videoram option the VM should use. Possible values include 1, 2, 4, 8, 16
	Videoram pulumi.IntPtrInput `pulumi:"videoram"`
	// The key value pairs to be populated in xenstore.
	Xenstore pulumi.StringMapInput `pulumi:"xenstore"`
}

func (GetXoaVmsVmArgs) ElementType

func (GetXoaVmsVmArgs) ElementType() reflect.Type

func (GetXoaVmsVmArgs) ToGetXoaVmsVmOutput

func (i GetXoaVmsVmArgs) ToGetXoaVmsVmOutput() GetXoaVmsVmOutput

func (GetXoaVmsVmArgs) ToGetXoaVmsVmOutputWithContext

func (i GetXoaVmsVmArgs) ToGetXoaVmsVmOutputWithContext(ctx context.Context) GetXoaVmsVmOutput

type GetXoaVmsVmArray

type GetXoaVmsVmArray []GetXoaVmsVmInput

func (GetXoaVmsVmArray) ElementType

func (GetXoaVmsVmArray) ElementType() reflect.Type

func (GetXoaVmsVmArray) ToGetXoaVmsVmArrayOutput

func (i GetXoaVmsVmArray) ToGetXoaVmsVmArrayOutput() GetXoaVmsVmArrayOutput

func (GetXoaVmsVmArray) ToGetXoaVmsVmArrayOutputWithContext

func (i GetXoaVmsVmArray) ToGetXoaVmsVmArrayOutputWithContext(ctx context.Context) GetXoaVmsVmArrayOutput

type GetXoaVmsVmArrayInput

type GetXoaVmsVmArrayInput interface {
	pulumi.Input

	ToGetXoaVmsVmArrayOutput() GetXoaVmsVmArrayOutput
	ToGetXoaVmsVmArrayOutputWithContext(context.Context) GetXoaVmsVmArrayOutput
}

GetXoaVmsVmArrayInput is an input type that accepts GetXoaVmsVmArray and GetXoaVmsVmArrayOutput values. You can construct a concrete instance of `GetXoaVmsVmArrayInput` via:

GetXoaVmsVmArray{ GetXoaVmsVmArgs{...} }

type GetXoaVmsVmArrayOutput

type GetXoaVmsVmArrayOutput struct{ *pulumi.OutputState }

func (GetXoaVmsVmArrayOutput) ElementType

func (GetXoaVmsVmArrayOutput) ElementType() reflect.Type

func (GetXoaVmsVmArrayOutput) Index

func (GetXoaVmsVmArrayOutput) ToGetXoaVmsVmArrayOutput

func (o GetXoaVmsVmArrayOutput) ToGetXoaVmsVmArrayOutput() GetXoaVmsVmArrayOutput

func (GetXoaVmsVmArrayOutput) ToGetXoaVmsVmArrayOutputWithContext

func (o GetXoaVmsVmArrayOutput) ToGetXoaVmsVmArrayOutputWithContext(ctx context.Context) GetXoaVmsVmArrayOutput

type GetXoaVmsVmDisk

type GetXoaVmsVmDisk struct {
	// Whether the device should be attached to the VM.
	Attached *bool `pulumi:"attached"`
	// The description for the disk
	NameDescription *string `pulumi:"nameDescription"`
	// The name for the disk
	NameLabel string `pulumi:"nameLabel"`
	// Indicates the order of the block device.
	Position string `pulumi:"position"`
	// The size in bytes for the disk.
	Size int `pulumi:"size"`
	// The storage repository ID to use.
	SrId  string `pulumi:"srId"`
	VbdId string `pulumi:"vbdId"`
	VdiId string `pulumi:"vdiId"`
}

type GetXoaVmsVmDiskArgs

type GetXoaVmsVmDiskArgs struct {
	// Whether the device should be attached to the VM.
	Attached pulumi.BoolPtrInput `pulumi:"attached"`
	// The description for the disk
	NameDescription pulumi.StringPtrInput `pulumi:"nameDescription"`
	// The name for the disk
	NameLabel pulumi.StringInput `pulumi:"nameLabel"`
	// Indicates the order of the block device.
	Position pulumi.StringInput `pulumi:"position"`
	// The size in bytes for the disk.
	Size pulumi.IntInput `pulumi:"size"`
	// The storage repository ID to use.
	SrId  pulumi.StringInput `pulumi:"srId"`
	VbdId pulumi.StringInput `pulumi:"vbdId"`
	VdiId pulumi.StringInput `pulumi:"vdiId"`
}

func (GetXoaVmsVmDiskArgs) ElementType

func (GetXoaVmsVmDiskArgs) ElementType() reflect.Type

func (GetXoaVmsVmDiskArgs) ToGetXoaVmsVmDiskOutput

func (i GetXoaVmsVmDiskArgs) ToGetXoaVmsVmDiskOutput() GetXoaVmsVmDiskOutput

func (GetXoaVmsVmDiskArgs) ToGetXoaVmsVmDiskOutputWithContext

func (i GetXoaVmsVmDiskArgs) ToGetXoaVmsVmDiskOutputWithContext(ctx context.Context) GetXoaVmsVmDiskOutput

type GetXoaVmsVmDiskArray

type GetXoaVmsVmDiskArray []GetXoaVmsVmDiskInput

func (GetXoaVmsVmDiskArray) ElementType

func (GetXoaVmsVmDiskArray) ElementType() reflect.Type

func (GetXoaVmsVmDiskArray) ToGetXoaVmsVmDiskArrayOutput

func (i GetXoaVmsVmDiskArray) ToGetXoaVmsVmDiskArrayOutput() GetXoaVmsVmDiskArrayOutput

func (GetXoaVmsVmDiskArray) ToGetXoaVmsVmDiskArrayOutputWithContext

func (i GetXoaVmsVmDiskArray) ToGetXoaVmsVmDiskArrayOutputWithContext(ctx context.Context) GetXoaVmsVmDiskArrayOutput

type GetXoaVmsVmDiskArrayInput

type GetXoaVmsVmDiskArrayInput interface {
	pulumi.Input

	ToGetXoaVmsVmDiskArrayOutput() GetXoaVmsVmDiskArrayOutput
	ToGetXoaVmsVmDiskArrayOutputWithContext(context.Context) GetXoaVmsVmDiskArrayOutput
}

GetXoaVmsVmDiskArrayInput is an input type that accepts GetXoaVmsVmDiskArray and GetXoaVmsVmDiskArrayOutput values. You can construct a concrete instance of `GetXoaVmsVmDiskArrayInput` via:

GetXoaVmsVmDiskArray{ GetXoaVmsVmDiskArgs{...} }

type GetXoaVmsVmDiskArrayOutput

type GetXoaVmsVmDiskArrayOutput struct{ *pulumi.OutputState }

func (GetXoaVmsVmDiskArrayOutput) ElementType

func (GetXoaVmsVmDiskArrayOutput) ElementType() reflect.Type

func (GetXoaVmsVmDiskArrayOutput) Index

func (GetXoaVmsVmDiskArrayOutput) ToGetXoaVmsVmDiskArrayOutput

func (o GetXoaVmsVmDiskArrayOutput) ToGetXoaVmsVmDiskArrayOutput() GetXoaVmsVmDiskArrayOutput

func (GetXoaVmsVmDiskArrayOutput) ToGetXoaVmsVmDiskArrayOutputWithContext

func (o GetXoaVmsVmDiskArrayOutput) ToGetXoaVmsVmDiskArrayOutputWithContext(ctx context.Context) GetXoaVmsVmDiskArrayOutput

type GetXoaVmsVmDiskInput

type GetXoaVmsVmDiskInput interface {
	pulumi.Input

	ToGetXoaVmsVmDiskOutput() GetXoaVmsVmDiskOutput
	ToGetXoaVmsVmDiskOutputWithContext(context.Context) GetXoaVmsVmDiskOutput
}

GetXoaVmsVmDiskInput is an input type that accepts GetXoaVmsVmDiskArgs and GetXoaVmsVmDiskOutput values. You can construct a concrete instance of `GetXoaVmsVmDiskInput` via:

GetXoaVmsVmDiskArgs{...}

type GetXoaVmsVmDiskOutput

type GetXoaVmsVmDiskOutput struct{ *pulumi.OutputState }

func (GetXoaVmsVmDiskOutput) Attached

Whether the device should be attached to the VM.

func (GetXoaVmsVmDiskOutput) ElementType

func (GetXoaVmsVmDiskOutput) ElementType() reflect.Type

func (GetXoaVmsVmDiskOutput) NameDescription

func (o GetXoaVmsVmDiskOutput) NameDescription() pulumi.StringPtrOutput

The description for the disk

func (GetXoaVmsVmDiskOutput) NameLabel

The name for the disk

func (GetXoaVmsVmDiskOutput) Position

Indicates the order of the block device.

func (GetXoaVmsVmDiskOutput) Size

The size in bytes for the disk.

func (GetXoaVmsVmDiskOutput) SrId

The storage repository ID to use.

func (GetXoaVmsVmDiskOutput) ToGetXoaVmsVmDiskOutput

func (o GetXoaVmsVmDiskOutput) ToGetXoaVmsVmDiskOutput() GetXoaVmsVmDiskOutput

func (GetXoaVmsVmDiskOutput) ToGetXoaVmsVmDiskOutputWithContext

func (o GetXoaVmsVmDiskOutput) ToGetXoaVmsVmDiskOutputWithContext(ctx context.Context) GetXoaVmsVmDiskOutput

func (GetXoaVmsVmDiskOutput) VbdId

func (GetXoaVmsVmDiskOutput) VdiId

type GetXoaVmsVmInput

type GetXoaVmsVmInput interface {
	pulumi.Input

	ToGetXoaVmsVmOutput() GetXoaVmsVmOutput
	ToGetXoaVmsVmOutputWithContext(context.Context) GetXoaVmsVmOutput
}

GetXoaVmsVmInput is an input type that accepts GetXoaVmsVmArgs and GetXoaVmsVmOutput values. You can construct a concrete instance of `GetXoaVmsVmInput` via:

GetXoaVmsVmArgs{...}

type GetXoaVmsVmNetwork

type GetXoaVmsVmNetwork struct {
	// Whether the device should be attached to the VM.
	Attached       *bool    `pulumi:"attached"`
	Device         string   `pulumi:"device"`
	ExpectedIpCidr *string  `pulumi:"expectedIpCidr"`
	Ipv4Addresses  []string `pulumi:"ipv4Addresses"`
	Ipv6Addresses  []string `pulumi:"ipv6Addresses"`
	MacAddress     string   `pulumi:"macAddress"`
	// The ID of the network the VM will be on.
	NetworkId string `pulumi:"networkId"`
}

type GetXoaVmsVmNetworkArgs

type GetXoaVmsVmNetworkArgs struct {
	// Whether the device should be attached to the VM.
	Attached       pulumi.BoolPtrInput     `pulumi:"attached"`
	Device         pulumi.StringInput      `pulumi:"device"`
	ExpectedIpCidr pulumi.StringPtrInput   `pulumi:"expectedIpCidr"`
	Ipv4Addresses  pulumi.StringArrayInput `pulumi:"ipv4Addresses"`
	Ipv6Addresses  pulumi.StringArrayInput `pulumi:"ipv6Addresses"`
	MacAddress     pulumi.StringInput      `pulumi:"macAddress"`
	// The ID of the network the VM will be on.
	NetworkId pulumi.StringInput `pulumi:"networkId"`
}

func (GetXoaVmsVmNetworkArgs) ElementType

func (GetXoaVmsVmNetworkArgs) ElementType() reflect.Type

func (GetXoaVmsVmNetworkArgs) ToGetXoaVmsVmNetworkOutput

func (i GetXoaVmsVmNetworkArgs) ToGetXoaVmsVmNetworkOutput() GetXoaVmsVmNetworkOutput

func (GetXoaVmsVmNetworkArgs) ToGetXoaVmsVmNetworkOutputWithContext

func (i GetXoaVmsVmNetworkArgs) ToGetXoaVmsVmNetworkOutputWithContext(ctx context.Context) GetXoaVmsVmNetworkOutput

type GetXoaVmsVmNetworkArray

type GetXoaVmsVmNetworkArray []GetXoaVmsVmNetworkInput

func (GetXoaVmsVmNetworkArray) ElementType

func (GetXoaVmsVmNetworkArray) ElementType() reflect.Type

func (GetXoaVmsVmNetworkArray) ToGetXoaVmsVmNetworkArrayOutput

func (i GetXoaVmsVmNetworkArray) ToGetXoaVmsVmNetworkArrayOutput() GetXoaVmsVmNetworkArrayOutput

func (GetXoaVmsVmNetworkArray) ToGetXoaVmsVmNetworkArrayOutputWithContext

func (i GetXoaVmsVmNetworkArray) ToGetXoaVmsVmNetworkArrayOutputWithContext(ctx context.Context) GetXoaVmsVmNetworkArrayOutput

type GetXoaVmsVmNetworkArrayInput

type GetXoaVmsVmNetworkArrayInput interface {
	pulumi.Input

	ToGetXoaVmsVmNetworkArrayOutput() GetXoaVmsVmNetworkArrayOutput
	ToGetXoaVmsVmNetworkArrayOutputWithContext(context.Context) GetXoaVmsVmNetworkArrayOutput
}

GetXoaVmsVmNetworkArrayInput is an input type that accepts GetXoaVmsVmNetworkArray and GetXoaVmsVmNetworkArrayOutput values. You can construct a concrete instance of `GetXoaVmsVmNetworkArrayInput` via:

GetXoaVmsVmNetworkArray{ GetXoaVmsVmNetworkArgs{...} }

type GetXoaVmsVmNetworkArrayOutput

type GetXoaVmsVmNetworkArrayOutput struct{ *pulumi.OutputState }

func (GetXoaVmsVmNetworkArrayOutput) ElementType

func (GetXoaVmsVmNetworkArrayOutput) Index

func (GetXoaVmsVmNetworkArrayOutput) ToGetXoaVmsVmNetworkArrayOutput

func (o GetXoaVmsVmNetworkArrayOutput) ToGetXoaVmsVmNetworkArrayOutput() GetXoaVmsVmNetworkArrayOutput

func (GetXoaVmsVmNetworkArrayOutput) ToGetXoaVmsVmNetworkArrayOutputWithContext

func (o GetXoaVmsVmNetworkArrayOutput) ToGetXoaVmsVmNetworkArrayOutputWithContext(ctx context.Context) GetXoaVmsVmNetworkArrayOutput

type GetXoaVmsVmNetworkInput

type GetXoaVmsVmNetworkInput interface {
	pulumi.Input

	ToGetXoaVmsVmNetworkOutput() GetXoaVmsVmNetworkOutput
	ToGetXoaVmsVmNetworkOutputWithContext(context.Context) GetXoaVmsVmNetworkOutput
}

GetXoaVmsVmNetworkInput is an input type that accepts GetXoaVmsVmNetworkArgs and GetXoaVmsVmNetworkOutput values. You can construct a concrete instance of `GetXoaVmsVmNetworkInput` via:

GetXoaVmsVmNetworkArgs{...}

type GetXoaVmsVmNetworkOutput

type GetXoaVmsVmNetworkOutput struct{ *pulumi.OutputState }

func (GetXoaVmsVmNetworkOutput) Attached

Whether the device should be attached to the VM.

func (GetXoaVmsVmNetworkOutput) Device

func (GetXoaVmsVmNetworkOutput) ElementType

func (GetXoaVmsVmNetworkOutput) ElementType() reflect.Type

func (GetXoaVmsVmNetworkOutput) ExpectedIpCidr

func (o GetXoaVmsVmNetworkOutput) ExpectedIpCidr() pulumi.StringPtrOutput

func (GetXoaVmsVmNetworkOutput) Ipv4Addresses

func (GetXoaVmsVmNetworkOutput) Ipv6Addresses

func (GetXoaVmsVmNetworkOutput) MacAddress

func (GetXoaVmsVmNetworkOutput) NetworkId

The ID of the network the VM will be on.

func (GetXoaVmsVmNetworkOutput) ToGetXoaVmsVmNetworkOutput

func (o GetXoaVmsVmNetworkOutput) ToGetXoaVmsVmNetworkOutput() GetXoaVmsVmNetworkOutput

func (GetXoaVmsVmNetworkOutput) ToGetXoaVmsVmNetworkOutputWithContext

func (o GetXoaVmsVmNetworkOutput) ToGetXoaVmsVmNetworkOutputWithContext(ctx context.Context) GetXoaVmsVmNetworkOutput

type GetXoaVmsVmOutput

type GetXoaVmsVmOutput struct{ *pulumi.OutputState }

func (GetXoaVmsVmOutput) AffinityHost

func (o GetXoaVmsVmOutput) AffinityHost() pulumi.StringPtrOutput

The preferred host you would like the VM to run on. If changed on an existing VM it will require a reboot for the VM to be rescheduled.

func (GetXoaVmsVmOutput) AutoPoweron

func (o GetXoaVmsVmOutput) AutoPoweron() pulumi.BoolPtrOutput

If the VM will automatically turn on. Defaults to `false`.

func (GetXoaVmsVmOutput) BlockedOperations

func (o GetXoaVmsVmOutput) BlockedOperations() pulumi.StringArrayOutput

List of operations on a VM that are not permitted. Examples include: clean_reboot, clean_shutdown, hard_reboot, hard_shutdown, pause, shutdown, suspend, destroy. This can be used to prevent a VM from being destroyed. The entire list can be found here

func (GetXoaVmsVmOutput) CloneType

The type of clone to perform for the VM. Possible values include `fast` or `full` and defaults to `fast`. In order to perform a `full` clone, the VM template must not be a disk template.

func (GetXoaVmsVmOutput) CloudConfig

func (o GetXoaVmsVmOutput) CloudConfig() pulumi.StringPtrOutput

The content of the cloud-init config to use. See the cloud init docs for more [information](https://cloudinit.readthedocs.io/en/latest/topics/examples.html).

func (GetXoaVmsVmOutput) CloudNetworkConfig

func (o GetXoaVmsVmOutput) CloudNetworkConfig() pulumi.StringPtrOutput

The content of the cloud-init network configuration for the VM (uses [version 1](https://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v1.html))

func (GetXoaVmsVmOutput) CoreOs

func (GetXoaVmsVmOutput) CpuCap

func (GetXoaVmsVmOutput) CpuWeight

func (o GetXoaVmsVmOutput) CpuWeight() pulumi.IntPtrOutput

func (GetXoaVmsVmOutput) Cpus

The number of CPUs the VM will have. Updates to this field will cause a stop and start of the VM if the new CPU value is greater than the max CPU value. This can be determined with the following command:

func (GetXoaVmsVmOutput) Disks

The disk the VM will have access to.

func (GetXoaVmsVmOutput) ElementType

func (GetXoaVmsVmOutput) ElementType() reflect.Type

func (GetXoaVmsVmOutput) ExpNestedHvm

func (o GetXoaVmsVmOutput) ExpNestedHvm() pulumi.BoolPtrOutput

Boolean parameter that allows a VM to use nested virtualization.

func (GetXoaVmsVmOutput) HighAvailability

func (o GetXoaVmsVmOutput) HighAvailability() pulumi.StringPtrOutput

The restart priority for the VM. Possible values are `best-effort`, `restart` and empty string (no restarts on failure. Defaults to empty string

func (GetXoaVmsVmOutput) Host

func (GetXoaVmsVmOutput) HvmBootFirmware

func (o GetXoaVmsVmOutput) HvmBootFirmware() pulumi.StringPtrOutput

The firmware to use for the VM. Possible values are `bios` and `uefi`.

func (GetXoaVmsVmOutput) Id

func (GetXoaVmsVmOutput) Ipv4Addresses

func (o GetXoaVmsVmOutput) Ipv4Addresses() pulumi.StringArrayOutput

func (GetXoaVmsVmOutput) Ipv6Addresses

func (o GetXoaVmsVmOutput) Ipv6Addresses() pulumi.StringArrayOutput

This is only accessible if guest-tools is installed in the VM and if `expectedIpCidr` is set on any network interfaces. This will contain a list of the ipv6 addresses across all network interfaces in order.

func (GetXoaVmsVmOutput) MemoryMax

func (o GetXoaVmsVmOutput) MemoryMax() pulumi.IntOutput

The amount of memory in bytes the VM will have. Updates to this field will case a stop and start of the VM if the new value is greater than the dynamic memory max. This can be determined with the following command:

func (GetXoaVmsVmOutput) NameDescription

func (o GetXoaVmsVmOutput) NameDescription() pulumi.StringPtrOutput

The description of the VM.

func (GetXoaVmsVmOutput) NameLabel

func (o GetXoaVmsVmOutput) NameLabel() pulumi.StringOutput

The name of the VM.

func (GetXoaVmsVmOutput) Networks

The network for the VM.

func (GetXoaVmsVmOutput) PowerState

func (o GetXoaVmsVmOutput) PowerState() pulumi.StringPtrOutput

The power state of the VM. This can be Running, Halted, Paused or Suspended.

func (GetXoaVmsVmOutput) ResourceSet

func (o GetXoaVmsVmOutput) ResourceSet() pulumi.StringPtrOutput

func (GetXoaVmsVmOutput) StartDelay

func (o GetXoaVmsVmOutput) StartDelay() pulumi.IntPtrOutput

Number of seconds the VM should be delayed from starting.

func (GetXoaVmsVmOutput) Tags

The tags (labels) applied to the given entity.

func (GetXoaVmsVmOutput) Template

func (o GetXoaVmsVmOutput) Template() pulumi.StringOutput

The ID of the VM template to create the new VM from.

func (GetXoaVmsVmOutput) ToGetXoaVmsVmOutput

func (o GetXoaVmsVmOutput) ToGetXoaVmsVmOutput() GetXoaVmsVmOutput

func (GetXoaVmsVmOutput) ToGetXoaVmsVmOutputWithContext

func (o GetXoaVmsVmOutput) ToGetXoaVmsVmOutputWithContext(ctx context.Context) GetXoaVmsVmOutput

func (GetXoaVmsVmOutput) Vga

The video adapter the VM should use. Possible values include std and cirrus.

func (GetXoaVmsVmOutput) Videoram

func (o GetXoaVmsVmOutput) Videoram() pulumi.IntPtrOutput

The videoram option the VM should use. Possible values include 1, 2, 4, 8, 16

func (GetXoaVmsVmOutput) Xenstore

The key value pairs to be populated in xenstore.

type LookupCloudConfigArgs

type LookupCloudConfigArgs struct {
	// The name of the cloud config you want to look up.
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getCloudConfig.

type LookupCloudConfigOutputArgs

type LookupCloudConfigOutputArgs struct {
	// The name of the cloud config you want to look up.
	Name pulumi.StringInput `pulumi:"name"`
}

A collection of arguments for invoking getCloudConfig.

func (LookupCloudConfigOutputArgs) ElementType

type LookupCloudConfigResult

type LookupCloudConfigResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name of the cloud config you want to look up.
	Name string `pulumi:"name"`
	// The contents of the cloud-config.
	Template string `pulumi:"template"`
}

A collection of values returned by getCloudConfig.

func LookupCloudConfig deprecated

func LookupCloudConfig(ctx *pulumi.Context, args *LookupCloudConfigArgs, opts ...pulumi.InvokeOption) (*LookupCloudConfigResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := xenorchestra.GetXoaCloudConfig(ctx, &xenorchestra.GetXoaCloudConfigArgs{
			Name: "Name of cloud config",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

Deprecated: xenorchestra.index/getcloudconfig.getCloudConfig has been deprecated in favor of xenorchestra.index/getxoacloudconfig.getXoaCloudConfig

type LookupCloudConfigResultOutput

type LookupCloudConfigResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getCloudConfig.

func (LookupCloudConfigResultOutput) ElementType

func (LookupCloudConfigResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupCloudConfigResultOutput) Name

The name of the cloud config you want to look up.

func (LookupCloudConfigResultOutput) Template

The contents of the cloud-config.

func (LookupCloudConfigResultOutput) ToLookupCloudConfigResultOutput

func (o LookupCloudConfigResultOutput) ToLookupCloudConfigResultOutput() LookupCloudConfigResultOutput

func (LookupCloudConfigResultOutput) ToLookupCloudConfigResultOutputWithContext

func (o LookupCloudConfigResultOutput) ToLookupCloudConfigResultOutputWithContext(ctx context.Context) LookupCloudConfigResultOutput

type LookupNetworkArgs

type LookupNetworkArgs struct {
	// The name of the bridge network interface.
	Bridge *string `pulumi:"bridge"`
	// The name of the network.
	NameLabel string `pulumi:"nameLabel"`
	// The pool the network is associated with.
	PoolId *string `pulumi:"poolId"`
}

A collection of arguments for invoking getNetwork.

type LookupNetworkOutputArgs

type LookupNetworkOutputArgs struct {
	// The name of the bridge network interface.
	Bridge pulumi.StringPtrInput `pulumi:"bridge"`
	// The name of the network.
	NameLabel pulumi.StringInput `pulumi:"nameLabel"`
	// The pool the network is associated with.
	PoolId pulumi.StringPtrInput `pulumi:"poolId"`
}

A collection of arguments for invoking getNetwork.

func (LookupNetworkOutputArgs) ElementType

func (LookupNetworkOutputArgs) ElementType() reflect.Type

type LookupNetworkResult

type LookupNetworkResult struct {
	// The name of the bridge network interface.
	Bridge string `pulumi:"bridge"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name of the network.
	NameLabel string `pulumi:"nameLabel"`
	// The pool the network is associated with.
	PoolId *string `pulumi:"poolId"`
}

A collection of values returned by getNetwork.

func LookupNetwork deprecated

func LookupNetwork(ctx *pulumi.Context, args *LookupNetworkArgs, opts ...pulumi.InvokeOption) (*LookupNetworkResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		net, err := xenorchestra.LookupXoaNetwork(ctx, &xenorchestra.LookupXoaNetworkArgs{
			NameLabel: "Pool-wide network associated with eth0",
		}, nil)
		if err != nil {
			return err
		}
		_, err = xenorchestra.NewVm(ctx, "demo-vm", &xenorchestra.VmArgs{
			Networks: xenorchestra.VmNetworkArray{
				&xenorchestra.VmNetworkArgs{
					NetworkId: pulumi.String(net.Id),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

Deprecated: xenorchestra.index/getnetwork.getNetwork has been deprecated in favor of xenorchestra.index/getxoanetwork.getXoaNetwork

type LookupNetworkResultOutput

type LookupNetworkResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getNetwork.

func (LookupNetworkResultOutput) Bridge

The name of the bridge network interface.

func (LookupNetworkResultOutput) ElementType

func (LookupNetworkResultOutput) ElementType() reflect.Type

func (LookupNetworkResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupNetworkResultOutput) NameLabel

The name of the network.

func (LookupNetworkResultOutput) PoolId

The pool the network is associated with.

func (LookupNetworkResultOutput) ToLookupNetworkResultOutput

func (o LookupNetworkResultOutput) ToLookupNetworkResultOutput() LookupNetworkResultOutput

func (LookupNetworkResultOutput) ToLookupNetworkResultOutputWithContext

func (o LookupNetworkResultOutput) ToLookupNetworkResultOutputWithContext(ctx context.Context) LookupNetworkResultOutput

type LookupResourceSetArgs

type LookupResourceSetArgs struct {
	// The name of the resource set to look up.
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getResourceSet.

type LookupResourceSetOutputArgs

type LookupResourceSetOutputArgs struct {
	// The name of the resource set to look up.
	Name pulumi.StringInput `pulumi:"name"`
}

A collection of arguments for invoking getResourceSet.

func (LookupResourceSetOutputArgs) ElementType

type LookupResourceSetResult

type LookupResourceSetResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name of the resource set to look up.
	Name string `pulumi:"name"`
}

A collection of values returned by getResourceSet.

func LookupResourceSet deprecated

func LookupResourceSet(ctx *pulumi.Context, args *LookupResourceSetArgs, opts ...pulumi.InvokeOption) (*LookupResourceSetResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := xenorchestra.GetXoaResourceSet(ctx, &xenorchestra.GetXoaResourceSetArgs{
			Name: "my resource set",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

Deprecated: xenorchestra.index/getresourceset.getResourceSet has been deprecated in favor of xenorchestra.index/getxoaresourceset.getXoaResourceSet

type LookupResourceSetResultOutput

type LookupResourceSetResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getResourceSet.

func (LookupResourceSetResultOutput) ElementType

func (LookupResourceSetResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupResourceSetResultOutput) Name

The name of the resource set to look up.

func (LookupResourceSetResultOutput) ToLookupResourceSetResultOutput

func (o LookupResourceSetResultOutput) ToLookupResourceSetResultOutput() LookupResourceSetResultOutput

func (LookupResourceSetResultOutput) ToLookupResourceSetResultOutputWithContext

func (o LookupResourceSetResultOutput) ToLookupResourceSetResultOutputWithContext(ctx context.Context) LookupResourceSetResultOutput

type LookupVdiArgs

type LookupVdiArgs struct {
	// The ID of the VDI.
	Id *string `pulumi:"id"`
	// The name of the VDI to look up.
	NameLabel *string `pulumi:"nameLabel"`
	// The ID of the pool the VDI belongs to. This is useful if you have a VDI with the same name on different pools.
	PoolId *string `pulumi:"poolId"`
	// The tags (labels) applied to the given entity.
	Tags []string `pulumi:"tags"`
}

A collection of arguments for invoking getVdi.

type LookupVdiOutputArgs

type LookupVdiOutputArgs struct {
	// The ID of the VDI.
	Id pulumi.StringPtrInput `pulumi:"id"`
	// The name of the VDI to look up.
	NameLabel pulumi.StringPtrInput `pulumi:"nameLabel"`
	// The ID of the pool the VDI belongs to. This is useful if you have a VDI with the same name on different pools.
	PoolId pulumi.StringPtrInput `pulumi:"poolId"`
	// The tags (labels) applied to the given entity.
	Tags pulumi.StringArrayInput `pulumi:"tags"`
}

A collection of arguments for invoking getVdi.

func (LookupVdiOutputArgs) ElementType

func (LookupVdiOutputArgs) ElementType() reflect.Type

type LookupVdiResult

type LookupVdiResult struct {
	// The ID of the VDI.
	Id string `pulumi:"id"`
	// The name of the VDI to look up.
	NameLabel *string `pulumi:"nameLabel"`
	// The ID of the parent VDI if one exists. An example of when a VDI will have a parent is when it was created from a VM fast clone.
	Parent string `pulumi:"parent"`
	// The ID of the pool the VDI belongs to. This is useful if you have a VDI with the same name on different pools.
	PoolId *string `pulumi:"poolId"`
	// The tags (labels) applied to the given entity.
	Tags []string `pulumi:"tags"`
}

A collection of values returned by getVdi.

func LookupVdi deprecated

func LookupVdi(ctx *pulumi.Context, args *LookupVdiArgs, opts ...pulumi.InvokeOption) (*LookupVdiResult, error)

## Example Usage

Deprecated: xenorchestra.index/getvdi.getVdi has been deprecated in favor of xenorchestra.index/getxoavdi.getXoaVdi

type LookupVdiResultOutput

type LookupVdiResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getVdi.

func (LookupVdiResultOutput) ElementType

func (LookupVdiResultOutput) ElementType() reflect.Type

func (LookupVdiResultOutput) Id

The ID of the VDI.

func (LookupVdiResultOutput) NameLabel

The name of the VDI to look up.

func (LookupVdiResultOutput) Parent

The ID of the parent VDI if one exists. An example of when a VDI will have a parent is when it was created from a VM fast clone.

func (LookupVdiResultOutput) PoolId

The ID of the pool the VDI belongs to. This is useful if you have a VDI with the same name on different pools.

func (LookupVdiResultOutput) Tags

The tags (labels) applied to the given entity.

func (LookupVdiResultOutput) ToLookupVdiResultOutput

func (o LookupVdiResultOutput) ToLookupVdiResultOutput() LookupVdiResultOutput

func (LookupVdiResultOutput) ToLookupVdiResultOutputWithContext

func (o LookupVdiResultOutput) ToLookupVdiResultOutputWithContext(ctx context.Context) LookupVdiResultOutput

type LookupXoaNetworkArgs

type LookupXoaNetworkArgs struct {
	// The name of the bridge network interface.
	Bridge *string `pulumi:"bridge"`
	// The name of the network.
	NameLabel string `pulumi:"nameLabel"`
	// The pool the network is associated with.
	PoolId *string `pulumi:"poolId"`
}

A collection of arguments for invoking getXoaNetwork.

type LookupXoaNetworkOutputArgs

type LookupXoaNetworkOutputArgs struct {
	// The name of the bridge network interface.
	Bridge pulumi.StringPtrInput `pulumi:"bridge"`
	// The name of the network.
	NameLabel pulumi.StringInput `pulumi:"nameLabel"`
	// The pool the network is associated with.
	PoolId pulumi.StringPtrInput `pulumi:"poolId"`
}

A collection of arguments for invoking getXoaNetwork.

func (LookupXoaNetworkOutputArgs) ElementType

func (LookupXoaNetworkOutputArgs) ElementType() reflect.Type

type LookupXoaNetworkResult

type LookupXoaNetworkResult struct {
	// The name of the bridge network interface.
	Bridge string `pulumi:"bridge"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name of the network.
	NameLabel string `pulumi:"nameLabel"`
	// The pool the network is associated with.
	PoolId *string `pulumi:"poolId"`
}

A collection of values returned by getXoaNetwork.

func LookupXoaNetwork

func LookupXoaNetwork(ctx *pulumi.Context, args *LookupXoaNetworkArgs, opts ...pulumi.InvokeOption) (*LookupXoaNetworkResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		net, err := xenorchestra.LookupXoaNetwork(ctx, &xenorchestra.LookupXoaNetworkArgs{
			NameLabel: "Pool-wide network associated with eth0",
		}, nil)
		if err != nil {
			return err
		}
		_, err = xenorchestra.NewVm(ctx, "demo-vm", &xenorchestra.VmArgs{
			Networks: xenorchestra.VmNetworkArray{
				&xenorchestra.VmNetworkArgs{
					NetworkId: pulumi.String(net.Id),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupXoaNetworkResultOutput

type LookupXoaNetworkResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getXoaNetwork.

func (LookupXoaNetworkResultOutput) Bridge

The name of the bridge network interface.

func (LookupXoaNetworkResultOutput) ElementType

func (LookupXoaNetworkResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupXoaNetworkResultOutput) NameLabel

The name of the network.

func (LookupXoaNetworkResultOutput) PoolId

The pool the network is associated with.

func (LookupXoaNetworkResultOutput) ToLookupXoaNetworkResultOutput

func (o LookupXoaNetworkResultOutput) ToLookupXoaNetworkResultOutput() LookupXoaNetworkResultOutput

func (LookupXoaNetworkResultOutput) ToLookupXoaNetworkResultOutputWithContext

func (o LookupXoaNetworkResultOutput) ToLookupXoaNetworkResultOutputWithContext(ctx context.Context) LookupXoaNetworkResultOutput

type Network deprecated

type Network struct {
	pulumi.CustomResourceState

	Automatic pulumi.BoolPtrOutput `pulumi:"automatic"`
	// This argument controls whether the network should enforce VIF locking. This defaults to `false` which means that no filtering rules are applied.
	DefaultIsLocked pulumi.BoolPtrOutput `pulumi:"defaultIsLocked"`
	// The MTU of the network. Defaults to `1500` if unspecified.
	Mtu             pulumi.IntPtrOutput    `pulumi:"mtu"`
	NameDescription pulumi.StringPtrOutput `pulumi:"nameDescription"`
	// The name label of the network.
	NameLabel pulumi.StringOutput `pulumi:"nameLabel"`
	// Whether the network should use a network block device. Defaults to `false` if unspecified.
	Nbd pulumi.BoolPtrOutput `pulumi:"nbd"`
	// The pool id that this network should belong to.
	PoolId pulumi.StringOutput `pulumi:"poolId"`
	// The PIF device (eth0, eth1, etc) that will be used as an input during network creation. This parameter is required if a vlan is specified.
	SourcePifDevice pulumi.StringPtrOutput `pulumi:"sourcePifDevice"`
	// The vlan to use for the network. Defaults to `0` meaning no VLAN.
	Vlan pulumi.IntPtrOutput `pulumi:"vlan"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		host1, err := xenorchestra.GetXoaHost(ctx, &xenorchestra.GetXoaHostArgs{
			NameLabel: "Your host",
		}, nil)
		if err != nil {
			return err
		}
		// Create a single server network private network
		_, err = xenorchestra.NewXoaNetwork(ctx, "private_network", &xenorchestra.XoaNetworkArgs{
			NameLabel: pulumi.String("new network name"),
			PoolId:    pulumi.String(host1.PoolId),
		})
		if err != nil {
			return err
		}
		// Create a network with a 22 VLAN tag from the eth0 device
		_, err = xenorchestra.NewXoaNetwork(ctx, "vlan_network", &xenorchestra.XoaNetworkArgs{
			NameLabel:       pulumi.String("new network name"),
			PoolId:          pulumi.String(host1.PoolId),
			SourcePifDevice: pulumi.String("eth0"),
			Vlan:            pulumi.Int(22),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

Deprecated: xenorchestra.index/network.Network has been deprecated in favor of xenorchestra.index/xoanetwork.XoaNetwork

func GetNetwork

func GetNetwork(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NetworkState, opts ...pulumi.ResourceOption) (*Network, error)

GetNetwork gets an existing Network 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 NewNetwork

func NewNetwork(ctx *pulumi.Context,
	name string, args *NetworkArgs, opts ...pulumi.ResourceOption) (*Network, error)

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

func (*Network) ElementType

func (*Network) ElementType() reflect.Type

func (*Network) ToNetworkOutput

func (i *Network) ToNetworkOutput() NetworkOutput

func (*Network) ToNetworkOutputWithContext

func (i *Network) ToNetworkOutputWithContext(ctx context.Context) NetworkOutput

type NetworkArgs

type NetworkArgs struct {
	Automatic pulumi.BoolPtrInput
	// This argument controls whether the network should enforce VIF locking. This defaults to `false` which means that no filtering rules are applied.
	DefaultIsLocked pulumi.BoolPtrInput
	// The MTU of the network. Defaults to `1500` if unspecified.
	Mtu             pulumi.IntPtrInput
	NameDescription pulumi.StringPtrInput
	// The name label of the network.
	NameLabel pulumi.StringInput
	// Whether the network should use a network block device. Defaults to `false` if unspecified.
	Nbd pulumi.BoolPtrInput
	// The pool id that this network should belong to.
	PoolId pulumi.StringInput
	// The PIF device (eth0, eth1, etc) that will be used as an input during network creation. This parameter is required if a vlan is specified.
	SourcePifDevice pulumi.StringPtrInput
	// The vlan to use for the network. Defaults to `0` meaning no VLAN.
	Vlan pulumi.IntPtrInput
}

The set of arguments for constructing a Network resource.

func (NetworkArgs) ElementType

func (NetworkArgs) ElementType() reflect.Type

type NetworkArray

type NetworkArray []NetworkInput

func (NetworkArray) ElementType

func (NetworkArray) ElementType() reflect.Type

func (NetworkArray) ToNetworkArrayOutput

func (i NetworkArray) ToNetworkArrayOutput() NetworkArrayOutput

func (NetworkArray) ToNetworkArrayOutputWithContext

func (i NetworkArray) ToNetworkArrayOutputWithContext(ctx context.Context) NetworkArrayOutput

type NetworkArrayInput

type NetworkArrayInput interface {
	pulumi.Input

	ToNetworkArrayOutput() NetworkArrayOutput
	ToNetworkArrayOutputWithContext(context.Context) NetworkArrayOutput
}

NetworkArrayInput is an input type that accepts NetworkArray and NetworkArrayOutput values. You can construct a concrete instance of `NetworkArrayInput` via:

NetworkArray{ NetworkArgs{...} }

type NetworkArrayOutput

type NetworkArrayOutput struct{ *pulumi.OutputState }

func (NetworkArrayOutput) ElementType

func (NetworkArrayOutput) ElementType() reflect.Type

func (NetworkArrayOutput) Index

func (NetworkArrayOutput) ToNetworkArrayOutput

func (o NetworkArrayOutput) ToNetworkArrayOutput() NetworkArrayOutput

func (NetworkArrayOutput) ToNetworkArrayOutputWithContext

func (o NetworkArrayOutput) ToNetworkArrayOutputWithContext(ctx context.Context) NetworkArrayOutput

type NetworkInput

type NetworkInput interface {
	pulumi.Input

	ToNetworkOutput() NetworkOutput
	ToNetworkOutputWithContext(ctx context.Context) NetworkOutput
}

type NetworkMap

type NetworkMap map[string]NetworkInput

func (NetworkMap) ElementType

func (NetworkMap) ElementType() reflect.Type

func (NetworkMap) ToNetworkMapOutput

func (i NetworkMap) ToNetworkMapOutput() NetworkMapOutput

func (NetworkMap) ToNetworkMapOutputWithContext

func (i NetworkMap) ToNetworkMapOutputWithContext(ctx context.Context) NetworkMapOutput

type NetworkMapInput

type NetworkMapInput interface {
	pulumi.Input

	ToNetworkMapOutput() NetworkMapOutput
	ToNetworkMapOutputWithContext(context.Context) NetworkMapOutput
}

NetworkMapInput is an input type that accepts NetworkMap and NetworkMapOutput values. You can construct a concrete instance of `NetworkMapInput` via:

NetworkMap{ "key": NetworkArgs{...} }

type NetworkMapOutput

type NetworkMapOutput struct{ *pulumi.OutputState }

func (NetworkMapOutput) ElementType

func (NetworkMapOutput) ElementType() reflect.Type

func (NetworkMapOutput) MapIndex

func (NetworkMapOutput) ToNetworkMapOutput

func (o NetworkMapOutput) ToNetworkMapOutput() NetworkMapOutput

func (NetworkMapOutput) ToNetworkMapOutputWithContext

func (o NetworkMapOutput) ToNetworkMapOutputWithContext(ctx context.Context) NetworkMapOutput

type NetworkOutput

type NetworkOutput struct{ *pulumi.OutputState }

func (NetworkOutput) Automatic

func (o NetworkOutput) Automatic() pulumi.BoolPtrOutput

func (NetworkOutput) DefaultIsLocked

func (o NetworkOutput) DefaultIsLocked() pulumi.BoolPtrOutput

This argument controls whether the network should enforce VIF locking. This defaults to `false` which means that no filtering rules are applied.

func (NetworkOutput) ElementType

func (NetworkOutput) ElementType() reflect.Type

func (NetworkOutput) Mtu

The MTU of the network. Defaults to `1500` if unspecified.

func (NetworkOutput) NameDescription

func (o NetworkOutput) NameDescription() pulumi.StringPtrOutput

func (NetworkOutput) NameLabel

func (o NetworkOutput) NameLabel() pulumi.StringOutput

The name label of the network.

func (NetworkOutput) Nbd

Whether the network should use a network block device. Defaults to `false` if unspecified.

func (NetworkOutput) PoolId

func (o NetworkOutput) PoolId() pulumi.StringOutput

The pool id that this network should belong to.

func (NetworkOutput) SourcePifDevice

func (o NetworkOutput) SourcePifDevice() pulumi.StringPtrOutput

The PIF device (eth0, eth1, etc) that will be used as an input during network creation. This parameter is required if a vlan is specified.

func (NetworkOutput) ToNetworkOutput

func (o NetworkOutput) ToNetworkOutput() NetworkOutput

func (NetworkOutput) ToNetworkOutputWithContext

func (o NetworkOutput) ToNetworkOutputWithContext(ctx context.Context) NetworkOutput

func (NetworkOutput) Vlan

The vlan to use for the network. Defaults to `0` meaning no VLAN.

type NetworkState

type NetworkState struct {
	Automatic pulumi.BoolPtrInput
	// This argument controls whether the network should enforce VIF locking. This defaults to `false` which means that no filtering rules are applied.
	DefaultIsLocked pulumi.BoolPtrInput
	// The MTU of the network. Defaults to `1500` if unspecified.
	Mtu             pulumi.IntPtrInput
	NameDescription pulumi.StringPtrInput
	// The name label of the network.
	NameLabel pulumi.StringPtrInput
	// Whether the network should use a network block device. Defaults to `false` if unspecified.
	Nbd pulumi.BoolPtrInput
	// The pool id that this network should belong to.
	PoolId pulumi.StringPtrInput
	// The PIF device (eth0, eth1, etc) that will be used as an input during network creation. This parameter is required if a vlan is specified.
	SourcePifDevice pulumi.StringPtrInput
	// The vlan to use for the network. Defaults to `0` meaning no VLAN.
	Vlan pulumi.IntPtrInput
}

func (NetworkState) ElementType

func (NetworkState) ElementType() reflect.Type

type Provider

type Provider struct {
	pulumi.ProviderResourceState

	// Password for xoa api. Can be set via the XOA_PASSWORD environment variable.
	Password pulumi.StringPtrOutput `pulumi:"password"`
	// If `retryMode` is set, this specifies the duration for which the backoff method will continue retries. Can be set via
	// the `XOA_RETRY_MAX_TIME` environment variable
	RetryMaxTime pulumi.StringPtrOutput `pulumi:"retryMaxTime"`
	// Specifies if retries should be attempted for requests that require eventual . Can be set via the XOA_RETRY_MODE
	// environment variable.
	RetryMode pulumi.StringPtrOutput `pulumi:"retryMode"`
	// Password for xoa api. Can be set via the XOA_TOKEN environment variable.
	Token pulumi.StringPtrOutput `pulumi:"token"`
	// Hostname of the xoa router. Can be set via the XOA_URL environment variable.
	Url pulumi.StringOutput `pulumi:"url"`
	// User account for xoa api. Can be set via the XOA_USER environment variable.
	Username pulumi.StringPtrOutput `pulumi:"username"`
}

The provider type for the xenorchestra package. By default, resources use package-wide configuration settings, however an explicit `Provider` instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.

func NewProvider

func NewProvider(ctx *pulumi.Context,
	name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)

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

func (*Provider) ElementType

func (*Provider) ElementType() reflect.Type

func (*Provider) ToProviderOutput

func (i *Provider) ToProviderOutput() ProviderOutput

func (*Provider) ToProviderOutputWithContext

func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type ProviderArgs

type ProviderArgs struct {
	// Whether SSL should be verified or not. Can be set via the XOA_INSECURE environment variable.
	Insecure pulumi.BoolPtrInput
	// Password for xoa api. Can be set via the XOA_PASSWORD environment variable.
	Password pulumi.StringPtrInput
	// If `retryMode` is set, this specifies the duration for which the backoff method will continue retries. Can be set via
	// the `XOA_RETRY_MAX_TIME` environment variable
	RetryMaxTime pulumi.StringPtrInput
	// Specifies if retries should be attempted for requests that require eventual . Can be set via the XOA_RETRY_MODE
	// environment variable.
	RetryMode pulumi.StringPtrInput
	// Password for xoa api. Can be set via the XOA_TOKEN environment variable.
	Token pulumi.StringPtrInput
	// Hostname of the xoa router. Can be set via the XOA_URL environment variable.
	Url pulumi.StringInput
	// User account for xoa api. Can be set via the XOA_USER environment variable.
	Username pulumi.StringPtrInput
}

The set of arguments for constructing a Provider resource.

func (ProviderArgs) ElementType

func (ProviderArgs) ElementType() reflect.Type

type ProviderInput

type ProviderInput interface {
	pulumi.Input

	ToProviderOutput() ProviderOutput
	ToProviderOutputWithContext(ctx context.Context) ProviderOutput
}

type ProviderOutput

type ProviderOutput struct{ *pulumi.OutputState }

func (ProviderOutput) ElementType

func (ProviderOutput) ElementType() reflect.Type

func (ProviderOutput) Password

func (o ProviderOutput) Password() pulumi.StringPtrOutput

Password for xoa api. Can be set via the XOA_PASSWORD environment variable.

func (ProviderOutput) RetryMaxTime

func (o ProviderOutput) RetryMaxTime() pulumi.StringPtrOutput

If `retryMode` is set, this specifies the duration for which the backoff method will continue retries. Can be set via the `XOA_RETRY_MAX_TIME` environment variable

func (ProviderOutput) RetryMode

func (o ProviderOutput) RetryMode() pulumi.StringPtrOutput

Specifies if retries should be attempted for requests that require eventual . Can be set via the XOA_RETRY_MODE environment variable.

func (ProviderOutput) ToProviderOutput

func (o ProviderOutput) ToProviderOutput() ProviderOutput

func (ProviderOutput) ToProviderOutputWithContext

func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

func (ProviderOutput) Token

Password for xoa api. Can be set via the XOA_TOKEN environment variable.

func (ProviderOutput) Url

Hostname of the xoa router. Can be set via the XOA_URL environment variable.

func (ProviderOutput) Username

func (o ProviderOutput) Username() pulumi.StringPtrOutput

User account for xoa api. Can be set via the XOA_USER environment variable.

type ResourceSet

type ResourceSet struct {
	pulumi.CustomResourceState

	// The limit applied to the resource set.
	Limits ResourceSetLimitArrayOutput `pulumi:"limits"`
	// The name of the resource set.
	Name pulumi.StringOutput `pulumi:"name"`
	// The uuids of the objects that are within scope of the resource set. A minimum of a storage repository, network and VM template are required for users to launch VMs.
	Objects pulumi.StringArrayOutput `pulumi:"objects"`
	// The uuids of the user accounts that should have access to the resource set.
	Subjects pulumi.StringArrayOutput `pulumi:"subjects"`
}

Creates a Xen Orchestra resource set.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		template, err := xenorchestra.GetXoaTemplate(ctx, &xenorchestra.GetXoaTemplateArgs{
			NameLabel: "Ubuntu Bionic Beaver 18.04",
		}, nil)
		if err != nil {
			return err
		}
		sr, err := xenorchestra.GetXoaStorageRepository(ctx, &xenorchestra.GetXoaStorageRepositoryArgs{
			NameLabel: "Your storage repository label",
		}, nil)
		if err != nil {
			return err
		}
		eth0, err := xenorchestra.GetXoaPif(ctx, &xenorchestra.GetXoaPifArgs{
			Device: "eth0",
			Vlan:   -1,
		}, nil)
		if err != nil {
			return err
		}
		user, err := xenorchestra.GetXoaUser(ctx, &xenorchestra.GetXoaUserArgs{
			Username: "test_user",
		}, nil)
		if err != nil {
			return err
		}
		_, err = xenorchestra.NewResourceSet(ctx, "rs", &xenorchestra.ResourceSetArgs{
			Name: pulumi.String("new-resource-set"),
			Subjects: pulumi.StringArray{
				pulumi.String(user.Id),
			},
			Objects: pulumi.StringArray{
				pulumi.String(template.Id),
				pulumi.String(sr.Id),
				pulumi.String(eth0.Network),
			},
			Limits: xenorchestra.ResourceSetLimitArray{
				&xenorchestra.ResourceSetLimitArgs{
					Type:     pulumi.String("cpus"),
					Quantity: pulumi.Int(20),
				},
				&xenorchestra.ResourceSetLimitArgs{
					Type:     pulumi.String("disk"),
					Quantity: pulumi.Int(107374182400),
				},
				&xenorchestra.ResourceSetLimitArgs{
					Type:     pulumi.String("memory"),
					Quantity: pulumi.Int(12884901888),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

ID can be found from the following command:

$ xo-cli resourceSet.getAll

```sh $ pulumi import xenorchestra:index/resourceSet:ResourceSet rs MGSpuwnbtUE ```

func GetResourceSet

func GetResourceSet(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ResourceSetState, opts ...pulumi.ResourceOption) (*ResourceSet, error)

GetResourceSet gets an existing ResourceSet 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 NewResourceSet

func NewResourceSet(ctx *pulumi.Context,
	name string, args *ResourceSetArgs, opts ...pulumi.ResourceOption) (*ResourceSet, error)

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

func (*ResourceSet) ElementType

func (*ResourceSet) ElementType() reflect.Type

func (*ResourceSet) ToResourceSetOutput

func (i *ResourceSet) ToResourceSetOutput() ResourceSetOutput

func (*ResourceSet) ToResourceSetOutputWithContext

func (i *ResourceSet) ToResourceSetOutputWithContext(ctx context.Context) ResourceSetOutput

type ResourceSetArgs

type ResourceSetArgs struct {
	// The limit applied to the resource set.
	Limits ResourceSetLimitArrayInput
	// The name of the resource set.
	Name pulumi.StringPtrInput
	// The uuids of the objects that are within scope of the resource set. A minimum of a storage repository, network and VM template are required for users to launch VMs.
	Objects pulumi.StringArrayInput
	// The uuids of the user accounts that should have access to the resource set.
	Subjects pulumi.StringArrayInput
}

The set of arguments for constructing a ResourceSet resource.

func (ResourceSetArgs) ElementType

func (ResourceSetArgs) ElementType() reflect.Type

type ResourceSetArray

type ResourceSetArray []ResourceSetInput

func (ResourceSetArray) ElementType

func (ResourceSetArray) ElementType() reflect.Type

func (ResourceSetArray) ToResourceSetArrayOutput

func (i ResourceSetArray) ToResourceSetArrayOutput() ResourceSetArrayOutput

func (ResourceSetArray) ToResourceSetArrayOutputWithContext

func (i ResourceSetArray) ToResourceSetArrayOutputWithContext(ctx context.Context) ResourceSetArrayOutput

type ResourceSetArrayInput

type ResourceSetArrayInput interface {
	pulumi.Input

	ToResourceSetArrayOutput() ResourceSetArrayOutput
	ToResourceSetArrayOutputWithContext(context.Context) ResourceSetArrayOutput
}

ResourceSetArrayInput is an input type that accepts ResourceSetArray and ResourceSetArrayOutput values. You can construct a concrete instance of `ResourceSetArrayInput` via:

ResourceSetArray{ ResourceSetArgs{...} }

type ResourceSetArrayOutput

type ResourceSetArrayOutput struct{ *pulumi.OutputState }

func (ResourceSetArrayOutput) ElementType

func (ResourceSetArrayOutput) ElementType() reflect.Type

func (ResourceSetArrayOutput) Index

func (ResourceSetArrayOutput) ToResourceSetArrayOutput

func (o ResourceSetArrayOutput) ToResourceSetArrayOutput() ResourceSetArrayOutput

func (ResourceSetArrayOutput) ToResourceSetArrayOutputWithContext

func (o ResourceSetArrayOutput) ToResourceSetArrayOutputWithContext(ctx context.Context) ResourceSetArrayOutput

type ResourceSetInput

type ResourceSetInput interface {
	pulumi.Input

	ToResourceSetOutput() ResourceSetOutput
	ToResourceSetOutputWithContext(ctx context.Context) ResourceSetOutput
}

type ResourceSetLimit

type ResourceSetLimit struct {
	// The numerical limit for the given type.
	Quantity int `pulumi:"quantity"`
	// The type of resource set limit. Must be cpus, memory or disk.
	Type string `pulumi:"type"`
}

type ResourceSetLimitArgs

type ResourceSetLimitArgs struct {
	// The numerical limit for the given type.
	Quantity pulumi.IntInput `pulumi:"quantity"`
	// The type of resource set limit. Must be cpus, memory or disk.
	Type pulumi.StringInput `pulumi:"type"`
}

func (ResourceSetLimitArgs) ElementType

func (ResourceSetLimitArgs) ElementType() reflect.Type

func (ResourceSetLimitArgs) ToResourceSetLimitOutput

func (i ResourceSetLimitArgs) ToResourceSetLimitOutput() ResourceSetLimitOutput

func (ResourceSetLimitArgs) ToResourceSetLimitOutputWithContext

func (i ResourceSetLimitArgs) ToResourceSetLimitOutputWithContext(ctx context.Context) ResourceSetLimitOutput

type ResourceSetLimitArray

type ResourceSetLimitArray []ResourceSetLimitInput

func (ResourceSetLimitArray) ElementType

func (ResourceSetLimitArray) ElementType() reflect.Type

func (ResourceSetLimitArray) ToResourceSetLimitArrayOutput

func (i ResourceSetLimitArray) ToResourceSetLimitArrayOutput() ResourceSetLimitArrayOutput

func (ResourceSetLimitArray) ToResourceSetLimitArrayOutputWithContext

func (i ResourceSetLimitArray) ToResourceSetLimitArrayOutputWithContext(ctx context.Context) ResourceSetLimitArrayOutput

type ResourceSetLimitArrayInput

type ResourceSetLimitArrayInput interface {
	pulumi.Input

	ToResourceSetLimitArrayOutput() ResourceSetLimitArrayOutput
	ToResourceSetLimitArrayOutputWithContext(context.Context) ResourceSetLimitArrayOutput
}

ResourceSetLimitArrayInput is an input type that accepts ResourceSetLimitArray and ResourceSetLimitArrayOutput values. You can construct a concrete instance of `ResourceSetLimitArrayInput` via:

ResourceSetLimitArray{ ResourceSetLimitArgs{...} }

type ResourceSetLimitArrayOutput

type ResourceSetLimitArrayOutput struct{ *pulumi.OutputState }

func (ResourceSetLimitArrayOutput) ElementType

func (ResourceSetLimitArrayOutput) Index

func (ResourceSetLimitArrayOutput) ToResourceSetLimitArrayOutput

func (o ResourceSetLimitArrayOutput) ToResourceSetLimitArrayOutput() ResourceSetLimitArrayOutput

func (ResourceSetLimitArrayOutput) ToResourceSetLimitArrayOutputWithContext

func (o ResourceSetLimitArrayOutput) ToResourceSetLimitArrayOutputWithContext(ctx context.Context) ResourceSetLimitArrayOutput

type ResourceSetLimitInput

type ResourceSetLimitInput interface {
	pulumi.Input

	ToResourceSetLimitOutput() ResourceSetLimitOutput
	ToResourceSetLimitOutputWithContext(context.Context) ResourceSetLimitOutput
}

ResourceSetLimitInput is an input type that accepts ResourceSetLimitArgs and ResourceSetLimitOutput values. You can construct a concrete instance of `ResourceSetLimitInput` via:

ResourceSetLimitArgs{...}

type ResourceSetLimitOutput

type ResourceSetLimitOutput struct{ *pulumi.OutputState }

func (ResourceSetLimitOutput) ElementType

func (ResourceSetLimitOutput) ElementType() reflect.Type

func (ResourceSetLimitOutput) Quantity

The numerical limit for the given type.

func (ResourceSetLimitOutput) ToResourceSetLimitOutput

func (o ResourceSetLimitOutput) ToResourceSetLimitOutput() ResourceSetLimitOutput

func (ResourceSetLimitOutput) ToResourceSetLimitOutputWithContext

func (o ResourceSetLimitOutput) ToResourceSetLimitOutputWithContext(ctx context.Context) ResourceSetLimitOutput

func (ResourceSetLimitOutput) Type

The type of resource set limit. Must be cpus, memory or disk.

type ResourceSetMap

type ResourceSetMap map[string]ResourceSetInput

func (ResourceSetMap) ElementType

func (ResourceSetMap) ElementType() reflect.Type

func (ResourceSetMap) ToResourceSetMapOutput

func (i ResourceSetMap) ToResourceSetMapOutput() ResourceSetMapOutput

func (ResourceSetMap) ToResourceSetMapOutputWithContext

func (i ResourceSetMap) ToResourceSetMapOutputWithContext(ctx context.Context) ResourceSetMapOutput

type ResourceSetMapInput

type ResourceSetMapInput interface {
	pulumi.Input

	ToResourceSetMapOutput() ResourceSetMapOutput
	ToResourceSetMapOutputWithContext(context.Context) ResourceSetMapOutput
}

ResourceSetMapInput is an input type that accepts ResourceSetMap and ResourceSetMapOutput values. You can construct a concrete instance of `ResourceSetMapInput` via:

ResourceSetMap{ "key": ResourceSetArgs{...} }

type ResourceSetMapOutput

type ResourceSetMapOutput struct{ *pulumi.OutputState }

func (ResourceSetMapOutput) ElementType

func (ResourceSetMapOutput) ElementType() reflect.Type

func (ResourceSetMapOutput) MapIndex

func (ResourceSetMapOutput) ToResourceSetMapOutput

func (o ResourceSetMapOutput) ToResourceSetMapOutput() ResourceSetMapOutput

func (ResourceSetMapOutput) ToResourceSetMapOutputWithContext

func (o ResourceSetMapOutput) ToResourceSetMapOutputWithContext(ctx context.Context) ResourceSetMapOutput

type ResourceSetOutput

type ResourceSetOutput struct{ *pulumi.OutputState }

func (ResourceSetOutput) ElementType

func (ResourceSetOutput) ElementType() reflect.Type

func (ResourceSetOutput) Limits

The limit applied to the resource set.

func (ResourceSetOutput) Name

The name of the resource set.

func (ResourceSetOutput) Objects

The uuids of the objects that are within scope of the resource set. A minimum of a storage repository, network and VM template are required for users to launch VMs.

func (ResourceSetOutput) Subjects

The uuids of the user accounts that should have access to the resource set.

func (ResourceSetOutput) ToResourceSetOutput

func (o ResourceSetOutput) ToResourceSetOutput() ResourceSetOutput

func (ResourceSetOutput) ToResourceSetOutputWithContext

func (o ResourceSetOutput) ToResourceSetOutputWithContext(ctx context.Context) ResourceSetOutput

type ResourceSetState

type ResourceSetState struct {
	// The limit applied to the resource set.
	Limits ResourceSetLimitArrayInput
	// The name of the resource set.
	Name pulumi.StringPtrInput
	// The uuids of the objects that are within scope of the resource set. A minimum of a storage repository, network and VM template are required for users to launch VMs.
	Objects pulumi.StringArrayInput
	// The uuids of the user accounts that should have access to the resource set.
	Subjects pulumi.StringArrayInput
}

func (ResourceSetState) ElementType

func (ResourceSetState) ElementType() reflect.Type

type Vdi

type Vdi struct {
	pulumi.CustomResourceState

	// The file path to the ISO or vdi image that should be uploaded when the VDI is created.
	Filepath pulumi.StringOutput `pulumi:"filepath"`
	// The name label of the VDI
	NameLabel pulumi.StringOutput `pulumi:"nameLabel"`
	// The id of the storage repository the VDI should be created in. Make sure the storage repository supports the file you are uploading! For example, ISOs should only be uploaded to ISO storage repositories.
	SrId pulumi.StringOutput `pulumi:"srId"`
	// Only `raw` uploads are supported today, but vhd support may be added in the future.
	Type pulumi.StringOutput `pulumi:"type"`
}

Creates a Xen Orchestra vdi resource.

func GetVdi

func GetVdi(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *VdiState, opts ...pulumi.ResourceOption) (*Vdi, error)

GetVdi gets an existing Vdi 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 NewVdi

func NewVdi(ctx *pulumi.Context,
	name string, args *VdiArgs, opts ...pulumi.ResourceOption) (*Vdi, error)

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

func (*Vdi) ElementType

func (*Vdi) ElementType() reflect.Type

func (*Vdi) ToVdiOutput

func (i *Vdi) ToVdiOutput() VdiOutput

func (*Vdi) ToVdiOutputWithContext

func (i *Vdi) ToVdiOutputWithContext(ctx context.Context) VdiOutput

type VdiArgs

type VdiArgs struct {
	// The file path to the ISO or vdi image that should be uploaded when the VDI is created.
	Filepath pulumi.StringInput
	// The name label of the VDI
	NameLabel pulumi.StringInput
	// The id of the storage repository the VDI should be created in. Make sure the storage repository supports the file you are uploading! For example, ISOs should only be uploaded to ISO storage repositories.
	SrId pulumi.StringInput
	// Only `raw` uploads are supported today, but vhd support may be added in the future.
	Type pulumi.StringInput
}

The set of arguments for constructing a Vdi resource.

func (VdiArgs) ElementType

func (VdiArgs) ElementType() reflect.Type

type VdiArray

type VdiArray []VdiInput

func (VdiArray) ElementType

func (VdiArray) ElementType() reflect.Type

func (VdiArray) ToVdiArrayOutput

func (i VdiArray) ToVdiArrayOutput() VdiArrayOutput

func (VdiArray) ToVdiArrayOutputWithContext

func (i VdiArray) ToVdiArrayOutputWithContext(ctx context.Context) VdiArrayOutput

type VdiArrayInput

type VdiArrayInput interface {
	pulumi.Input

	ToVdiArrayOutput() VdiArrayOutput
	ToVdiArrayOutputWithContext(context.Context) VdiArrayOutput
}

VdiArrayInput is an input type that accepts VdiArray and VdiArrayOutput values. You can construct a concrete instance of `VdiArrayInput` via:

VdiArray{ VdiArgs{...} }

type VdiArrayOutput

type VdiArrayOutput struct{ *pulumi.OutputState }

func (VdiArrayOutput) ElementType

func (VdiArrayOutput) ElementType() reflect.Type

func (VdiArrayOutput) Index

func (VdiArrayOutput) ToVdiArrayOutput

func (o VdiArrayOutput) ToVdiArrayOutput() VdiArrayOutput

func (VdiArrayOutput) ToVdiArrayOutputWithContext

func (o VdiArrayOutput) ToVdiArrayOutputWithContext(ctx context.Context) VdiArrayOutput

type VdiInput

type VdiInput interface {
	pulumi.Input

	ToVdiOutput() VdiOutput
	ToVdiOutputWithContext(ctx context.Context) VdiOutput
}

type VdiMap

type VdiMap map[string]VdiInput

func (VdiMap) ElementType

func (VdiMap) ElementType() reflect.Type

func (VdiMap) ToVdiMapOutput

func (i VdiMap) ToVdiMapOutput() VdiMapOutput

func (VdiMap) ToVdiMapOutputWithContext

func (i VdiMap) ToVdiMapOutputWithContext(ctx context.Context) VdiMapOutput

type VdiMapInput

type VdiMapInput interface {
	pulumi.Input

	ToVdiMapOutput() VdiMapOutput
	ToVdiMapOutputWithContext(context.Context) VdiMapOutput
}

VdiMapInput is an input type that accepts VdiMap and VdiMapOutput values. You can construct a concrete instance of `VdiMapInput` via:

VdiMap{ "key": VdiArgs{...} }

type VdiMapOutput

type VdiMapOutput struct{ *pulumi.OutputState }

func (VdiMapOutput) ElementType

func (VdiMapOutput) ElementType() reflect.Type

func (VdiMapOutput) MapIndex

func (o VdiMapOutput) MapIndex(k pulumi.StringInput) VdiOutput

func (VdiMapOutput) ToVdiMapOutput

func (o VdiMapOutput) ToVdiMapOutput() VdiMapOutput

func (VdiMapOutput) ToVdiMapOutputWithContext

func (o VdiMapOutput) ToVdiMapOutputWithContext(ctx context.Context) VdiMapOutput

type VdiOutput

type VdiOutput struct{ *pulumi.OutputState }

func (VdiOutput) ElementType

func (VdiOutput) ElementType() reflect.Type

func (VdiOutput) Filepath

func (o VdiOutput) Filepath() pulumi.StringOutput

The file path to the ISO or vdi image that should be uploaded when the VDI is created.

func (VdiOutput) NameLabel

func (o VdiOutput) NameLabel() pulumi.StringOutput

The name label of the VDI

func (VdiOutput) SrId

func (o VdiOutput) SrId() pulumi.StringOutput

The id of the storage repository the VDI should be created in. Make sure the storage repository supports the file you are uploading! For example, ISOs should only be uploaded to ISO storage repositories.

func (VdiOutput) ToVdiOutput

func (o VdiOutput) ToVdiOutput() VdiOutput

func (VdiOutput) ToVdiOutputWithContext

func (o VdiOutput) ToVdiOutputWithContext(ctx context.Context) VdiOutput

func (VdiOutput) Type

func (o VdiOutput) Type() pulumi.StringOutput

Only `raw` uploads are supported today, but vhd support may be added in the future.

type VdiState

type VdiState struct {
	// The file path to the ISO or vdi image that should be uploaded when the VDI is created.
	Filepath pulumi.StringPtrInput
	// The name label of the VDI
	NameLabel pulumi.StringPtrInput
	// The id of the storage repository the VDI should be created in. Make sure the storage repository supports the file you are uploading! For example, ISOs should only be uploaded to ISO storage repositories.
	SrId pulumi.StringPtrInput
	// Only `raw` uploads are supported today, but vhd support may be added in the future.
	Type pulumi.StringPtrInput
}

func (VdiState) ElementType

func (VdiState) ElementType() reflect.Type

type Vm

type Vm struct {
	pulumi.CustomResourceState

	// The preferred host you would like the VM to run on. If changed on an existing VM it will require a reboot for the VM to
	// be rescheduled.
	AffinityHost pulumi.StringPtrOutput `pulumi:"affinityHost"`
	// If the VM will automatically turn on. Defaults to `false`.
	AutoPoweron pulumi.BoolPtrOutput `pulumi:"autoPoweron"`
	// List of operations on a VM that are not permitted. Examples include: clean_reboot, clean_shutdown, hard_reboot,
	// hard_shutdown, pause, shutdown, suspend, destroy. This can be used to prevent a VM from being destroyed. The entire list
	// can be found here
	BlockedOperations pulumi.StringArrayOutput `pulumi:"blockedOperations"`
	// The ISO that should be attached to VM. This allows you to create a VM from a diskless template (any templates available
	// from `xe template-list`) and install the OS from the following ISO.
	Cdrom VmCdromPtrOutput `pulumi:"cdrom"`
	// The type of clone to perform for the VM. Possible values include `fast` or `full` and defaults to `fast`. In order to
	// perform a `full` clone, the VM template must not be a disk template.
	CloneType pulumi.StringPtrOutput `pulumi:"cloneType"`
	// The content of the cloud-init config to use. See the cloud init docs for more
	// [information](https://cloudinit.readthedocs.io/en/latest/topics/examples.html).
	CloudConfig pulumi.StringPtrOutput `pulumi:"cloudConfig"`
	// The content of the cloud-init network configuration for the VM (uses [version
	// 1](https://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v1.html))
	CloudNetworkConfig pulumi.StringPtrOutput `pulumi:"cloudNetworkConfig"`
	CoreOs             pulumi.BoolPtrOutput   `pulumi:"coreOs"`
	CpuCap             pulumi.IntPtrOutput    `pulumi:"cpuCap"`
	CpuWeight          pulumi.IntPtrOutput    `pulumi:"cpuWeight"`
	// The number of CPUs the VM will have. Updates to this field will cause a stop and start of the VM if the new CPU value is
	// greater than the max CPU value. This can be determined with the following command: “`$ xo-cli xo.getAllObjects
	// filter='json:{"id": "cf7b5d7d-3cd5-6b7c-5025-5c935c8cd0b8"}' | jq '.[].CPUs' { "max": 4, "number": 2 } # Updating the VM
	// to use 3 CPUs would happen without stopping/starting the VM # Updating the VM to use 5 CPUs would stop/start the VM“`
	Cpus pulumi.IntOutput `pulumi:"cpus"`
	// Determines whether the cloud config VDI should be deleted once the VM has booted. Defaults to `false`. If set to `true`,
	// powerState must be set to `Running`.
	DestroyCloudConfigVdiAfterBoot pulumi.BoolPtrOutput `pulumi:"destroyCloudConfigVdiAfterBoot"`
	// The disk the VM will have access to.
	Disks VmDiskArrayOutput `pulumi:"disks"`
	// Boolean parameter that allows a VM to use nested virtualization.
	ExpNestedHvm pulumi.BoolPtrOutput `pulumi:"expNestedHvm"`
	// The restart priority for the VM. Possible values are `best-effort`, `restart` and empty string (no restarts on failure.
	// Defaults to empty string
	HighAvailability pulumi.StringPtrOutput `pulumi:"highAvailability"`
	Host             pulumi.StringPtrOutput `pulumi:"host"`
	// The firmware to use for the VM. Possible values are `bios` and `uefi`.
	HvmBootFirmware pulumi.StringPtrOutput `pulumi:"hvmBootFirmware"`
	// This cannot be used with `cdrom`. Possible values are `network` which allows a VM to boot via PXE.
	InstallationMethod pulumi.StringPtrOutput   `pulumi:"installationMethod"`
	Ipv4Addresses      pulumi.StringArrayOutput `pulumi:"ipv4Addresses"`
	// This is only accessible if guest-tools is installed in the VM and if `expectedIpCidr` is set on any network interfaces.
	// This will contain a list of the ipv6 addresses across all network interfaces in order.
	Ipv6Addresses pulumi.StringArrayOutput `pulumi:"ipv6Addresses"`
	// The amount of memory in bytes the VM will have. Updates to this field will case a stop and start of the VM if the new
	// value is greater than the dynamic memory max. This can be determined with the following command: “`$ xo-cli
	// xo.getAllObjects filter='json:{"id": "cf7b5d7d-3cd5-6b7c-5025-5c935c8cd0b8"}' | jq '.[].memory.dynamic' [ 2147483648, #
	// memory dynamic min 4294967296 # memory dynamic max (4GB) ] # Updating the VM to use 3GB of memory would happen without
	// stopping/starting the VM # Updating the VM to use 5GB of memory would stop/start the VM“`
	MemoryMax pulumi.Float64Output `pulumi:"memoryMax"`
	// The description of the VM.
	NameDescription pulumi.StringPtrOutput `pulumi:"nameDescription"`
	// The name of the VM.
	NameLabel pulumi.StringOutput `pulumi:"nameLabel"`
	// The network for the VM.
	Networks VmNetworkArrayOutput `pulumi:"networks"`
	// The power state of the VM. This can be Running, Halted, Paused or Suspended.
	PowerState  pulumi.StringPtrOutput `pulumi:"powerState"`
	ResourceSet pulumi.StringPtrOutput `pulumi:"resourceSet"`
	// Number of seconds the VM should be delayed from starting.
	StartDelay pulumi.IntPtrOutput `pulumi:"startDelay"`
	// The tags (labels) applied to the given entity.
	Tags pulumi.StringArrayOutput `pulumi:"tags"`
	// The ID of the VM template to create the new VM from.
	Template pulumi.StringOutput `pulumi:"template"`
	// The video adapter the VM should use. Possible values include std and cirrus.
	Vga pulumi.StringPtrOutput `pulumi:"vga"`
	// The videoram option the VM should use. Possible values include 1, 2, 4, 8, 16
	Videoram pulumi.IntPtrOutput `pulumi:"videoram"`
	// The key value pairs to be populated in xenstore.
	Xenstore pulumi.StringMapOutput `pulumi:"xenstore"`
}

## Example Usage

func GetVm

func GetVm(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *VmState, opts ...pulumi.ResourceOption) (*Vm, error)

GetVm gets an existing Vm 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 NewVm

func NewVm(ctx *pulumi.Context,
	name string, args *VmArgs, opts ...pulumi.ResourceOption) (*Vm, error)

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

func (*Vm) ElementType

func (*Vm) ElementType() reflect.Type

func (*Vm) ToVmOutput

func (i *Vm) ToVmOutput() VmOutput

func (*Vm) ToVmOutputWithContext

func (i *Vm) ToVmOutputWithContext(ctx context.Context) VmOutput

type VmArgs

type VmArgs struct {
	// The preferred host you would like the VM to run on. If changed on an existing VM it will require a reboot for the VM to
	// be rescheduled.
	AffinityHost pulumi.StringPtrInput
	// If the VM will automatically turn on. Defaults to `false`.
	AutoPoweron pulumi.BoolPtrInput
	// List of operations on a VM that are not permitted. Examples include: clean_reboot, clean_shutdown, hard_reboot,
	// hard_shutdown, pause, shutdown, suspend, destroy. This can be used to prevent a VM from being destroyed. The entire list
	// can be found here
	BlockedOperations pulumi.StringArrayInput
	// The ISO that should be attached to VM. This allows you to create a VM from a diskless template (any templates available
	// from `xe template-list`) and install the OS from the following ISO.
	Cdrom VmCdromPtrInput
	// The type of clone to perform for the VM. Possible values include `fast` or `full` and defaults to `fast`. In order to
	// perform a `full` clone, the VM template must not be a disk template.
	CloneType pulumi.StringPtrInput
	// The content of the cloud-init config to use. See the cloud init docs for more
	// [information](https://cloudinit.readthedocs.io/en/latest/topics/examples.html).
	CloudConfig pulumi.StringPtrInput
	// The content of the cloud-init network configuration for the VM (uses [version
	// 1](https://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v1.html))
	CloudNetworkConfig pulumi.StringPtrInput
	CoreOs             pulumi.BoolPtrInput
	CpuCap             pulumi.IntPtrInput
	CpuWeight          pulumi.IntPtrInput
	// The number of CPUs the VM will have. Updates to this field will cause a stop and start of the VM if the new CPU value is
	// greater than the max CPU value. This can be determined with the following command: “`$ xo-cli xo.getAllObjects
	// filter='json:{"id": "cf7b5d7d-3cd5-6b7c-5025-5c935c8cd0b8"}' | jq '.[].CPUs' { "max": 4, "number": 2 } # Updating the VM
	// to use 3 CPUs would happen without stopping/starting the VM # Updating the VM to use 5 CPUs would stop/start the VM“`
	Cpus pulumi.IntInput
	// Determines whether the cloud config VDI should be deleted once the VM has booted. Defaults to `false`. If set to `true`,
	// powerState must be set to `Running`.
	DestroyCloudConfigVdiAfterBoot pulumi.BoolPtrInput
	// The disk the VM will have access to.
	Disks VmDiskArrayInput
	// Boolean parameter that allows a VM to use nested virtualization.
	ExpNestedHvm pulumi.BoolPtrInput
	// The restart priority for the VM. Possible values are `best-effort`, `restart` and empty string (no restarts on failure.
	// Defaults to empty string
	HighAvailability pulumi.StringPtrInput
	Host             pulumi.StringPtrInput
	// The firmware to use for the VM. Possible values are `bios` and `uefi`.
	HvmBootFirmware pulumi.StringPtrInput
	// This cannot be used with `cdrom`. Possible values are `network` which allows a VM to boot via PXE.
	InstallationMethod pulumi.StringPtrInput
	// The amount of memory in bytes the VM will have. Updates to this field will case a stop and start of the VM if the new
	// value is greater than the dynamic memory max. This can be determined with the following command: “`$ xo-cli
	// xo.getAllObjects filter='json:{"id": "cf7b5d7d-3cd5-6b7c-5025-5c935c8cd0b8"}' | jq '.[].memory.dynamic' [ 2147483648, #
	// memory dynamic min 4294967296 # memory dynamic max (4GB) ] # Updating the VM to use 3GB of memory would happen without
	// stopping/starting the VM # Updating the VM to use 5GB of memory would stop/start the VM“`
	MemoryMax pulumi.Float64Input
	// The description of the VM.
	NameDescription pulumi.StringPtrInput
	// The name of the VM.
	NameLabel pulumi.StringInput
	// The network for the VM.
	Networks VmNetworkArrayInput
	// The power state of the VM. This can be Running, Halted, Paused or Suspended.
	PowerState  pulumi.StringPtrInput
	ResourceSet pulumi.StringPtrInput
	// Number of seconds the VM should be delayed from starting.
	StartDelay pulumi.IntPtrInput
	// The tags (labels) applied to the given entity.
	Tags pulumi.StringArrayInput
	// The ID of the VM template to create the new VM from.
	Template pulumi.StringInput
	// The video adapter the VM should use. Possible values include std and cirrus.
	Vga pulumi.StringPtrInput
	// The videoram option the VM should use. Possible values include 1, 2, 4, 8, 16
	Videoram pulumi.IntPtrInput
	// The key value pairs to be populated in xenstore.
	Xenstore pulumi.StringMapInput
}

The set of arguments for constructing a Vm resource.

func (VmArgs) ElementType

func (VmArgs) ElementType() reflect.Type

type VmArray

type VmArray []VmInput

func (VmArray) ElementType

func (VmArray) ElementType() reflect.Type

func (VmArray) ToVmArrayOutput

func (i VmArray) ToVmArrayOutput() VmArrayOutput

func (VmArray) ToVmArrayOutputWithContext

func (i VmArray) ToVmArrayOutputWithContext(ctx context.Context) VmArrayOutput

type VmArrayInput

type VmArrayInput interface {
	pulumi.Input

	ToVmArrayOutput() VmArrayOutput
	ToVmArrayOutputWithContext(context.Context) VmArrayOutput
}

VmArrayInput is an input type that accepts VmArray and VmArrayOutput values. You can construct a concrete instance of `VmArrayInput` via:

VmArray{ VmArgs{...} }

type VmArrayOutput

type VmArrayOutput struct{ *pulumi.OutputState }

func (VmArrayOutput) ElementType

func (VmArrayOutput) ElementType() reflect.Type

func (VmArrayOutput) Index

func (VmArrayOutput) ToVmArrayOutput

func (o VmArrayOutput) ToVmArrayOutput() VmArrayOutput

func (VmArrayOutput) ToVmArrayOutputWithContext

func (o VmArrayOutput) ToVmArrayOutputWithContext(ctx context.Context) VmArrayOutput

type VmCdrom

type VmCdrom struct {
	// The ID of the ISO (VDI) to attach to the VM. This can be easily provided by using the `vdi` data source.
	Id string `pulumi:"id"`
}

type VmCdromArgs

type VmCdromArgs struct {
	// The ID of the ISO (VDI) to attach to the VM. This can be easily provided by using the `vdi` data source.
	Id pulumi.StringInput `pulumi:"id"`
}

func (VmCdromArgs) ElementType

func (VmCdromArgs) ElementType() reflect.Type

func (VmCdromArgs) ToVmCdromOutput

func (i VmCdromArgs) ToVmCdromOutput() VmCdromOutput

func (VmCdromArgs) ToVmCdromOutputWithContext

func (i VmCdromArgs) ToVmCdromOutputWithContext(ctx context.Context) VmCdromOutput

func (VmCdromArgs) ToVmCdromPtrOutput

func (i VmCdromArgs) ToVmCdromPtrOutput() VmCdromPtrOutput

func (VmCdromArgs) ToVmCdromPtrOutputWithContext

func (i VmCdromArgs) ToVmCdromPtrOutputWithContext(ctx context.Context) VmCdromPtrOutput

type VmCdromInput

type VmCdromInput interface {
	pulumi.Input

	ToVmCdromOutput() VmCdromOutput
	ToVmCdromOutputWithContext(context.Context) VmCdromOutput
}

VmCdromInput is an input type that accepts VmCdromArgs and VmCdromOutput values. You can construct a concrete instance of `VmCdromInput` via:

VmCdromArgs{...}

type VmCdromOutput

type VmCdromOutput struct{ *pulumi.OutputState }

func (VmCdromOutput) ElementType

func (VmCdromOutput) ElementType() reflect.Type

func (VmCdromOutput) Id

The ID of the ISO (VDI) to attach to the VM. This can be easily provided by using the `vdi` data source.

func (VmCdromOutput) ToVmCdromOutput

func (o VmCdromOutput) ToVmCdromOutput() VmCdromOutput

func (VmCdromOutput) ToVmCdromOutputWithContext

func (o VmCdromOutput) ToVmCdromOutputWithContext(ctx context.Context) VmCdromOutput

func (VmCdromOutput) ToVmCdromPtrOutput

func (o VmCdromOutput) ToVmCdromPtrOutput() VmCdromPtrOutput

func (VmCdromOutput) ToVmCdromPtrOutputWithContext

func (o VmCdromOutput) ToVmCdromPtrOutputWithContext(ctx context.Context) VmCdromPtrOutput

type VmCdromPtrInput

type VmCdromPtrInput interface {
	pulumi.Input

	ToVmCdromPtrOutput() VmCdromPtrOutput
	ToVmCdromPtrOutputWithContext(context.Context) VmCdromPtrOutput
}

VmCdromPtrInput is an input type that accepts VmCdromArgs, VmCdromPtr and VmCdromPtrOutput values. You can construct a concrete instance of `VmCdromPtrInput` via:

        VmCdromArgs{...}

or:

        nil

func VmCdromPtr

func VmCdromPtr(v *VmCdromArgs) VmCdromPtrInput

type VmCdromPtrOutput

type VmCdromPtrOutput struct{ *pulumi.OutputState }

func (VmCdromPtrOutput) Elem

func (VmCdromPtrOutput) ElementType

func (VmCdromPtrOutput) ElementType() reflect.Type

func (VmCdromPtrOutput) Id

The ID of the ISO (VDI) to attach to the VM. This can be easily provided by using the `vdi` data source.

func (VmCdromPtrOutput) ToVmCdromPtrOutput

func (o VmCdromPtrOutput) ToVmCdromPtrOutput() VmCdromPtrOutput

func (VmCdromPtrOutput) ToVmCdromPtrOutputWithContext

func (o VmCdromPtrOutput) ToVmCdromPtrOutputWithContext(ctx context.Context) VmCdromPtrOutput

type VmDisk

type VmDisk struct {
	// Whether the device should be attached to the VM.
	Attached *bool `pulumi:"attached"`
	// The description for the disk
	NameDescription *string `pulumi:"nameDescription"`
	// The name for the disk
	NameLabel string `pulumi:"nameLabel"`
	// Indicates the order of the block device.
	Position *string `pulumi:"position"`
	// The size in bytes for the disk.
	Size float64 `pulumi:"size"`
	// The storage repository ID to use.
	SrId  string  `pulumi:"srId"`
	VbdId *string `pulumi:"vbdId"`
	VdiId *string `pulumi:"vdiId"`
}

type VmDiskArgs

type VmDiskArgs struct {
	// Whether the device should be attached to the VM.
	Attached pulumi.BoolPtrInput `pulumi:"attached"`
	// The description for the disk
	NameDescription pulumi.StringPtrInput `pulumi:"nameDescription"`
	// The name for the disk
	NameLabel pulumi.StringInput `pulumi:"nameLabel"`
	// Indicates the order of the block device.
	Position pulumi.StringPtrInput `pulumi:"position"`
	// The size in bytes for the disk.
	Size pulumi.Float64Input `pulumi:"size"`
	// The storage repository ID to use.
	SrId  pulumi.StringInput    `pulumi:"srId"`
	VbdId pulumi.StringPtrInput `pulumi:"vbdId"`
	VdiId pulumi.StringPtrInput `pulumi:"vdiId"`
}

func (VmDiskArgs) ElementType

func (VmDiskArgs) ElementType() reflect.Type

func (VmDiskArgs) ToVmDiskOutput

func (i VmDiskArgs) ToVmDiskOutput() VmDiskOutput

func (VmDiskArgs) ToVmDiskOutputWithContext

func (i VmDiskArgs) ToVmDiskOutputWithContext(ctx context.Context) VmDiskOutput

type VmDiskArray

type VmDiskArray []VmDiskInput

func (VmDiskArray) ElementType

func (VmDiskArray) ElementType() reflect.Type

func (VmDiskArray) ToVmDiskArrayOutput

func (i VmDiskArray) ToVmDiskArrayOutput() VmDiskArrayOutput

func (VmDiskArray) ToVmDiskArrayOutputWithContext

func (i VmDiskArray) ToVmDiskArrayOutputWithContext(ctx context.Context) VmDiskArrayOutput

type VmDiskArrayInput

type VmDiskArrayInput interface {
	pulumi.Input

	ToVmDiskArrayOutput() VmDiskArrayOutput
	ToVmDiskArrayOutputWithContext(context.Context) VmDiskArrayOutput
}

VmDiskArrayInput is an input type that accepts VmDiskArray and VmDiskArrayOutput values. You can construct a concrete instance of `VmDiskArrayInput` via:

VmDiskArray{ VmDiskArgs{...} }

type VmDiskArrayOutput

type VmDiskArrayOutput struct{ *pulumi.OutputState }

func (VmDiskArrayOutput) ElementType

func (VmDiskArrayOutput) ElementType() reflect.Type

func (VmDiskArrayOutput) Index

func (VmDiskArrayOutput) ToVmDiskArrayOutput

func (o VmDiskArrayOutput) ToVmDiskArrayOutput() VmDiskArrayOutput

func (VmDiskArrayOutput) ToVmDiskArrayOutputWithContext

func (o VmDiskArrayOutput) ToVmDiskArrayOutputWithContext(ctx context.Context) VmDiskArrayOutput

type VmDiskInput

type VmDiskInput interface {
	pulumi.Input

	ToVmDiskOutput() VmDiskOutput
	ToVmDiskOutputWithContext(context.Context) VmDiskOutput
}

VmDiskInput is an input type that accepts VmDiskArgs and VmDiskOutput values. You can construct a concrete instance of `VmDiskInput` via:

VmDiskArgs{...}

type VmDiskOutput

type VmDiskOutput struct{ *pulumi.OutputState }

func (VmDiskOutput) Attached

func (o VmDiskOutput) Attached() pulumi.BoolPtrOutput

Whether the device should be attached to the VM.

func (VmDiskOutput) ElementType

func (VmDiskOutput) ElementType() reflect.Type

func (VmDiskOutput) NameDescription

func (o VmDiskOutput) NameDescription() pulumi.StringPtrOutput

The description for the disk

func (VmDiskOutput) NameLabel

func (o VmDiskOutput) NameLabel() pulumi.StringOutput

The name for the disk

func (VmDiskOutput) Position

func (o VmDiskOutput) Position() pulumi.StringPtrOutput

Indicates the order of the block device.

func (VmDiskOutput) Size

The size in bytes for the disk.

func (VmDiskOutput) SrId

func (o VmDiskOutput) SrId() pulumi.StringOutput

The storage repository ID to use.

func (VmDiskOutput) ToVmDiskOutput

func (o VmDiskOutput) ToVmDiskOutput() VmDiskOutput

func (VmDiskOutput) ToVmDiskOutputWithContext

func (o VmDiskOutput) ToVmDiskOutputWithContext(ctx context.Context) VmDiskOutput

func (VmDiskOutput) VbdId

func (VmDiskOutput) VdiId

type VmInput

type VmInput interface {
	pulumi.Input

	ToVmOutput() VmOutput
	ToVmOutputWithContext(ctx context.Context) VmOutput
}

type VmMap

type VmMap map[string]VmInput

func (VmMap) ElementType

func (VmMap) ElementType() reflect.Type

func (VmMap) ToVmMapOutput

func (i VmMap) ToVmMapOutput() VmMapOutput

func (VmMap) ToVmMapOutputWithContext

func (i VmMap) ToVmMapOutputWithContext(ctx context.Context) VmMapOutput

type VmMapInput

type VmMapInput interface {
	pulumi.Input

	ToVmMapOutput() VmMapOutput
	ToVmMapOutputWithContext(context.Context) VmMapOutput
}

VmMapInput is an input type that accepts VmMap and VmMapOutput values. You can construct a concrete instance of `VmMapInput` via:

VmMap{ "key": VmArgs{...} }

type VmMapOutput

type VmMapOutput struct{ *pulumi.OutputState }

func (VmMapOutput) ElementType

func (VmMapOutput) ElementType() reflect.Type

func (VmMapOutput) MapIndex

func (o VmMapOutput) MapIndex(k pulumi.StringInput) VmOutput

func (VmMapOutput) ToVmMapOutput

func (o VmMapOutput) ToVmMapOutput() VmMapOutput

func (VmMapOutput) ToVmMapOutputWithContext

func (o VmMapOutput) ToVmMapOutputWithContext(ctx context.Context) VmMapOutput

type VmNetwork

type VmNetwork struct {
	// Whether the device should be attached to the VM.
	Attached       *bool    `pulumi:"attached"`
	Device         *string  `pulumi:"device"`
	ExpectedIpCidr *string  `pulumi:"expectedIpCidr"`
	Ipv4Addresses  []string `pulumi:"ipv4Addresses"`
	Ipv6Addresses  []string `pulumi:"ipv6Addresses"`
	MacAddress     *string  `pulumi:"macAddress"`
	// The ID of the network the VM will be on.
	NetworkId string `pulumi:"networkId"`
}

type VmNetworkArgs

type VmNetworkArgs struct {
	// Whether the device should be attached to the VM.
	Attached       pulumi.BoolPtrInput     `pulumi:"attached"`
	Device         pulumi.StringPtrInput   `pulumi:"device"`
	ExpectedIpCidr pulumi.StringPtrInput   `pulumi:"expectedIpCidr"`
	Ipv4Addresses  pulumi.StringArrayInput `pulumi:"ipv4Addresses"`
	Ipv6Addresses  pulumi.StringArrayInput `pulumi:"ipv6Addresses"`
	MacAddress     pulumi.StringPtrInput   `pulumi:"macAddress"`
	// The ID of the network the VM will be on.
	NetworkId pulumi.StringInput `pulumi:"networkId"`
}

func (VmNetworkArgs) ElementType

func (VmNetworkArgs) ElementType() reflect.Type

func (VmNetworkArgs) ToVmNetworkOutput

func (i VmNetworkArgs) ToVmNetworkOutput() VmNetworkOutput

func (VmNetworkArgs) ToVmNetworkOutputWithContext

func (i VmNetworkArgs) ToVmNetworkOutputWithContext(ctx context.Context) VmNetworkOutput

type VmNetworkArray

type VmNetworkArray []VmNetworkInput

func (VmNetworkArray) ElementType

func (VmNetworkArray) ElementType() reflect.Type

func (VmNetworkArray) ToVmNetworkArrayOutput

func (i VmNetworkArray) ToVmNetworkArrayOutput() VmNetworkArrayOutput

func (VmNetworkArray) ToVmNetworkArrayOutputWithContext

func (i VmNetworkArray) ToVmNetworkArrayOutputWithContext(ctx context.Context) VmNetworkArrayOutput

type VmNetworkArrayInput

type VmNetworkArrayInput interface {
	pulumi.Input

	ToVmNetworkArrayOutput() VmNetworkArrayOutput
	ToVmNetworkArrayOutputWithContext(context.Context) VmNetworkArrayOutput
}

VmNetworkArrayInput is an input type that accepts VmNetworkArray and VmNetworkArrayOutput values. You can construct a concrete instance of `VmNetworkArrayInput` via:

VmNetworkArray{ VmNetworkArgs{...} }

type VmNetworkArrayOutput

type VmNetworkArrayOutput struct{ *pulumi.OutputState }

func (VmNetworkArrayOutput) ElementType

func (VmNetworkArrayOutput) ElementType() reflect.Type

func (VmNetworkArrayOutput) Index

func (VmNetworkArrayOutput) ToVmNetworkArrayOutput

func (o VmNetworkArrayOutput) ToVmNetworkArrayOutput() VmNetworkArrayOutput

func (VmNetworkArrayOutput) ToVmNetworkArrayOutputWithContext

func (o VmNetworkArrayOutput) ToVmNetworkArrayOutputWithContext(ctx context.Context) VmNetworkArrayOutput

type VmNetworkInput

type VmNetworkInput interface {
	pulumi.Input

	ToVmNetworkOutput() VmNetworkOutput
	ToVmNetworkOutputWithContext(context.Context) VmNetworkOutput
}

VmNetworkInput is an input type that accepts VmNetworkArgs and VmNetworkOutput values. You can construct a concrete instance of `VmNetworkInput` via:

VmNetworkArgs{...}

type VmNetworkOutput

type VmNetworkOutput struct{ *pulumi.OutputState }

func (VmNetworkOutput) Attached

func (o VmNetworkOutput) Attached() pulumi.BoolPtrOutput

Whether the device should be attached to the VM.

func (VmNetworkOutput) Device

func (VmNetworkOutput) ElementType

func (VmNetworkOutput) ElementType() reflect.Type

func (VmNetworkOutput) ExpectedIpCidr

func (o VmNetworkOutput) ExpectedIpCidr() pulumi.StringPtrOutput

func (VmNetworkOutput) Ipv4Addresses

func (o VmNetworkOutput) Ipv4Addresses() pulumi.StringArrayOutput

func (VmNetworkOutput) Ipv6Addresses

func (o VmNetworkOutput) Ipv6Addresses() pulumi.StringArrayOutput

func (VmNetworkOutput) MacAddress

func (o VmNetworkOutput) MacAddress() pulumi.StringPtrOutput

func (VmNetworkOutput) NetworkId

func (o VmNetworkOutput) NetworkId() pulumi.StringOutput

The ID of the network the VM will be on.

func (VmNetworkOutput) ToVmNetworkOutput

func (o VmNetworkOutput) ToVmNetworkOutput() VmNetworkOutput

func (VmNetworkOutput) ToVmNetworkOutputWithContext

func (o VmNetworkOutput) ToVmNetworkOutputWithContext(ctx context.Context) VmNetworkOutput

type VmOutput

type VmOutput struct{ *pulumi.OutputState }

func (VmOutput) AffinityHost

func (o VmOutput) AffinityHost() pulumi.StringPtrOutput

The preferred host you would like the VM to run on. If changed on an existing VM it will require a reboot for the VM to be rescheduled.

func (VmOutput) AutoPoweron

func (o VmOutput) AutoPoweron() pulumi.BoolPtrOutput

If the VM will automatically turn on. Defaults to `false`.

func (VmOutput) BlockedOperations

func (o VmOutput) BlockedOperations() pulumi.StringArrayOutput

List of operations on a VM that are not permitted. Examples include: clean_reboot, clean_shutdown, hard_reboot, hard_shutdown, pause, shutdown, suspend, destroy. This can be used to prevent a VM from being destroyed. The entire list can be found here

func (VmOutput) Cdrom

func (o VmOutput) Cdrom() VmCdromPtrOutput

The ISO that should be attached to VM. This allows you to create a VM from a diskless template (any templates available from `xe template-list`) and install the OS from the following ISO.

func (VmOutput) CloneType

func (o VmOutput) CloneType() pulumi.StringPtrOutput

The type of clone to perform for the VM. Possible values include `fast` or `full` and defaults to `fast`. In order to perform a `full` clone, the VM template must not be a disk template.

func (VmOutput) CloudConfig

func (o VmOutput) CloudConfig() pulumi.StringPtrOutput

The content of the cloud-init config to use. See the cloud init docs for more [information](https://cloudinit.readthedocs.io/en/latest/topics/examples.html).

func (VmOutput) CloudNetworkConfig

func (o VmOutput) CloudNetworkConfig() pulumi.StringPtrOutput

The content of the cloud-init network configuration for the VM (uses [version 1](https://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v1.html))

func (VmOutput) CoreOs

func (o VmOutput) CoreOs() pulumi.BoolPtrOutput

func (VmOutput) CpuCap

func (o VmOutput) CpuCap() pulumi.IntPtrOutput

func (VmOutput) CpuWeight

func (o VmOutput) CpuWeight() pulumi.IntPtrOutput

func (VmOutput) Cpus

func (o VmOutput) Cpus() pulumi.IntOutput

The number of CPUs the VM will have. Updates to this field will cause a stop and start of the VM if the new CPU value is greater than the max CPU value. This can be determined with the following command: ```$ xo-cli xo.getAllObjects filter='json:{"id": "cf7b5d7d-3cd5-6b7c-5025-5c935c8cd0b8"}' | jq '.[].CPUs' { "max": 4, "number": 2 } # Updating the VM to use 3 CPUs would happen without stopping/starting the VM # Updating the VM to use 5 CPUs would stop/start the VM```

func (VmOutput) DestroyCloudConfigVdiAfterBoot

func (o VmOutput) DestroyCloudConfigVdiAfterBoot() pulumi.BoolPtrOutput

Determines whether the cloud config VDI should be deleted once the VM has booted. Defaults to `false`. If set to `true`, powerState must be set to `Running`.

func (VmOutput) Disks

func (o VmOutput) Disks() VmDiskArrayOutput

The disk the VM will have access to.

func (VmOutput) ElementType

func (VmOutput) ElementType() reflect.Type

func (VmOutput) ExpNestedHvm

func (o VmOutput) ExpNestedHvm() pulumi.BoolPtrOutput

Boolean parameter that allows a VM to use nested virtualization.

func (VmOutput) HighAvailability

func (o VmOutput) HighAvailability() pulumi.StringPtrOutput

The restart priority for the VM. Possible values are `best-effort`, `restart` and empty string (no restarts on failure. Defaults to empty string

func (VmOutput) Host

func (o VmOutput) Host() pulumi.StringPtrOutput

func (VmOutput) HvmBootFirmware

func (o VmOutput) HvmBootFirmware() pulumi.StringPtrOutput

The firmware to use for the VM. Possible values are `bios` and `uefi`.

func (VmOutput) InstallationMethod

func (o VmOutput) InstallationMethod() pulumi.StringPtrOutput

This cannot be used with `cdrom`. Possible values are `network` which allows a VM to boot via PXE.

func (VmOutput) Ipv4Addresses

func (o VmOutput) Ipv4Addresses() pulumi.StringArrayOutput

func (VmOutput) Ipv6Addresses

func (o VmOutput) Ipv6Addresses() pulumi.StringArrayOutput

This is only accessible if guest-tools is installed in the VM and if `expectedIpCidr` is set on any network interfaces. This will contain a list of the ipv6 addresses across all network interfaces in order.

func (VmOutput) MemoryMax

func (o VmOutput) MemoryMax() pulumi.Float64Output

The amount of memory in bytes the VM will have. Updates to this field will case a stop and start of the VM if the new value is greater than the dynamic memory max. This can be determined with the following command: ```$ xo-cli xo.getAllObjects filter='json:{"id": "cf7b5d7d-3cd5-6b7c-5025-5c935c8cd0b8"}' | jq '.[].memory.dynamic' [ 2147483648, # memory dynamic min 4294967296 # memory dynamic max (4GB) ] # Updating the VM to use 3GB of memory would happen without stopping/starting the VM # Updating the VM to use 5GB of memory would stop/start the VM```

func (VmOutput) NameDescription

func (o VmOutput) NameDescription() pulumi.StringPtrOutput

The description of the VM.

func (VmOutput) NameLabel

func (o VmOutput) NameLabel() pulumi.StringOutput

The name of the VM.

func (VmOutput) Networks

func (o VmOutput) Networks() VmNetworkArrayOutput

The network for the VM.

func (VmOutput) PowerState

func (o VmOutput) PowerState() pulumi.StringPtrOutput

The power state of the VM. This can be Running, Halted, Paused or Suspended.

func (VmOutput) ResourceSet

func (o VmOutput) ResourceSet() pulumi.StringPtrOutput

func (VmOutput) StartDelay

func (o VmOutput) StartDelay() pulumi.IntPtrOutput

Number of seconds the VM should be delayed from starting.

func (VmOutput) Tags

The tags (labels) applied to the given entity.

func (VmOutput) Template

func (o VmOutput) Template() pulumi.StringOutput

The ID of the VM template to create the new VM from.

func (VmOutput) ToVmOutput

func (o VmOutput) ToVmOutput() VmOutput

func (VmOutput) ToVmOutputWithContext

func (o VmOutput) ToVmOutputWithContext(ctx context.Context) VmOutput

func (VmOutput) Vga

The video adapter the VM should use. Possible values include std and cirrus.

func (VmOutput) Videoram

func (o VmOutput) Videoram() pulumi.IntPtrOutput

The videoram option the VM should use. Possible values include 1, 2, 4, 8, 16

func (VmOutput) Xenstore

func (o VmOutput) Xenstore() pulumi.StringMapOutput

The key value pairs to be populated in xenstore.

type VmState

type VmState struct {
	// The preferred host you would like the VM to run on. If changed on an existing VM it will require a reboot for the VM to
	// be rescheduled.
	AffinityHost pulumi.StringPtrInput
	// If the VM will automatically turn on. Defaults to `false`.
	AutoPoweron pulumi.BoolPtrInput
	// List of operations on a VM that are not permitted. Examples include: clean_reboot, clean_shutdown, hard_reboot,
	// hard_shutdown, pause, shutdown, suspend, destroy. This can be used to prevent a VM from being destroyed. The entire list
	// can be found here
	BlockedOperations pulumi.StringArrayInput
	// The ISO that should be attached to VM. This allows you to create a VM from a diskless template (any templates available
	// from `xe template-list`) and install the OS from the following ISO.
	Cdrom VmCdromPtrInput
	// The type of clone to perform for the VM. Possible values include `fast` or `full` and defaults to `fast`. In order to
	// perform a `full` clone, the VM template must not be a disk template.
	CloneType pulumi.StringPtrInput
	// The content of the cloud-init config to use. See the cloud init docs for more
	// [information](https://cloudinit.readthedocs.io/en/latest/topics/examples.html).
	CloudConfig pulumi.StringPtrInput
	// The content of the cloud-init network configuration for the VM (uses [version
	// 1](https://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v1.html))
	CloudNetworkConfig pulumi.StringPtrInput
	CoreOs             pulumi.BoolPtrInput
	CpuCap             pulumi.IntPtrInput
	CpuWeight          pulumi.IntPtrInput
	// The number of CPUs the VM will have. Updates to this field will cause a stop and start of the VM if the new CPU value is
	// greater than the max CPU value. This can be determined with the following command: “`$ xo-cli xo.getAllObjects
	// filter='json:{"id": "cf7b5d7d-3cd5-6b7c-5025-5c935c8cd0b8"}' | jq '.[].CPUs' { "max": 4, "number": 2 } # Updating the VM
	// to use 3 CPUs would happen without stopping/starting the VM # Updating the VM to use 5 CPUs would stop/start the VM“`
	Cpus pulumi.IntPtrInput
	// Determines whether the cloud config VDI should be deleted once the VM has booted. Defaults to `false`. If set to `true`,
	// powerState must be set to `Running`.
	DestroyCloudConfigVdiAfterBoot pulumi.BoolPtrInput
	// The disk the VM will have access to.
	Disks VmDiskArrayInput
	// Boolean parameter that allows a VM to use nested virtualization.
	ExpNestedHvm pulumi.BoolPtrInput
	// The restart priority for the VM. Possible values are `best-effort`, `restart` and empty string (no restarts on failure.
	// Defaults to empty string
	HighAvailability pulumi.StringPtrInput
	Host             pulumi.StringPtrInput
	// The firmware to use for the VM. Possible values are `bios` and `uefi`.
	HvmBootFirmware pulumi.StringPtrInput
	// This cannot be used with `cdrom`. Possible values are `network` which allows a VM to boot via PXE.
	InstallationMethod pulumi.StringPtrInput
	Ipv4Addresses      pulumi.StringArrayInput
	// This is only accessible if guest-tools is installed in the VM and if `expectedIpCidr` is set on any network interfaces.
	// This will contain a list of the ipv6 addresses across all network interfaces in order.
	Ipv6Addresses pulumi.StringArrayInput
	// The amount of memory in bytes the VM will have. Updates to this field will case a stop and start of the VM if the new
	// value is greater than the dynamic memory max. This can be determined with the following command: “`$ xo-cli
	// xo.getAllObjects filter='json:{"id": "cf7b5d7d-3cd5-6b7c-5025-5c935c8cd0b8"}' | jq '.[].memory.dynamic' [ 2147483648, #
	// memory dynamic min 4294967296 # memory dynamic max (4GB) ] # Updating the VM to use 3GB of memory would happen without
	// stopping/starting the VM # Updating the VM to use 5GB of memory would stop/start the VM“`
	MemoryMax pulumi.Float64PtrInput
	// The description of the VM.
	NameDescription pulumi.StringPtrInput
	// The name of the VM.
	NameLabel pulumi.StringPtrInput
	// The network for the VM.
	Networks VmNetworkArrayInput
	// The power state of the VM. This can be Running, Halted, Paused or Suspended.
	PowerState  pulumi.StringPtrInput
	ResourceSet pulumi.StringPtrInput
	// Number of seconds the VM should be delayed from starting.
	StartDelay pulumi.IntPtrInput
	// The tags (labels) applied to the given entity.
	Tags pulumi.StringArrayInput
	// The ID of the VM template to create the new VM from.
	Template pulumi.StringPtrInput
	// The video adapter the VM should use. Possible values include std and cirrus.
	Vga pulumi.StringPtrInput
	// The videoram option the VM should use. Possible values include 1, 2, 4, 8, 16
	Videoram pulumi.IntPtrInput
	// The key value pairs to be populated in xenstore.
	Xenstore pulumi.StringMapInput
}

func (VmState) ElementType

func (VmState) ElementType() reflect.Type

type XoaBondedNetwork

type XoaBondedNetwork struct {
	pulumi.CustomResourceState

	Automatic pulumi.BoolPtrOutput `pulumi:"automatic"`
	// The bond mode that should be used for this network.
	BondMode pulumi.StringPtrOutput `pulumi:"bondMode"`
	// This argument controls whether the network should enforce VIF locking. This defaults to `false` which means that no filtering rules are applied.
	DefaultIsLocked pulumi.BoolPtrOutput `pulumi:"defaultIsLocked"`
	// The MTU of the network. Defaults to `1500` if unspecified.
	Mtu             pulumi.IntPtrOutput    `pulumi:"mtu"`
	NameDescription pulumi.StringPtrOutput `pulumi:"nameDescription"`
	// The name label of the network.
	NameLabel pulumi.StringOutput `pulumi:"nameLabel"`
	// The pifs (uuid) that should be used for this network.
	PifIds pulumi.StringArrayOutput `pulumi:"pifIds"`
	// The pool id that this network should belong to.
	PoolId pulumi.StringOutput `pulumi:"poolId"`
}

A resource for managing Bonded Xen Orchestra networks. See the XCP-ng [networking docs](https://xcp-ng.org/docs/networking.html) for more details.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		host1, err := xenorchestra.GetXoaHost(ctx, &xenorchestra.GetXoaHostArgs{
			NameLabel: "Your host",
		}, nil)
		if err != nil {
			return err
		}
		eth1, err := xenorchestra.GetXoaPif(ctx, &xenorchestra.GetXoaPifArgs{
			Device: "eth1",
			Vlan:   -1,
			HostId: pulumi.StringRef(host1.Id),
		}, nil)
		if err != nil {
			return err
		}
		eth2, err := xenorchestra.GetXoaPif(ctx, &xenorchestra.GetXoaPifArgs{
			Device: "eth2",
			Vlan:   -1,
			HostId: pulumi.StringRef(host1.Id),
		}, nil)
		if err != nil {
			return err
		}
		// Create a bonded network from normal PIFs
		_, err = xenorchestra.NewXoaBondedNetwork(ctx, "network", &xenorchestra.XoaBondedNetworkArgs{
			NameLabel: pulumi.String("new network name"),
			BondMode:  pulumi.String("active-backup"),
			PoolId:    pulumi.String(host1.PoolId),
			PifIds: pulumi.StringArray{
				pulumi.String(eth1.Id),
				pulumi.String(eth2.Id),
			},
		})
		if err != nil {
			return err
		}
		// Create a bonded network from PIFs on VLANs
		eth1Vlan, err := xenorchestra.GetXoaPif(ctx, &xenorchestra.GetXoaPifArgs{
			Device: "eth1",
			Vlan:   15,
			HostId: pulumi.StringRef(host1.Id),
		}, nil)
		if err != nil {
			return err
		}
		eth2Vlan, err := xenorchestra.GetXoaPif(ctx, &xenorchestra.GetXoaPifArgs{
			Device: "eth2",
			Vlan:   15,
			HostId: pulumi.StringRef(host1.Id),
		}, nil)
		if err != nil {
			return err
		}
		// Create a bonded network from normal PIFs
		_, err = xenorchestra.NewXoaBondedNetwork(ctx, "network_vlan", &xenorchestra.XoaBondedNetworkArgs{
			NameLabel: pulumi.String("new network name"),
			BondMode:  pulumi.String("active-backup"),
			PoolId:    pulumi.String(host1.PoolId),
			PifIds: pulumi.StringArray{
				pulumi.String(eth1Vlan.Id),
				pulumi.String(eth2Vlan.Id),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetXoaBondedNetwork

func GetXoaBondedNetwork(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *XoaBondedNetworkState, opts ...pulumi.ResourceOption) (*XoaBondedNetwork, error)

GetXoaBondedNetwork gets an existing XoaBondedNetwork 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 NewXoaBondedNetwork

func NewXoaBondedNetwork(ctx *pulumi.Context,
	name string, args *XoaBondedNetworkArgs, opts ...pulumi.ResourceOption) (*XoaBondedNetwork, error)

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

func (*XoaBondedNetwork) ElementType

func (*XoaBondedNetwork) ElementType() reflect.Type

func (*XoaBondedNetwork) ToXoaBondedNetworkOutput

func (i *XoaBondedNetwork) ToXoaBondedNetworkOutput() XoaBondedNetworkOutput

func (*XoaBondedNetwork) ToXoaBondedNetworkOutputWithContext

func (i *XoaBondedNetwork) ToXoaBondedNetworkOutputWithContext(ctx context.Context) XoaBondedNetworkOutput

type XoaBondedNetworkArgs

type XoaBondedNetworkArgs struct {
	Automatic pulumi.BoolPtrInput
	// The bond mode that should be used for this network.
	BondMode pulumi.StringPtrInput
	// This argument controls whether the network should enforce VIF locking. This defaults to `false` which means that no filtering rules are applied.
	DefaultIsLocked pulumi.BoolPtrInput
	// The MTU of the network. Defaults to `1500` if unspecified.
	Mtu             pulumi.IntPtrInput
	NameDescription pulumi.StringPtrInput
	// The name label of the network.
	NameLabel pulumi.StringInput
	// The pifs (uuid) that should be used for this network.
	PifIds pulumi.StringArrayInput
	// The pool id that this network should belong to.
	PoolId pulumi.StringInput
}

The set of arguments for constructing a XoaBondedNetwork resource.

func (XoaBondedNetworkArgs) ElementType

func (XoaBondedNetworkArgs) ElementType() reflect.Type

type XoaBondedNetworkArray

type XoaBondedNetworkArray []XoaBondedNetworkInput

func (XoaBondedNetworkArray) ElementType

func (XoaBondedNetworkArray) ElementType() reflect.Type

func (XoaBondedNetworkArray) ToXoaBondedNetworkArrayOutput

func (i XoaBondedNetworkArray) ToXoaBondedNetworkArrayOutput() XoaBondedNetworkArrayOutput

func (XoaBondedNetworkArray) ToXoaBondedNetworkArrayOutputWithContext

func (i XoaBondedNetworkArray) ToXoaBondedNetworkArrayOutputWithContext(ctx context.Context) XoaBondedNetworkArrayOutput

type XoaBondedNetworkArrayInput

type XoaBondedNetworkArrayInput interface {
	pulumi.Input

	ToXoaBondedNetworkArrayOutput() XoaBondedNetworkArrayOutput
	ToXoaBondedNetworkArrayOutputWithContext(context.Context) XoaBondedNetworkArrayOutput
}

XoaBondedNetworkArrayInput is an input type that accepts XoaBondedNetworkArray and XoaBondedNetworkArrayOutput values. You can construct a concrete instance of `XoaBondedNetworkArrayInput` via:

XoaBondedNetworkArray{ XoaBondedNetworkArgs{...} }

type XoaBondedNetworkArrayOutput

type XoaBondedNetworkArrayOutput struct{ *pulumi.OutputState }

func (XoaBondedNetworkArrayOutput) ElementType

func (XoaBondedNetworkArrayOutput) Index

func (XoaBondedNetworkArrayOutput) ToXoaBondedNetworkArrayOutput

func (o XoaBondedNetworkArrayOutput) ToXoaBondedNetworkArrayOutput() XoaBondedNetworkArrayOutput

func (XoaBondedNetworkArrayOutput) ToXoaBondedNetworkArrayOutputWithContext

func (o XoaBondedNetworkArrayOutput) ToXoaBondedNetworkArrayOutputWithContext(ctx context.Context) XoaBondedNetworkArrayOutput

type XoaBondedNetworkInput

type XoaBondedNetworkInput interface {
	pulumi.Input

	ToXoaBondedNetworkOutput() XoaBondedNetworkOutput
	ToXoaBondedNetworkOutputWithContext(ctx context.Context) XoaBondedNetworkOutput
}

type XoaBondedNetworkMap

type XoaBondedNetworkMap map[string]XoaBondedNetworkInput

func (XoaBondedNetworkMap) ElementType

func (XoaBondedNetworkMap) ElementType() reflect.Type

func (XoaBondedNetworkMap) ToXoaBondedNetworkMapOutput

func (i XoaBondedNetworkMap) ToXoaBondedNetworkMapOutput() XoaBondedNetworkMapOutput

func (XoaBondedNetworkMap) ToXoaBondedNetworkMapOutputWithContext

func (i XoaBondedNetworkMap) ToXoaBondedNetworkMapOutputWithContext(ctx context.Context) XoaBondedNetworkMapOutput

type XoaBondedNetworkMapInput

type XoaBondedNetworkMapInput interface {
	pulumi.Input

	ToXoaBondedNetworkMapOutput() XoaBondedNetworkMapOutput
	ToXoaBondedNetworkMapOutputWithContext(context.Context) XoaBondedNetworkMapOutput
}

XoaBondedNetworkMapInput is an input type that accepts XoaBondedNetworkMap and XoaBondedNetworkMapOutput values. You can construct a concrete instance of `XoaBondedNetworkMapInput` via:

XoaBondedNetworkMap{ "key": XoaBondedNetworkArgs{...} }

type XoaBondedNetworkMapOutput

type XoaBondedNetworkMapOutput struct{ *pulumi.OutputState }

func (XoaBondedNetworkMapOutput) ElementType

func (XoaBondedNetworkMapOutput) ElementType() reflect.Type

func (XoaBondedNetworkMapOutput) MapIndex

func (XoaBondedNetworkMapOutput) ToXoaBondedNetworkMapOutput

func (o XoaBondedNetworkMapOutput) ToXoaBondedNetworkMapOutput() XoaBondedNetworkMapOutput

func (XoaBondedNetworkMapOutput) ToXoaBondedNetworkMapOutputWithContext

func (o XoaBondedNetworkMapOutput) ToXoaBondedNetworkMapOutputWithContext(ctx context.Context) XoaBondedNetworkMapOutput

type XoaBondedNetworkOutput

type XoaBondedNetworkOutput struct{ *pulumi.OutputState }

func (XoaBondedNetworkOutput) Automatic

func (XoaBondedNetworkOutput) BondMode

The bond mode that should be used for this network.

func (XoaBondedNetworkOutput) DefaultIsLocked

func (o XoaBondedNetworkOutput) DefaultIsLocked() pulumi.BoolPtrOutput

This argument controls whether the network should enforce VIF locking. This defaults to `false` which means that no filtering rules are applied.

func (XoaBondedNetworkOutput) ElementType

func (XoaBondedNetworkOutput) ElementType() reflect.Type

func (XoaBondedNetworkOutput) Mtu

The MTU of the network. Defaults to `1500` if unspecified.

func (XoaBondedNetworkOutput) NameDescription

func (o XoaBondedNetworkOutput) NameDescription() pulumi.StringPtrOutput

func (XoaBondedNetworkOutput) NameLabel

The name label of the network.

func (XoaBondedNetworkOutput) PifIds

The pifs (uuid) that should be used for this network.

func (XoaBondedNetworkOutput) PoolId

The pool id that this network should belong to.

func (XoaBondedNetworkOutput) ToXoaBondedNetworkOutput

func (o XoaBondedNetworkOutput) ToXoaBondedNetworkOutput() XoaBondedNetworkOutput

func (XoaBondedNetworkOutput) ToXoaBondedNetworkOutputWithContext

func (o XoaBondedNetworkOutput) ToXoaBondedNetworkOutputWithContext(ctx context.Context) XoaBondedNetworkOutput

type XoaBondedNetworkState

type XoaBondedNetworkState struct {
	Automatic pulumi.BoolPtrInput
	// The bond mode that should be used for this network.
	BondMode pulumi.StringPtrInput
	// This argument controls whether the network should enforce VIF locking. This defaults to `false` which means that no filtering rules are applied.
	DefaultIsLocked pulumi.BoolPtrInput
	// The MTU of the network. Defaults to `1500` if unspecified.
	Mtu             pulumi.IntPtrInput
	NameDescription pulumi.StringPtrInput
	// The name label of the network.
	NameLabel pulumi.StringPtrInput
	// The pifs (uuid) that should be used for this network.
	PifIds pulumi.StringArrayInput
	// The pool id that this network should belong to.
	PoolId pulumi.StringPtrInput
}

func (XoaBondedNetworkState) ElementType

func (XoaBondedNetworkState) ElementType() reflect.Type

type XoaNetwork

type XoaNetwork struct {
	pulumi.CustomResourceState

	Automatic pulumi.BoolPtrOutput `pulumi:"automatic"`
	// This argument controls whether the network should enforce VIF locking. This defaults to `false` which means that no filtering rules are applied.
	DefaultIsLocked pulumi.BoolPtrOutput `pulumi:"defaultIsLocked"`
	// The MTU of the network. Defaults to `1500` if unspecified.
	Mtu             pulumi.IntPtrOutput    `pulumi:"mtu"`
	NameDescription pulumi.StringPtrOutput `pulumi:"nameDescription"`
	// The name label of the network.
	NameLabel pulumi.StringOutput `pulumi:"nameLabel"`
	// Whether the network should use a network block device. Defaults to `false` if unspecified.
	Nbd pulumi.BoolPtrOutput `pulumi:"nbd"`
	// The pool id that this network should belong to.
	PoolId pulumi.StringOutput `pulumi:"poolId"`
	// The PIF device (eth0, eth1, etc) that will be used as an input during network creation. This parameter is required if a vlan is specified.
	SourcePifDevice pulumi.StringPtrOutput `pulumi:"sourcePifDevice"`
	// The vlan to use for the network. Defaults to `0` meaning no VLAN.
	Vlan pulumi.IntPtrOutput `pulumi:"vlan"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		host1, err := xenorchestra.GetXoaHost(ctx, &xenorchestra.GetXoaHostArgs{
			NameLabel: "Your host",
		}, nil)
		if err != nil {
			return err
		}
		// Create a single server network private network
		_, err = xenorchestra.NewXoaNetwork(ctx, "private_network", &xenorchestra.XoaNetworkArgs{
			NameLabel: pulumi.String("new network name"),
			PoolId:    pulumi.String(host1.PoolId),
		})
		if err != nil {
			return err
		}
		// Create a network with a 22 VLAN tag from the eth0 device
		_, err = xenorchestra.NewXoaNetwork(ctx, "vlan_network", &xenorchestra.XoaNetworkArgs{
			NameLabel:       pulumi.String("new network name"),
			PoolId:          pulumi.String(host1.PoolId),
			SourcePifDevice: pulumi.String("eth0"),
			Vlan:            pulumi.Int(22),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetXoaNetwork

func GetXoaNetwork(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *XoaNetworkState, opts ...pulumi.ResourceOption) (*XoaNetwork, error)

GetXoaNetwork gets an existing XoaNetwork 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 NewXoaNetwork

func NewXoaNetwork(ctx *pulumi.Context,
	name string, args *XoaNetworkArgs, opts ...pulumi.ResourceOption) (*XoaNetwork, error)

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

func (*XoaNetwork) ElementType

func (*XoaNetwork) ElementType() reflect.Type

func (*XoaNetwork) ToXoaNetworkOutput

func (i *XoaNetwork) ToXoaNetworkOutput() XoaNetworkOutput

func (*XoaNetwork) ToXoaNetworkOutputWithContext

func (i *XoaNetwork) ToXoaNetworkOutputWithContext(ctx context.Context) XoaNetworkOutput

type XoaNetworkArgs

type XoaNetworkArgs struct {
	Automatic pulumi.BoolPtrInput
	// This argument controls whether the network should enforce VIF locking. This defaults to `false` which means that no filtering rules are applied.
	DefaultIsLocked pulumi.BoolPtrInput
	// The MTU of the network. Defaults to `1500` if unspecified.
	Mtu             pulumi.IntPtrInput
	NameDescription pulumi.StringPtrInput
	// The name label of the network.
	NameLabel pulumi.StringInput
	// Whether the network should use a network block device. Defaults to `false` if unspecified.
	Nbd pulumi.BoolPtrInput
	// The pool id that this network should belong to.
	PoolId pulumi.StringInput
	// The PIF device (eth0, eth1, etc) that will be used as an input during network creation. This parameter is required if a vlan is specified.
	SourcePifDevice pulumi.StringPtrInput
	// The vlan to use for the network. Defaults to `0` meaning no VLAN.
	Vlan pulumi.IntPtrInput
}

The set of arguments for constructing a XoaNetwork resource.

func (XoaNetworkArgs) ElementType

func (XoaNetworkArgs) ElementType() reflect.Type

type XoaNetworkArray

type XoaNetworkArray []XoaNetworkInput

func (XoaNetworkArray) ElementType

func (XoaNetworkArray) ElementType() reflect.Type

func (XoaNetworkArray) ToXoaNetworkArrayOutput

func (i XoaNetworkArray) ToXoaNetworkArrayOutput() XoaNetworkArrayOutput

func (XoaNetworkArray) ToXoaNetworkArrayOutputWithContext

func (i XoaNetworkArray) ToXoaNetworkArrayOutputWithContext(ctx context.Context) XoaNetworkArrayOutput

type XoaNetworkArrayInput

type XoaNetworkArrayInput interface {
	pulumi.Input

	ToXoaNetworkArrayOutput() XoaNetworkArrayOutput
	ToXoaNetworkArrayOutputWithContext(context.Context) XoaNetworkArrayOutput
}

XoaNetworkArrayInput is an input type that accepts XoaNetworkArray and XoaNetworkArrayOutput values. You can construct a concrete instance of `XoaNetworkArrayInput` via:

XoaNetworkArray{ XoaNetworkArgs{...} }

type XoaNetworkArrayOutput

type XoaNetworkArrayOutput struct{ *pulumi.OutputState }

func (XoaNetworkArrayOutput) ElementType

func (XoaNetworkArrayOutput) ElementType() reflect.Type

func (XoaNetworkArrayOutput) Index

func (XoaNetworkArrayOutput) ToXoaNetworkArrayOutput

func (o XoaNetworkArrayOutput) ToXoaNetworkArrayOutput() XoaNetworkArrayOutput

func (XoaNetworkArrayOutput) ToXoaNetworkArrayOutputWithContext

func (o XoaNetworkArrayOutput) ToXoaNetworkArrayOutputWithContext(ctx context.Context) XoaNetworkArrayOutput

type XoaNetworkInput

type XoaNetworkInput interface {
	pulumi.Input

	ToXoaNetworkOutput() XoaNetworkOutput
	ToXoaNetworkOutputWithContext(ctx context.Context) XoaNetworkOutput
}

type XoaNetworkMap

type XoaNetworkMap map[string]XoaNetworkInput

func (XoaNetworkMap) ElementType

func (XoaNetworkMap) ElementType() reflect.Type

func (XoaNetworkMap) ToXoaNetworkMapOutput

func (i XoaNetworkMap) ToXoaNetworkMapOutput() XoaNetworkMapOutput

func (XoaNetworkMap) ToXoaNetworkMapOutputWithContext

func (i XoaNetworkMap) ToXoaNetworkMapOutputWithContext(ctx context.Context) XoaNetworkMapOutput

type XoaNetworkMapInput

type XoaNetworkMapInput interface {
	pulumi.Input

	ToXoaNetworkMapOutput() XoaNetworkMapOutput
	ToXoaNetworkMapOutputWithContext(context.Context) XoaNetworkMapOutput
}

XoaNetworkMapInput is an input type that accepts XoaNetworkMap and XoaNetworkMapOutput values. You can construct a concrete instance of `XoaNetworkMapInput` via:

XoaNetworkMap{ "key": XoaNetworkArgs{...} }

type XoaNetworkMapOutput

type XoaNetworkMapOutput struct{ *pulumi.OutputState }

func (XoaNetworkMapOutput) ElementType

func (XoaNetworkMapOutput) ElementType() reflect.Type

func (XoaNetworkMapOutput) MapIndex

func (XoaNetworkMapOutput) ToXoaNetworkMapOutput

func (o XoaNetworkMapOutput) ToXoaNetworkMapOutput() XoaNetworkMapOutput

func (XoaNetworkMapOutput) ToXoaNetworkMapOutputWithContext

func (o XoaNetworkMapOutput) ToXoaNetworkMapOutputWithContext(ctx context.Context) XoaNetworkMapOutput

type XoaNetworkOutput

type XoaNetworkOutput struct{ *pulumi.OutputState }

func (XoaNetworkOutput) Automatic

func (o XoaNetworkOutput) Automatic() pulumi.BoolPtrOutput

func (XoaNetworkOutput) DefaultIsLocked

func (o XoaNetworkOutput) DefaultIsLocked() pulumi.BoolPtrOutput

This argument controls whether the network should enforce VIF locking. This defaults to `false` which means that no filtering rules are applied.

func (XoaNetworkOutput) ElementType

func (XoaNetworkOutput) ElementType() reflect.Type

func (XoaNetworkOutput) Mtu

The MTU of the network. Defaults to `1500` if unspecified.

func (XoaNetworkOutput) NameDescription

func (o XoaNetworkOutput) NameDescription() pulumi.StringPtrOutput

func (XoaNetworkOutput) NameLabel

func (o XoaNetworkOutput) NameLabel() pulumi.StringOutput

The name label of the network.

func (XoaNetworkOutput) Nbd

Whether the network should use a network block device. Defaults to `false` if unspecified.

func (XoaNetworkOutput) PoolId

The pool id that this network should belong to.

func (XoaNetworkOutput) SourcePifDevice

func (o XoaNetworkOutput) SourcePifDevice() pulumi.StringPtrOutput

The PIF device (eth0, eth1, etc) that will be used as an input during network creation. This parameter is required if a vlan is specified.

func (XoaNetworkOutput) ToXoaNetworkOutput

func (o XoaNetworkOutput) ToXoaNetworkOutput() XoaNetworkOutput

func (XoaNetworkOutput) ToXoaNetworkOutputWithContext

func (o XoaNetworkOutput) ToXoaNetworkOutputWithContext(ctx context.Context) XoaNetworkOutput

func (XoaNetworkOutput) Vlan

The vlan to use for the network. Defaults to `0` meaning no VLAN.

type XoaNetworkState

type XoaNetworkState struct {
	Automatic pulumi.BoolPtrInput
	// This argument controls whether the network should enforce VIF locking. This defaults to `false` which means that no filtering rules are applied.
	DefaultIsLocked pulumi.BoolPtrInput
	// The MTU of the network. Defaults to `1500` if unspecified.
	Mtu             pulumi.IntPtrInput
	NameDescription pulumi.StringPtrInput
	// The name label of the network.
	NameLabel pulumi.StringPtrInput
	// Whether the network should use a network block device. Defaults to `false` if unspecified.
	Nbd pulumi.BoolPtrInput
	// The pool id that this network should belong to.
	PoolId pulumi.StringPtrInput
	// The PIF device (eth0, eth1, etc) that will be used as an input during network creation. This parameter is required if a vlan is specified.
	SourcePifDevice pulumi.StringPtrInput
	// The vlan to use for the network. Defaults to `0` meaning no VLAN.
	Vlan pulumi.IntPtrInput
}

func (XoaNetworkState) ElementType

func (XoaNetworkState) ElementType() reflect.Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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