Documentation
¶
Overview ¶
A Pulumi package for creating and managing Xen Orchestra cloud resources.
Index ¶
- type Acl
- type AclArgs
- type AclArray
- type AclArrayInput
- type AclArrayOutput
- type AclInput
- type AclMap
- type AclMapInput
- type AclMapOutput
- type AclOutput
- func (o AclOutput) Action() pulumi.StringOutput
- func (AclOutput) ElementType() reflect.Type
- func (o AclOutput) Object() pulumi.StringOutput
- func (o AclOutput) Subject() pulumi.StringOutput
- func (o AclOutput) ToAclOutput() AclOutput
- func (o AclOutput) ToAclOutputWithContext(ctx context.Context) AclOutput
- type AclState
- type BondedNetworkdeprecated
- type BondedNetworkArgs
- type BondedNetworkArray
- type BondedNetworkArrayInput
- type BondedNetworkArrayOutput
- func (BondedNetworkArrayOutput) ElementType() reflect.Type
- func (o BondedNetworkArrayOutput) Index(i pulumi.IntInput) BondedNetworkOutput
- func (o BondedNetworkArrayOutput) ToBondedNetworkArrayOutput() BondedNetworkArrayOutput
- func (o BondedNetworkArrayOutput) ToBondedNetworkArrayOutputWithContext(ctx context.Context) BondedNetworkArrayOutput
- type BondedNetworkInput
- type BondedNetworkMap
- type BondedNetworkMapInput
- type BondedNetworkMapOutput
- func (BondedNetworkMapOutput) ElementType() reflect.Type
- func (o BondedNetworkMapOutput) MapIndex(k pulumi.StringInput) BondedNetworkOutput
- func (o BondedNetworkMapOutput) ToBondedNetworkMapOutput() BondedNetworkMapOutput
- func (o BondedNetworkMapOutput) ToBondedNetworkMapOutputWithContext(ctx context.Context) BondedNetworkMapOutput
- type BondedNetworkOutput
- func (o BondedNetworkOutput) Automatic() pulumi.BoolPtrOutput
- func (o BondedNetworkOutput) BondMode() pulumi.StringPtrOutput
- func (o BondedNetworkOutput) DefaultIsLocked() pulumi.BoolPtrOutput
- func (BondedNetworkOutput) ElementType() reflect.Type
- func (o BondedNetworkOutput) Mtu() pulumi.IntPtrOutput
- func (o BondedNetworkOutput) NameDescription() pulumi.StringPtrOutput
- func (o BondedNetworkOutput) NameLabel() pulumi.StringOutput
- func (o BondedNetworkOutput) PifIds() pulumi.StringArrayOutput
- func (o BondedNetworkOutput) PoolId() pulumi.StringOutput
- func (o BondedNetworkOutput) ToBondedNetworkOutput() BondedNetworkOutput
- func (o BondedNetworkOutput) ToBondedNetworkOutputWithContext(ctx context.Context) BondedNetworkOutput
- type BondedNetworkState
- type CloudConfig
- type CloudConfigArgs
- type CloudConfigArray
- type CloudConfigArrayInput
- type CloudConfigArrayOutput
- func (CloudConfigArrayOutput) ElementType() reflect.Type
- func (o CloudConfigArrayOutput) Index(i pulumi.IntInput) CloudConfigOutput
- func (o CloudConfigArrayOutput) ToCloudConfigArrayOutput() CloudConfigArrayOutput
- func (o CloudConfigArrayOutput) ToCloudConfigArrayOutputWithContext(ctx context.Context) CloudConfigArrayOutput
- type CloudConfigInput
- type CloudConfigMap
- type CloudConfigMapInput
- type CloudConfigMapOutput
- func (CloudConfigMapOutput) ElementType() reflect.Type
- func (o CloudConfigMapOutput) MapIndex(k pulumi.StringInput) CloudConfigOutput
- func (o CloudConfigMapOutput) ToCloudConfigMapOutput() CloudConfigMapOutput
- func (o CloudConfigMapOutput) ToCloudConfigMapOutputWithContext(ctx context.Context) CloudConfigMapOutput
- type CloudConfigOutput
- func (CloudConfigOutput) ElementType() reflect.Type
- func (o CloudConfigOutput) Name() pulumi.StringOutput
- func (o CloudConfigOutput) Template() pulumi.StringOutput
- func (o CloudConfigOutput) ToCloudConfigOutput() CloudConfigOutput
- func (o CloudConfigOutput) ToCloudConfigOutputWithContext(ctx context.Context) CloudConfigOutput
- type CloudConfigState
- type GetHostArgs
- type GetHostOutputArgs
- type GetHostResult
- type GetHostResultOutput
- func (o GetHostResultOutput) Cpus() pulumi.IntMapOutput
- func (GetHostResultOutput) ElementType() reflect.Type
- func (o GetHostResultOutput) Id() pulumi.StringOutput
- func (o GetHostResultOutput) Memory() pulumi.Float64Output
- func (o GetHostResultOutput) MemoryUsage() pulumi.Float64Output
- func (o GetHostResultOutput) NameLabel() pulumi.StringOutput
- func (o GetHostResultOutput) PoolId() pulumi.StringOutput
- func (o GetHostResultOutput) Tags() pulumi.StringArrayOutput
- func (o GetHostResultOutput) ToGetHostResultOutput() GetHostResultOutput
- func (o GetHostResultOutput) ToGetHostResultOutputWithContext(ctx context.Context) GetHostResultOutput
- type GetHostsArgs
- type GetHostsHost
- type GetHostsHostArgs
- type GetHostsHostArray
- type GetHostsHostArrayInput
- type GetHostsHostArrayOutput
- func (GetHostsHostArrayOutput) ElementType() reflect.Type
- func (o GetHostsHostArrayOutput) Index(i pulumi.IntInput) GetHostsHostOutput
- func (o GetHostsHostArrayOutput) ToGetHostsHostArrayOutput() GetHostsHostArrayOutput
- func (o GetHostsHostArrayOutput) ToGetHostsHostArrayOutputWithContext(ctx context.Context) GetHostsHostArrayOutput
- type GetHostsHostInput
- type GetHostsHostOutput
- func (o GetHostsHostOutput) Cpus() pulumi.IntMapOutput
- func (GetHostsHostOutput) ElementType() reflect.Type
- func (o GetHostsHostOutput) Id() pulumi.StringOutput
- func (o GetHostsHostOutput) Memory() pulumi.IntOutput
- func (o GetHostsHostOutput) MemoryUsage() pulumi.IntOutput
- func (o GetHostsHostOutput) NameLabel() pulumi.StringOutput
- func (o GetHostsHostOutput) PoolId() pulumi.StringOutput
- func (o GetHostsHostOutput) Tags() pulumi.StringArrayOutput
- func (o GetHostsHostOutput) ToGetHostsHostOutput() GetHostsHostOutput
- func (o GetHostsHostOutput) ToGetHostsHostOutputWithContext(ctx context.Context) GetHostsHostOutput
- type GetHostsOutputArgs
- type GetHostsResult
- type GetHostsResultOutput
- func (GetHostsResultOutput) ElementType() reflect.Type
- func (o GetHostsResultOutput) Hosts() GetHostsHostArrayOutput
- func (o GetHostsResultOutput) Id() pulumi.StringOutput
- func (o GetHostsResultOutput) Master() pulumi.StringOutput
- func (o GetHostsResultOutput) PoolId() pulumi.StringOutput
- func (o GetHostsResultOutput) SortBy() pulumi.StringPtrOutput
- func (o GetHostsResultOutput) SortOrder() pulumi.StringPtrOutput
- func (o GetHostsResultOutput) Tags() pulumi.StringArrayOutput
- func (o GetHostsResultOutput) ToGetHostsResultOutput() GetHostsResultOutput
- func (o GetHostsResultOutput) ToGetHostsResultOutputWithContext(ctx context.Context) GetHostsResultOutput
- type GetPifArgs
- type GetPifOutputArgs
- type GetPifResult
- type GetPifResultOutput
- func (o GetPifResultOutput) Attached() pulumi.BoolOutput
- func (o GetPifResultOutput) Device() pulumi.StringOutput
- func (GetPifResultOutput) ElementType() reflect.Type
- func (o GetPifResultOutput) Host() pulumi.StringOutput
- func (o GetPifResultOutput) HostId() pulumi.StringOutput
- func (o GetPifResultOutput) Id() pulumi.StringOutput
- func (o GetPifResultOutput) Network() pulumi.StringOutput
- func (o GetPifResultOutput) PoolId() pulumi.StringOutput
- func (o GetPifResultOutput) ToGetPifResultOutput() GetPifResultOutput
- func (o GetPifResultOutput) ToGetPifResultOutputWithContext(ctx context.Context) GetPifResultOutput
- func (o GetPifResultOutput) Uuid() pulumi.StringOutput
- func (o GetPifResultOutput) Vlan() pulumi.IntOutput
- type GetPoolArgs
- type GetPoolOutputArgs
- type GetPoolResult
- type GetPoolResultOutput
- func (o GetPoolResultOutput) Cpus() pulumi.StringMapOutput
- func (o GetPoolResultOutput) Description() pulumi.StringOutput
- func (GetPoolResultOutput) ElementType() reflect.Type
- func (o GetPoolResultOutput) Id() pulumi.StringOutput
- func (o GetPoolResultOutput) Master() pulumi.StringOutput
- func (o GetPoolResultOutput) NameLabel() pulumi.StringOutput
- func (o GetPoolResultOutput) ToGetPoolResultOutput() GetPoolResultOutput
- func (o GetPoolResultOutput) ToGetPoolResultOutputWithContext(ctx context.Context) GetPoolResultOutput
- type GetSrArgs
- type GetSrOutputArgs
- type GetSrResult
- type GetSrResultOutput
- func (o GetSrResultOutput) Container() pulumi.StringOutput
- func (GetSrResultOutput) ElementType() reflect.Type
- func (o GetSrResultOutput) Id() pulumi.StringOutput
- func (o GetSrResultOutput) NameLabel() pulumi.StringOutput
- func (o GetSrResultOutput) PhysicalUsage() pulumi.Float64Output
- func (o GetSrResultOutput) PoolId() pulumi.StringPtrOutput
- func (o GetSrResultOutput) Size() pulumi.Float64Output
- func (o GetSrResultOutput) SrType() pulumi.StringOutput
- func (o GetSrResultOutput) Tags() pulumi.StringArrayOutput
- func (o GetSrResultOutput) ToGetSrResultOutput() GetSrResultOutput
- func (o GetSrResultOutput) ToGetSrResultOutputWithContext(ctx context.Context) GetSrResultOutput
- func (o GetSrResultOutput) Usage() pulumi.Float64Output
- func (o GetSrResultOutput) Uuid() pulumi.StringOutput
- type GetTemplateArgs
- type GetTemplateOutputArgs
- type GetTemplateResult
- type GetTemplateResultOutput
- func (GetTemplateResultOutput) ElementType() reflect.Type
- func (o GetTemplateResultOutput) Id() pulumi.StringOutput
- func (o GetTemplateResultOutput) NameLabel() pulumi.StringOutput
- func (o GetTemplateResultOutput) PoolId() pulumi.StringPtrOutput
- func (o GetTemplateResultOutput) ToGetTemplateResultOutput() GetTemplateResultOutput
- func (o GetTemplateResultOutput) ToGetTemplateResultOutputWithContext(ctx context.Context) GetTemplateResultOutput
- func (o GetTemplateResultOutput) Uuid() pulumi.StringOutput
- type GetUserArgs
- type GetUserOutputArgs
- type GetUserResult
- type GetUserResultOutput
- func (GetUserResultOutput) ElementType() reflect.Type
- func (o GetUserResultOutput) Id() pulumi.StringOutput
- func (o GetUserResultOutput) SearchInSession() pulumi.BoolPtrOutput
- func (o GetUserResultOutput) ToGetUserResultOutput() GetUserResultOutput
- func (o GetUserResultOutput) ToGetUserResultOutputWithContext(ctx context.Context) GetUserResultOutput
- func (o GetUserResultOutput) Username() pulumi.StringOutput
- type GetVmsArgs
- type GetVmsOutputArgs
- type GetVmsResult
- type GetVmsResultOutput
- func (GetVmsResultOutput) ElementType() reflect.Type
- func (o GetVmsResultOutput) Host() pulumi.StringPtrOutput
- func (o GetVmsResultOutput) Id() pulumi.StringOutput
- func (o GetVmsResultOutput) PoolId() pulumi.StringOutput
- func (o GetVmsResultOutput) PowerState() pulumi.StringPtrOutput
- func (o GetVmsResultOutput) ToGetVmsResultOutput() GetVmsResultOutput
- func (o GetVmsResultOutput) ToGetVmsResultOutputWithContext(ctx context.Context) GetVmsResultOutput
- func (o GetVmsResultOutput) Vms() GetVmsVmArrayOutput
- type GetVmsVm
- type GetVmsVmArgs
- type GetVmsVmArray
- type GetVmsVmArrayInput
- type GetVmsVmArrayOutput
- type GetVmsVmDisk
- type GetVmsVmDiskArgs
- type GetVmsVmDiskArray
- type GetVmsVmDiskArrayInput
- type GetVmsVmDiskArrayOutput
- func (GetVmsVmDiskArrayOutput) ElementType() reflect.Type
- func (o GetVmsVmDiskArrayOutput) Index(i pulumi.IntInput) GetVmsVmDiskOutput
- func (o GetVmsVmDiskArrayOutput) ToGetVmsVmDiskArrayOutput() GetVmsVmDiskArrayOutput
- func (o GetVmsVmDiskArrayOutput) ToGetVmsVmDiskArrayOutputWithContext(ctx context.Context) GetVmsVmDiskArrayOutput
- type GetVmsVmDiskInput
- type GetVmsVmDiskOutput
- func (o GetVmsVmDiskOutput) Attached() pulumi.BoolPtrOutput
- func (GetVmsVmDiskOutput) ElementType() reflect.Type
- func (o GetVmsVmDiskOutput) NameDescription() pulumi.StringPtrOutput
- func (o GetVmsVmDiskOutput) NameLabel() pulumi.StringOutput
- func (o GetVmsVmDiskOutput) Position() pulumi.StringOutput
- func (o GetVmsVmDiskOutput) Size() pulumi.IntOutput
- func (o GetVmsVmDiskOutput) SrId() pulumi.StringOutput
- func (o GetVmsVmDiskOutput) ToGetVmsVmDiskOutput() GetVmsVmDiskOutput
- func (o GetVmsVmDiskOutput) ToGetVmsVmDiskOutputWithContext(ctx context.Context) GetVmsVmDiskOutput
- func (o GetVmsVmDiskOutput) VbdId() pulumi.StringOutput
- func (o GetVmsVmDiskOutput) VdiId() pulumi.StringOutput
- type GetVmsVmInput
- type GetVmsVmNetwork
- type GetVmsVmNetworkArgs
- type GetVmsVmNetworkArray
- type GetVmsVmNetworkArrayInput
- type GetVmsVmNetworkArrayOutput
- func (GetVmsVmNetworkArrayOutput) ElementType() reflect.Type
- func (o GetVmsVmNetworkArrayOutput) Index(i pulumi.IntInput) GetVmsVmNetworkOutput
- func (o GetVmsVmNetworkArrayOutput) ToGetVmsVmNetworkArrayOutput() GetVmsVmNetworkArrayOutput
- func (o GetVmsVmNetworkArrayOutput) ToGetVmsVmNetworkArrayOutputWithContext(ctx context.Context) GetVmsVmNetworkArrayOutput
- type GetVmsVmNetworkInput
- type GetVmsVmNetworkOutput
- func (o GetVmsVmNetworkOutput) Attached() pulumi.BoolPtrOutput
- func (o GetVmsVmNetworkOutput) Device() pulumi.StringOutput
- func (GetVmsVmNetworkOutput) ElementType() reflect.Type
- func (o GetVmsVmNetworkOutput) ExpectedIpCidr() pulumi.StringPtrOutput
- func (o GetVmsVmNetworkOutput) Ipv4Addresses() pulumi.StringArrayOutput
- func (o GetVmsVmNetworkOutput) Ipv6Addresses() pulumi.StringArrayOutput
- func (o GetVmsVmNetworkOutput) MacAddress() pulumi.StringOutput
- func (o GetVmsVmNetworkOutput) NetworkId() pulumi.StringOutput
- func (o GetVmsVmNetworkOutput) ToGetVmsVmNetworkOutput() GetVmsVmNetworkOutput
- func (o GetVmsVmNetworkOutput) ToGetVmsVmNetworkOutputWithContext(ctx context.Context) GetVmsVmNetworkOutput
- type GetVmsVmOutput
- func (o GetVmsVmOutput) AffinityHost() pulumi.StringPtrOutput
- func (o GetVmsVmOutput) AutoPoweron() pulumi.BoolPtrOutput
- func (o GetVmsVmOutput) BlockedOperations() pulumi.StringArrayOutput
- func (o GetVmsVmOutput) CloneType() pulumi.StringPtrOutput
- func (o GetVmsVmOutput) CloudConfig() pulumi.StringPtrOutput
- func (o GetVmsVmOutput) CloudNetworkConfig() pulumi.StringPtrOutput
- func (o GetVmsVmOutput) CoreOs() pulumi.BoolPtrOutput
- func (o GetVmsVmOutput) CpuCap() pulumi.IntPtrOutput
- func (o GetVmsVmOutput) CpuWeight() pulumi.IntPtrOutput
- func (o GetVmsVmOutput) Cpus() pulumi.IntOutput
- func (o GetVmsVmOutput) Disks() GetVmsVmDiskArrayOutput
- func (GetVmsVmOutput) ElementType() reflect.Type
- func (o GetVmsVmOutput) ExpNestedHvm() pulumi.BoolPtrOutput
- func (o GetVmsVmOutput) HighAvailability() pulumi.StringPtrOutput
- func (o GetVmsVmOutput) Host() pulumi.StringPtrOutput
- func (o GetVmsVmOutput) HvmBootFirmware() pulumi.StringPtrOutput
- func (o GetVmsVmOutput) Id() pulumi.StringOutput
- func (o GetVmsVmOutput) Ipv4Addresses() pulumi.StringArrayOutput
- func (o GetVmsVmOutput) Ipv6Addresses() pulumi.StringArrayOutput
- func (o GetVmsVmOutput) MemoryMax() pulumi.IntOutput
- func (o GetVmsVmOutput) NameDescription() pulumi.StringPtrOutput
- func (o GetVmsVmOutput) NameLabel() pulumi.StringOutput
- func (o GetVmsVmOutput) Networks() GetVmsVmNetworkArrayOutput
- func (o GetVmsVmOutput) PowerState() pulumi.StringPtrOutput
- func (o GetVmsVmOutput) ResourceSet() pulumi.StringPtrOutput
- func (o GetVmsVmOutput) StartDelay() pulumi.IntPtrOutput
- func (o GetVmsVmOutput) Tags() pulumi.StringArrayOutput
- func (o GetVmsVmOutput) Template() pulumi.StringOutput
- func (o GetVmsVmOutput) ToGetVmsVmOutput() GetVmsVmOutput
- func (o GetVmsVmOutput) ToGetVmsVmOutputWithContext(ctx context.Context) GetVmsVmOutput
- func (o GetVmsVmOutput) Vga() pulumi.StringPtrOutput
- func (o GetVmsVmOutput) Videoram() pulumi.IntPtrOutput
- func (o GetVmsVmOutput) Xenstore() pulumi.StringMapOutput
- type GetXoaCloudConfigArgs
- type GetXoaCloudConfigOutputArgs
- type GetXoaCloudConfigResult
- type GetXoaCloudConfigResultOutput
- func (GetXoaCloudConfigResultOutput) ElementType() reflect.Type
- func (o GetXoaCloudConfigResultOutput) Id() pulumi.StringOutput
- func (o GetXoaCloudConfigResultOutput) Name() pulumi.StringOutput
- func (o GetXoaCloudConfigResultOutput) Template() pulumi.StringOutput
- func (o GetXoaCloudConfigResultOutput) ToGetXoaCloudConfigResultOutput() GetXoaCloudConfigResultOutput
- func (o GetXoaCloudConfigResultOutput) ToGetXoaCloudConfigResultOutputWithContext(ctx context.Context) GetXoaCloudConfigResultOutput
- type GetXoaHostArgs
- type GetXoaHostOutputArgs
- type GetXoaHostResult
- type GetXoaHostResultOutput
- func (o GetXoaHostResultOutput) Cpus() pulumi.IntMapOutput
- func (GetXoaHostResultOutput) ElementType() reflect.Type
- func (o GetXoaHostResultOutput) Id() pulumi.StringOutput
- func (o GetXoaHostResultOutput) Memory() pulumi.Float64Output
- func (o GetXoaHostResultOutput) MemoryUsage() pulumi.Float64Output
- func (o GetXoaHostResultOutput) NameLabel() pulumi.StringOutput
- func (o GetXoaHostResultOutput) PoolId() pulumi.StringOutput
- func (o GetXoaHostResultOutput) Tags() pulumi.StringArrayOutput
- func (o GetXoaHostResultOutput) ToGetXoaHostResultOutput() GetXoaHostResultOutput
- func (o GetXoaHostResultOutput) ToGetXoaHostResultOutputWithContext(ctx context.Context) GetXoaHostResultOutput
- type GetXoaHostsArgs
- type GetXoaHostsHost
- type GetXoaHostsHostArgs
- type GetXoaHostsHostArray
- type GetXoaHostsHostArrayInput
- type GetXoaHostsHostArrayOutput
- func (GetXoaHostsHostArrayOutput) ElementType() reflect.Type
- func (o GetXoaHostsHostArrayOutput) Index(i pulumi.IntInput) GetXoaHostsHostOutput
- func (o GetXoaHostsHostArrayOutput) ToGetXoaHostsHostArrayOutput() GetXoaHostsHostArrayOutput
- func (o GetXoaHostsHostArrayOutput) ToGetXoaHostsHostArrayOutputWithContext(ctx context.Context) GetXoaHostsHostArrayOutput
- type GetXoaHostsHostInput
- type GetXoaHostsHostOutput
- func (o GetXoaHostsHostOutput) Cpus() pulumi.IntMapOutput
- func (GetXoaHostsHostOutput) ElementType() reflect.Type
- func (o GetXoaHostsHostOutput) Id() pulumi.StringOutput
- func (o GetXoaHostsHostOutput) Memory() pulumi.IntOutput
- func (o GetXoaHostsHostOutput) MemoryUsage() pulumi.IntOutput
- func (o GetXoaHostsHostOutput) NameLabel() pulumi.StringOutput
- func (o GetXoaHostsHostOutput) PoolId() pulumi.StringOutput
- func (o GetXoaHostsHostOutput) Tags() pulumi.StringArrayOutput
- func (o GetXoaHostsHostOutput) ToGetXoaHostsHostOutput() GetXoaHostsHostOutput
- func (o GetXoaHostsHostOutput) ToGetXoaHostsHostOutputWithContext(ctx context.Context) GetXoaHostsHostOutput
- type GetXoaHostsOutputArgs
- type GetXoaHostsResult
- type GetXoaHostsResultOutput
- func (GetXoaHostsResultOutput) ElementType() reflect.Type
- func (o GetXoaHostsResultOutput) Hosts() GetXoaHostsHostArrayOutput
- func (o GetXoaHostsResultOutput) Id() pulumi.StringOutput
- func (o GetXoaHostsResultOutput) Master() pulumi.StringOutput
- func (o GetXoaHostsResultOutput) PoolId() pulumi.StringOutput
- func (o GetXoaHostsResultOutput) SortBy() pulumi.StringPtrOutput
- func (o GetXoaHostsResultOutput) SortOrder() pulumi.StringPtrOutput
- func (o GetXoaHostsResultOutput) Tags() pulumi.StringArrayOutput
- func (o GetXoaHostsResultOutput) ToGetXoaHostsResultOutput() GetXoaHostsResultOutput
- func (o GetXoaHostsResultOutput) ToGetXoaHostsResultOutputWithContext(ctx context.Context) GetXoaHostsResultOutput
- type GetXoaPifArgs
- type GetXoaPifOutputArgs
- type GetXoaPifResult
- type GetXoaPifResultOutput
- func (o GetXoaPifResultOutput) Attached() pulumi.BoolOutput
- func (o GetXoaPifResultOutput) Device() pulumi.StringOutput
- func (GetXoaPifResultOutput) ElementType() reflect.Type
- func (o GetXoaPifResultOutput) Host() pulumi.StringOutput
- func (o GetXoaPifResultOutput) HostId() pulumi.StringOutput
- func (o GetXoaPifResultOutput) Id() pulumi.StringOutput
- func (o GetXoaPifResultOutput) Network() pulumi.StringOutput
- func (o GetXoaPifResultOutput) PoolId() pulumi.StringOutput
- func (o GetXoaPifResultOutput) ToGetXoaPifResultOutput() GetXoaPifResultOutput
- func (o GetXoaPifResultOutput) ToGetXoaPifResultOutputWithContext(ctx context.Context) GetXoaPifResultOutput
- func (o GetXoaPifResultOutput) Uuid() pulumi.StringOutput
- func (o GetXoaPifResultOutput) Vlan() pulumi.IntOutput
- type GetXoaPoolArgs
- type GetXoaPoolOutputArgs
- type GetXoaPoolResult
- type GetXoaPoolResultOutput
- func (o GetXoaPoolResultOutput) Cpus() pulumi.StringMapOutput
- func (o GetXoaPoolResultOutput) Description() pulumi.StringOutput
- func (GetXoaPoolResultOutput) ElementType() reflect.Type
- func (o GetXoaPoolResultOutput) Id() pulumi.StringOutput
- func (o GetXoaPoolResultOutput) Master() pulumi.StringOutput
- func (o GetXoaPoolResultOutput) NameLabel() pulumi.StringOutput
- func (o GetXoaPoolResultOutput) ToGetXoaPoolResultOutput() GetXoaPoolResultOutput
- func (o GetXoaPoolResultOutput) ToGetXoaPoolResultOutputWithContext(ctx context.Context) GetXoaPoolResultOutput
- type GetXoaResourceSetArgs
- type GetXoaResourceSetOutputArgs
- type GetXoaResourceSetResult
- type GetXoaResourceSetResultOutput
- func (GetXoaResourceSetResultOutput) ElementType() reflect.Type
- func (o GetXoaResourceSetResultOutput) Id() pulumi.StringOutput
- func (o GetXoaResourceSetResultOutput) Name() pulumi.StringOutput
- func (o GetXoaResourceSetResultOutput) ToGetXoaResourceSetResultOutput() GetXoaResourceSetResultOutput
- func (o GetXoaResourceSetResultOutput) ToGetXoaResourceSetResultOutputWithContext(ctx context.Context) GetXoaResourceSetResultOutput
- type GetXoaStorageRepositoryArgs
- type GetXoaStorageRepositoryOutputArgs
- type GetXoaStorageRepositoryResult
- type GetXoaStorageRepositoryResultOutput
- func (o GetXoaStorageRepositoryResultOutput) Container() pulumi.StringOutput
- func (GetXoaStorageRepositoryResultOutput) ElementType() reflect.Type
- func (o GetXoaStorageRepositoryResultOutput) Id() pulumi.StringOutput
- func (o GetXoaStorageRepositoryResultOutput) NameLabel() pulumi.StringOutput
- func (o GetXoaStorageRepositoryResultOutput) PhysicalUsage() pulumi.Float64Output
- func (o GetXoaStorageRepositoryResultOutput) PoolId() pulumi.StringPtrOutput
- func (o GetXoaStorageRepositoryResultOutput) Size() pulumi.Float64Output
- func (o GetXoaStorageRepositoryResultOutput) SrType() pulumi.StringOutput
- func (o GetXoaStorageRepositoryResultOutput) Tags() pulumi.StringArrayOutput
- func (o GetXoaStorageRepositoryResultOutput) ToGetXoaStorageRepositoryResultOutput() GetXoaStorageRepositoryResultOutput
- func (o GetXoaStorageRepositoryResultOutput) ToGetXoaStorageRepositoryResultOutputWithContext(ctx context.Context) GetXoaStorageRepositoryResultOutput
- func (o GetXoaStorageRepositoryResultOutput) Usage() pulumi.Float64Output
- func (o GetXoaStorageRepositoryResultOutput) Uuid() pulumi.StringOutput
- type GetXoaTemplateArgs
- type GetXoaTemplateOutputArgs
- type GetXoaTemplateResult
- type GetXoaTemplateResultOutput
- func (GetXoaTemplateResultOutput) ElementType() reflect.Type
- func (o GetXoaTemplateResultOutput) Id() pulumi.StringOutput
- func (o GetXoaTemplateResultOutput) NameLabel() pulumi.StringOutput
- func (o GetXoaTemplateResultOutput) PoolId() pulumi.StringPtrOutput
- func (o GetXoaTemplateResultOutput) ToGetXoaTemplateResultOutput() GetXoaTemplateResultOutput
- func (o GetXoaTemplateResultOutput) ToGetXoaTemplateResultOutputWithContext(ctx context.Context) GetXoaTemplateResultOutput
- func (o GetXoaTemplateResultOutput) Uuid() pulumi.StringOutput
- type GetXoaUserArgs
- type GetXoaUserOutputArgs
- type GetXoaUserResult
- type GetXoaUserResultOutput
- func (GetXoaUserResultOutput) ElementType() reflect.Type
- func (o GetXoaUserResultOutput) Id() pulumi.StringOutput
- func (o GetXoaUserResultOutput) SearchInSession() pulumi.BoolPtrOutput
- func (o GetXoaUserResultOutput) ToGetXoaUserResultOutput() GetXoaUserResultOutput
- func (o GetXoaUserResultOutput) ToGetXoaUserResultOutputWithContext(ctx context.Context) GetXoaUserResultOutput
- func (o GetXoaUserResultOutput) Username() pulumi.StringOutput
- type GetXoaVdiArgs
- type GetXoaVdiOutputArgs
- type GetXoaVdiResult
- type GetXoaVdiResultOutput
- func (GetXoaVdiResultOutput) ElementType() reflect.Type
- func (o GetXoaVdiResultOutput) Id() pulumi.StringOutput
- func (o GetXoaVdiResultOutput) NameLabel() pulumi.StringPtrOutput
- func (o GetXoaVdiResultOutput) Parent() pulumi.StringOutput
- func (o GetXoaVdiResultOutput) PoolId() pulumi.StringPtrOutput
- func (o GetXoaVdiResultOutput) Tags() pulumi.StringArrayOutput
- func (o GetXoaVdiResultOutput) ToGetXoaVdiResultOutput() GetXoaVdiResultOutput
- func (o GetXoaVdiResultOutput) ToGetXoaVdiResultOutputWithContext(ctx context.Context) GetXoaVdiResultOutput
- type GetXoaVmsArgs
- type GetXoaVmsOutputArgs
- type GetXoaVmsResult
- type GetXoaVmsResultOutput
- func (GetXoaVmsResultOutput) ElementType() reflect.Type
- func (o GetXoaVmsResultOutput) Host() pulumi.StringPtrOutput
- func (o GetXoaVmsResultOutput) Id() pulumi.StringOutput
- func (o GetXoaVmsResultOutput) PoolId() pulumi.StringOutput
- func (o GetXoaVmsResultOutput) PowerState() pulumi.StringPtrOutput
- func (o GetXoaVmsResultOutput) ToGetXoaVmsResultOutput() GetXoaVmsResultOutput
- func (o GetXoaVmsResultOutput) ToGetXoaVmsResultOutputWithContext(ctx context.Context) GetXoaVmsResultOutput
- func (o GetXoaVmsResultOutput) Vms() GetXoaVmsVmArrayOutput
- type GetXoaVmsVm
- type GetXoaVmsVmArgs
- type GetXoaVmsVmArray
- type GetXoaVmsVmArrayInput
- type GetXoaVmsVmArrayOutput
- func (GetXoaVmsVmArrayOutput) ElementType() reflect.Type
- func (o GetXoaVmsVmArrayOutput) Index(i pulumi.IntInput) GetXoaVmsVmOutput
- func (o GetXoaVmsVmArrayOutput) ToGetXoaVmsVmArrayOutput() GetXoaVmsVmArrayOutput
- func (o GetXoaVmsVmArrayOutput) ToGetXoaVmsVmArrayOutputWithContext(ctx context.Context) GetXoaVmsVmArrayOutput
- type GetXoaVmsVmDisk
- type GetXoaVmsVmDiskArgs
- type GetXoaVmsVmDiskArray
- type GetXoaVmsVmDiskArrayInput
- type GetXoaVmsVmDiskArrayOutput
- func (GetXoaVmsVmDiskArrayOutput) ElementType() reflect.Type
- func (o GetXoaVmsVmDiskArrayOutput) Index(i pulumi.IntInput) GetXoaVmsVmDiskOutput
- func (o GetXoaVmsVmDiskArrayOutput) ToGetXoaVmsVmDiskArrayOutput() GetXoaVmsVmDiskArrayOutput
- func (o GetXoaVmsVmDiskArrayOutput) ToGetXoaVmsVmDiskArrayOutputWithContext(ctx context.Context) GetXoaVmsVmDiskArrayOutput
- type GetXoaVmsVmDiskInput
- type GetXoaVmsVmDiskOutput
- func (o GetXoaVmsVmDiskOutput) Attached() pulumi.BoolPtrOutput
- func (GetXoaVmsVmDiskOutput) ElementType() reflect.Type
- func (o GetXoaVmsVmDiskOutput) NameDescription() pulumi.StringPtrOutput
- func (o GetXoaVmsVmDiskOutput) NameLabel() pulumi.StringOutput
- func (o GetXoaVmsVmDiskOutput) Position() pulumi.StringOutput
- func (o GetXoaVmsVmDiskOutput) Size() pulumi.IntOutput
- func (o GetXoaVmsVmDiskOutput) SrId() pulumi.StringOutput
- func (o GetXoaVmsVmDiskOutput) ToGetXoaVmsVmDiskOutput() GetXoaVmsVmDiskOutput
- func (o GetXoaVmsVmDiskOutput) ToGetXoaVmsVmDiskOutputWithContext(ctx context.Context) GetXoaVmsVmDiskOutput
- func (o GetXoaVmsVmDiskOutput) VbdId() pulumi.StringOutput
- func (o GetXoaVmsVmDiskOutput) VdiId() pulumi.StringOutput
- type GetXoaVmsVmInput
- type GetXoaVmsVmNetwork
- type GetXoaVmsVmNetworkArgs
- type GetXoaVmsVmNetworkArray
- type GetXoaVmsVmNetworkArrayInput
- type GetXoaVmsVmNetworkArrayOutput
- func (GetXoaVmsVmNetworkArrayOutput) ElementType() reflect.Type
- func (o GetXoaVmsVmNetworkArrayOutput) Index(i pulumi.IntInput) GetXoaVmsVmNetworkOutput
- func (o GetXoaVmsVmNetworkArrayOutput) ToGetXoaVmsVmNetworkArrayOutput() GetXoaVmsVmNetworkArrayOutput
- func (o GetXoaVmsVmNetworkArrayOutput) ToGetXoaVmsVmNetworkArrayOutputWithContext(ctx context.Context) GetXoaVmsVmNetworkArrayOutput
- type GetXoaVmsVmNetworkInput
- type GetXoaVmsVmNetworkOutput
- func (o GetXoaVmsVmNetworkOutput) Attached() pulumi.BoolPtrOutput
- func (o GetXoaVmsVmNetworkOutput) Device() pulumi.StringOutput
- func (GetXoaVmsVmNetworkOutput) ElementType() reflect.Type
- func (o GetXoaVmsVmNetworkOutput) ExpectedIpCidr() pulumi.StringPtrOutput
- func (o GetXoaVmsVmNetworkOutput) Ipv4Addresses() pulumi.StringArrayOutput
- func (o GetXoaVmsVmNetworkOutput) Ipv6Addresses() pulumi.StringArrayOutput
- func (o GetXoaVmsVmNetworkOutput) MacAddress() pulumi.StringOutput
- func (o GetXoaVmsVmNetworkOutput) NetworkId() pulumi.StringOutput
- func (o GetXoaVmsVmNetworkOutput) ToGetXoaVmsVmNetworkOutput() GetXoaVmsVmNetworkOutput
- func (o GetXoaVmsVmNetworkOutput) ToGetXoaVmsVmNetworkOutputWithContext(ctx context.Context) GetXoaVmsVmNetworkOutput
- type GetXoaVmsVmOutput
- func (o GetXoaVmsVmOutput) AffinityHost() pulumi.StringPtrOutput
- func (o GetXoaVmsVmOutput) AutoPoweron() pulumi.BoolPtrOutput
- func (o GetXoaVmsVmOutput) BlockedOperations() pulumi.StringArrayOutput
- func (o GetXoaVmsVmOutput) CloneType() pulumi.StringPtrOutput
- func (o GetXoaVmsVmOutput) CloudConfig() pulumi.StringPtrOutput
- func (o GetXoaVmsVmOutput) CloudNetworkConfig() pulumi.StringPtrOutput
- func (o GetXoaVmsVmOutput) CoreOs() pulumi.BoolPtrOutput
- func (o GetXoaVmsVmOutput) CpuCap() pulumi.IntPtrOutput
- func (o GetXoaVmsVmOutput) CpuWeight() pulumi.IntPtrOutput
- func (o GetXoaVmsVmOutput) Cpus() pulumi.IntOutput
- func (o GetXoaVmsVmOutput) Disks() GetXoaVmsVmDiskArrayOutput
- func (GetXoaVmsVmOutput) ElementType() reflect.Type
- func (o GetXoaVmsVmOutput) ExpNestedHvm() pulumi.BoolPtrOutput
- func (o GetXoaVmsVmOutput) HighAvailability() pulumi.StringPtrOutput
- func (o GetXoaVmsVmOutput) Host() pulumi.StringPtrOutput
- func (o GetXoaVmsVmOutput) HvmBootFirmware() pulumi.StringPtrOutput
- func (o GetXoaVmsVmOutput) Id() pulumi.StringOutput
- func (o GetXoaVmsVmOutput) Ipv4Addresses() pulumi.StringArrayOutput
- func (o GetXoaVmsVmOutput) Ipv6Addresses() pulumi.StringArrayOutput
- func (o GetXoaVmsVmOutput) MemoryMax() pulumi.IntOutput
- func (o GetXoaVmsVmOutput) NameDescription() pulumi.StringPtrOutput
- func (o GetXoaVmsVmOutput) NameLabel() pulumi.StringOutput
- func (o GetXoaVmsVmOutput) Networks() GetXoaVmsVmNetworkArrayOutput
- func (o GetXoaVmsVmOutput) PowerState() pulumi.StringPtrOutput
- func (o GetXoaVmsVmOutput) ResourceSet() pulumi.StringPtrOutput
- func (o GetXoaVmsVmOutput) StartDelay() pulumi.IntPtrOutput
- func (o GetXoaVmsVmOutput) Tags() pulumi.StringArrayOutput
- func (o GetXoaVmsVmOutput) Template() pulumi.StringOutput
- func (o GetXoaVmsVmOutput) ToGetXoaVmsVmOutput() GetXoaVmsVmOutput
- func (o GetXoaVmsVmOutput) ToGetXoaVmsVmOutputWithContext(ctx context.Context) GetXoaVmsVmOutput
- func (o GetXoaVmsVmOutput) Vga() pulumi.StringPtrOutput
- func (o GetXoaVmsVmOutput) Videoram() pulumi.IntPtrOutput
- func (o GetXoaVmsVmOutput) Xenstore() pulumi.StringMapOutput
- type LookupCloudConfigArgs
- type LookupCloudConfigOutputArgs
- type LookupCloudConfigResult
- type LookupCloudConfigResultOutput
- func (LookupCloudConfigResultOutput) ElementType() reflect.Type
- func (o LookupCloudConfigResultOutput) Id() pulumi.StringOutput
- func (o LookupCloudConfigResultOutput) Name() pulumi.StringOutput
- func (o LookupCloudConfigResultOutput) Template() pulumi.StringOutput
- func (o LookupCloudConfigResultOutput) ToLookupCloudConfigResultOutput() LookupCloudConfigResultOutput
- func (o LookupCloudConfigResultOutput) ToLookupCloudConfigResultOutputWithContext(ctx context.Context) LookupCloudConfigResultOutput
- type LookupNetworkArgs
- type LookupNetworkOutputArgs
- type LookupNetworkResult
- type LookupNetworkResultOutput
- func (o LookupNetworkResultOutput) Bridge() pulumi.StringOutput
- func (LookupNetworkResultOutput) ElementType() reflect.Type
- func (o LookupNetworkResultOutput) Id() pulumi.StringOutput
- func (o LookupNetworkResultOutput) NameLabel() pulumi.StringOutput
- func (o LookupNetworkResultOutput) PoolId() pulumi.StringPtrOutput
- func (o LookupNetworkResultOutput) ToLookupNetworkResultOutput() LookupNetworkResultOutput
- func (o LookupNetworkResultOutput) ToLookupNetworkResultOutputWithContext(ctx context.Context) LookupNetworkResultOutput
- type LookupResourceSetArgs
- type LookupResourceSetOutputArgs
- type LookupResourceSetResult
- type LookupResourceSetResultOutput
- func (LookupResourceSetResultOutput) ElementType() reflect.Type
- func (o LookupResourceSetResultOutput) Id() pulumi.StringOutput
- func (o LookupResourceSetResultOutput) Name() pulumi.StringOutput
- func (o LookupResourceSetResultOutput) ToLookupResourceSetResultOutput() LookupResourceSetResultOutput
- func (o LookupResourceSetResultOutput) ToLookupResourceSetResultOutputWithContext(ctx context.Context) LookupResourceSetResultOutput
- type LookupVdiArgs
- type LookupVdiOutputArgs
- type LookupVdiResult
- type LookupVdiResultOutput
- func (LookupVdiResultOutput) ElementType() reflect.Type
- func (o LookupVdiResultOutput) Id() pulumi.StringOutput
- func (o LookupVdiResultOutput) NameLabel() pulumi.StringPtrOutput
- func (o LookupVdiResultOutput) Parent() pulumi.StringOutput
- func (o LookupVdiResultOutput) PoolId() pulumi.StringPtrOutput
- func (o LookupVdiResultOutput) Tags() pulumi.StringArrayOutput
- func (o LookupVdiResultOutput) ToLookupVdiResultOutput() LookupVdiResultOutput
- func (o LookupVdiResultOutput) ToLookupVdiResultOutputWithContext(ctx context.Context) LookupVdiResultOutput
- type LookupXoaNetworkArgs
- type LookupXoaNetworkOutputArgs
- type LookupXoaNetworkResult
- type LookupXoaNetworkResultOutput
- func (o LookupXoaNetworkResultOutput) Bridge() pulumi.StringOutput
- func (LookupXoaNetworkResultOutput) ElementType() reflect.Type
- func (o LookupXoaNetworkResultOutput) Id() pulumi.StringOutput
- func (o LookupXoaNetworkResultOutput) NameLabel() pulumi.StringOutput
- func (o LookupXoaNetworkResultOutput) PoolId() pulumi.StringPtrOutput
- func (o LookupXoaNetworkResultOutput) ToLookupXoaNetworkResultOutput() LookupXoaNetworkResultOutput
- func (o LookupXoaNetworkResultOutput) ToLookupXoaNetworkResultOutputWithContext(ctx context.Context) LookupXoaNetworkResultOutput
- type Networkdeprecated
- type NetworkArgs
- type NetworkArray
- type NetworkArrayInput
- type NetworkArrayOutput
- type NetworkInput
- type NetworkMap
- type NetworkMapInput
- type NetworkMapOutput
- type NetworkOutput
- func (o NetworkOutput) Automatic() pulumi.BoolPtrOutput
- func (o NetworkOutput) DefaultIsLocked() pulumi.BoolPtrOutput
- func (NetworkOutput) ElementType() reflect.Type
- func (o NetworkOutput) Mtu() pulumi.IntPtrOutput
- func (o NetworkOutput) NameDescription() pulumi.StringPtrOutput
- func (o NetworkOutput) NameLabel() pulumi.StringOutput
- func (o NetworkOutput) Nbd() pulumi.BoolPtrOutput
- func (o NetworkOutput) PoolId() pulumi.StringOutput
- func (o NetworkOutput) SourcePifDevice() pulumi.StringPtrOutput
- func (o NetworkOutput) ToNetworkOutput() NetworkOutput
- func (o NetworkOutput) ToNetworkOutputWithContext(ctx context.Context) NetworkOutput
- func (o NetworkOutput) Vlan() pulumi.IntPtrOutput
- type NetworkState
- type Provider
- type ProviderArgs
- type ProviderInput
- type ProviderOutput
- func (ProviderOutput) ElementType() reflect.Type
- func (o ProviderOutput) Password() pulumi.StringPtrOutput
- func (o ProviderOutput) RetryMaxTime() pulumi.StringPtrOutput
- func (o ProviderOutput) RetryMode() pulumi.StringPtrOutput
- func (o ProviderOutput) ToProviderOutput() ProviderOutput
- func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput
- func (o ProviderOutput) Token() pulumi.StringPtrOutput
- func (o ProviderOutput) Url() pulumi.StringOutput
- func (o ProviderOutput) Username() pulumi.StringPtrOutput
- type ResourceSet
- type ResourceSetArgs
- type ResourceSetArray
- type ResourceSetArrayInput
- type ResourceSetArrayOutput
- func (ResourceSetArrayOutput) ElementType() reflect.Type
- func (o ResourceSetArrayOutput) Index(i pulumi.IntInput) ResourceSetOutput
- func (o ResourceSetArrayOutput) ToResourceSetArrayOutput() ResourceSetArrayOutput
- func (o ResourceSetArrayOutput) ToResourceSetArrayOutputWithContext(ctx context.Context) ResourceSetArrayOutput
- type ResourceSetInput
- type ResourceSetLimit
- type ResourceSetLimitArgs
- type ResourceSetLimitArray
- type ResourceSetLimitArrayInput
- type ResourceSetLimitArrayOutput
- func (ResourceSetLimitArrayOutput) ElementType() reflect.Type
- func (o ResourceSetLimitArrayOutput) Index(i pulumi.IntInput) ResourceSetLimitOutput
- func (o ResourceSetLimitArrayOutput) ToResourceSetLimitArrayOutput() ResourceSetLimitArrayOutput
- func (o ResourceSetLimitArrayOutput) ToResourceSetLimitArrayOutputWithContext(ctx context.Context) ResourceSetLimitArrayOutput
- type ResourceSetLimitInput
- type ResourceSetLimitOutput
- func (ResourceSetLimitOutput) ElementType() reflect.Type
- func (o ResourceSetLimitOutput) Quantity() pulumi.IntOutput
- func (o ResourceSetLimitOutput) ToResourceSetLimitOutput() ResourceSetLimitOutput
- func (o ResourceSetLimitOutput) ToResourceSetLimitOutputWithContext(ctx context.Context) ResourceSetLimitOutput
- func (o ResourceSetLimitOutput) Type() pulumi.StringOutput
- type ResourceSetMap
- type ResourceSetMapInput
- type ResourceSetMapOutput
- func (ResourceSetMapOutput) ElementType() reflect.Type
- func (o ResourceSetMapOutput) MapIndex(k pulumi.StringInput) ResourceSetOutput
- func (o ResourceSetMapOutput) ToResourceSetMapOutput() ResourceSetMapOutput
- func (o ResourceSetMapOutput) ToResourceSetMapOutputWithContext(ctx context.Context) ResourceSetMapOutput
- type ResourceSetOutput
- func (ResourceSetOutput) ElementType() reflect.Type
- func (o ResourceSetOutput) Limits() ResourceSetLimitArrayOutput
- func (o ResourceSetOutput) Name() pulumi.StringOutput
- func (o ResourceSetOutput) Objects() pulumi.StringArrayOutput
- func (o ResourceSetOutput) Subjects() pulumi.StringArrayOutput
- func (o ResourceSetOutput) ToResourceSetOutput() ResourceSetOutput
- func (o ResourceSetOutput) ToResourceSetOutputWithContext(ctx context.Context) ResourceSetOutput
- type ResourceSetState
- type Vdi
- type VdiArgs
- type VdiArray
- type VdiArrayInput
- type VdiArrayOutput
- type VdiInput
- type VdiMap
- type VdiMapInput
- type VdiMapOutput
- type VdiOutput
- func (VdiOutput) ElementType() reflect.Type
- func (o VdiOutput) Filepath() pulumi.StringOutput
- func (o VdiOutput) NameLabel() pulumi.StringOutput
- func (o VdiOutput) SrId() pulumi.StringOutput
- func (o VdiOutput) ToVdiOutput() VdiOutput
- func (o VdiOutput) ToVdiOutputWithContext(ctx context.Context) VdiOutput
- func (o VdiOutput) Type() pulumi.StringOutput
- type VdiState
- type Vm
- type VmArgs
- type VmArray
- type VmArrayInput
- type VmArrayOutput
- type VmCdrom
- type VmCdromArgs
- func (VmCdromArgs) ElementType() reflect.Type
- func (i VmCdromArgs) ToVmCdromOutput() VmCdromOutput
- func (i VmCdromArgs) ToVmCdromOutputWithContext(ctx context.Context) VmCdromOutput
- func (i VmCdromArgs) ToVmCdromPtrOutput() VmCdromPtrOutput
- func (i VmCdromArgs) ToVmCdromPtrOutputWithContext(ctx context.Context) VmCdromPtrOutput
- type VmCdromInput
- type VmCdromOutput
- func (VmCdromOutput) ElementType() reflect.Type
- func (o VmCdromOutput) Id() pulumi.StringOutput
- func (o VmCdromOutput) ToVmCdromOutput() VmCdromOutput
- func (o VmCdromOutput) ToVmCdromOutputWithContext(ctx context.Context) VmCdromOutput
- func (o VmCdromOutput) ToVmCdromPtrOutput() VmCdromPtrOutput
- func (o VmCdromOutput) ToVmCdromPtrOutputWithContext(ctx context.Context) VmCdromPtrOutput
- type VmCdromPtrInput
- type VmCdromPtrOutput
- func (o VmCdromPtrOutput) Elem() VmCdromOutput
- func (VmCdromPtrOutput) ElementType() reflect.Type
- func (o VmCdromPtrOutput) Id() pulumi.StringPtrOutput
- func (o VmCdromPtrOutput) ToVmCdromPtrOutput() VmCdromPtrOutput
- func (o VmCdromPtrOutput) ToVmCdromPtrOutputWithContext(ctx context.Context) VmCdromPtrOutput
- type VmDisk
- type VmDiskArgs
- type VmDiskArray
- type VmDiskArrayInput
- type VmDiskArrayOutput
- type VmDiskInput
- type VmDiskOutput
- func (o VmDiskOutput) Attached() pulumi.BoolPtrOutput
- func (VmDiskOutput) ElementType() reflect.Type
- func (o VmDiskOutput) NameDescription() pulumi.StringPtrOutput
- func (o VmDiskOutput) NameLabel() pulumi.StringOutput
- func (o VmDiskOutput) Position() pulumi.StringPtrOutput
- func (o VmDiskOutput) Size() pulumi.Float64Output
- func (o VmDiskOutput) SrId() pulumi.StringOutput
- func (o VmDiskOutput) ToVmDiskOutput() VmDiskOutput
- func (o VmDiskOutput) ToVmDiskOutputWithContext(ctx context.Context) VmDiskOutput
- func (o VmDiskOutput) VbdId() pulumi.StringPtrOutput
- func (o VmDiskOutput) VdiId() pulumi.StringPtrOutput
- type VmInput
- type VmMap
- type VmMapInput
- type VmMapOutput
- type VmNetwork
- type VmNetworkArgs
- type VmNetworkArray
- type VmNetworkArrayInput
- type VmNetworkArrayOutput
- func (VmNetworkArrayOutput) ElementType() reflect.Type
- func (o VmNetworkArrayOutput) Index(i pulumi.IntInput) VmNetworkOutput
- func (o VmNetworkArrayOutput) ToVmNetworkArrayOutput() VmNetworkArrayOutput
- func (o VmNetworkArrayOutput) ToVmNetworkArrayOutputWithContext(ctx context.Context) VmNetworkArrayOutput
- type VmNetworkInput
- type VmNetworkOutput
- func (o VmNetworkOutput) Attached() pulumi.BoolPtrOutput
- func (o VmNetworkOutput) Device() pulumi.StringPtrOutput
- func (VmNetworkOutput) ElementType() reflect.Type
- func (o VmNetworkOutput) ExpectedIpCidr() pulumi.StringPtrOutput
- func (o VmNetworkOutput) Ipv4Addresses() pulumi.StringArrayOutput
- func (o VmNetworkOutput) Ipv6Addresses() pulumi.StringArrayOutput
- func (o VmNetworkOutput) MacAddress() pulumi.StringPtrOutput
- func (o VmNetworkOutput) NetworkId() pulumi.StringOutput
- func (o VmNetworkOutput) ToVmNetworkOutput() VmNetworkOutput
- func (o VmNetworkOutput) ToVmNetworkOutputWithContext(ctx context.Context) VmNetworkOutput
- type VmOutput
- func (o VmOutput) AffinityHost() pulumi.StringPtrOutput
- func (o VmOutput) AutoPoweron() pulumi.BoolPtrOutput
- func (o VmOutput) BlockedOperations() pulumi.StringArrayOutput
- func (o VmOutput) Cdrom() VmCdromPtrOutput
- func (o VmOutput) CloneType() pulumi.StringPtrOutput
- func (o VmOutput) CloudConfig() pulumi.StringPtrOutput
- func (o VmOutput) CloudNetworkConfig() pulumi.StringPtrOutput
- func (o VmOutput) CoreOs() pulumi.BoolPtrOutput
- func (o VmOutput) CpuCap() pulumi.IntPtrOutput
- func (o VmOutput) CpuWeight() pulumi.IntPtrOutput
- func (o VmOutput) Cpus() pulumi.IntOutput
- func (o VmOutput) DestroyCloudConfigVdiAfterBoot() pulumi.BoolPtrOutput
- func (o VmOutput) Disks() VmDiskArrayOutput
- func (VmOutput) ElementType() reflect.Type
- func (o VmOutput) ExpNestedHvm() pulumi.BoolPtrOutput
- func (o VmOutput) HighAvailability() pulumi.StringPtrOutput
- func (o VmOutput) Host() pulumi.StringPtrOutput
- func (o VmOutput) HvmBootFirmware() pulumi.StringPtrOutput
- func (o VmOutput) InstallationMethod() pulumi.StringPtrOutput
- func (o VmOutput) Ipv4Addresses() pulumi.StringArrayOutput
- func (o VmOutput) Ipv6Addresses() pulumi.StringArrayOutput
- func (o VmOutput) MemoryMax() pulumi.Float64Output
- func (o VmOutput) NameDescription() pulumi.StringPtrOutput
- func (o VmOutput) NameLabel() pulumi.StringOutput
- func (o VmOutput) Networks() VmNetworkArrayOutput
- func (o VmOutput) PowerState() pulumi.StringPtrOutput
- func (o VmOutput) ResourceSet() pulumi.StringPtrOutput
- func (o VmOutput) StartDelay() pulumi.IntPtrOutput
- func (o VmOutput) Tags() pulumi.StringArrayOutput
- func (o VmOutput) Template() pulumi.StringOutput
- func (o VmOutput) ToVmOutput() VmOutput
- func (o VmOutput) ToVmOutputWithContext(ctx context.Context) VmOutput
- func (o VmOutput) Vga() pulumi.StringPtrOutput
- func (o VmOutput) Videoram() pulumi.IntPtrOutput
- func (o VmOutput) Xenstore() pulumi.StringMapOutput
- type VmState
- type XoaBondedNetwork
- type XoaBondedNetworkArgs
- type XoaBondedNetworkArray
- type XoaBondedNetworkArrayInput
- type XoaBondedNetworkArrayOutput
- func (XoaBondedNetworkArrayOutput) ElementType() reflect.Type
- func (o XoaBondedNetworkArrayOutput) Index(i pulumi.IntInput) XoaBondedNetworkOutput
- func (o XoaBondedNetworkArrayOutput) ToXoaBondedNetworkArrayOutput() XoaBondedNetworkArrayOutput
- func (o XoaBondedNetworkArrayOutput) ToXoaBondedNetworkArrayOutputWithContext(ctx context.Context) XoaBondedNetworkArrayOutput
- type XoaBondedNetworkInput
- type XoaBondedNetworkMap
- type XoaBondedNetworkMapInput
- type XoaBondedNetworkMapOutput
- func (XoaBondedNetworkMapOutput) ElementType() reflect.Type
- func (o XoaBondedNetworkMapOutput) MapIndex(k pulumi.StringInput) XoaBondedNetworkOutput
- func (o XoaBondedNetworkMapOutput) ToXoaBondedNetworkMapOutput() XoaBondedNetworkMapOutput
- func (o XoaBondedNetworkMapOutput) ToXoaBondedNetworkMapOutputWithContext(ctx context.Context) XoaBondedNetworkMapOutput
- type XoaBondedNetworkOutput
- func (o XoaBondedNetworkOutput) Automatic() pulumi.BoolPtrOutput
- func (o XoaBondedNetworkOutput) BondMode() pulumi.StringPtrOutput
- func (o XoaBondedNetworkOutput) DefaultIsLocked() pulumi.BoolPtrOutput
- func (XoaBondedNetworkOutput) ElementType() reflect.Type
- func (o XoaBondedNetworkOutput) Mtu() pulumi.IntPtrOutput
- func (o XoaBondedNetworkOutput) NameDescription() pulumi.StringPtrOutput
- func (o XoaBondedNetworkOutput) NameLabel() pulumi.StringOutput
- func (o XoaBondedNetworkOutput) PifIds() pulumi.StringArrayOutput
- func (o XoaBondedNetworkOutput) PoolId() pulumi.StringOutput
- func (o XoaBondedNetworkOutput) ToXoaBondedNetworkOutput() XoaBondedNetworkOutput
- func (o XoaBondedNetworkOutput) ToXoaBondedNetworkOutputWithContext(ctx context.Context) XoaBondedNetworkOutput
- type XoaBondedNetworkState
- type XoaNetwork
- type XoaNetworkArgs
- type XoaNetworkArray
- type XoaNetworkArrayInput
- type XoaNetworkArrayOutput
- func (XoaNetworkArrayOutput) ElementType() reflect.Type
- func (o XoaNetworkArrayOutput) Index(i pulumi.IntInput) XoaNetworkOutput
- func (o XoaNetworkArrayOutput) ToXoaNetworkArrayOutput() XoaNetworkArrayOutput
- func (o XoaNetworkArrayOutput) ToXoaNetworkArrayOutputWithContext(ctx context.Context) XoaNetworkArrayOutput
- type XoaNetworkInput
- type XoaNetworkMap
- type XoaNetworkMapInput
- type XoaNetworkMapOutput
- func (XoaNetworkMapOutput) ElementType() reflect.Type
- func (o XoaNetworkMapOutput) MapIndex(k pulumi.StringInput) XoaNetworkOutput
- func (o XoaNetworkMapOutput) ToXoaNetworkMapOutput() XoaNetworkMapOutput
- func (o XoaNetworkMapOutput) ToXoaNetworkMapOutputWithContext(ctx context.Context) XoaNetworkMapOutput
- type XoaNetworkOutput
- func (o XoaNetworkOutput) Automatic() pulumi.BoolPtrOutput
- func (o XoaNetworkOutput) DefaultIsLocked() pulumi.BoolPtrOutput
- func (XoaNetworkOutput) ElementType() reflect.Type
- func (o XoaNetworkOutput) Mtu() pulumi.IntPtrOutput
- func (o XoaNetworkOutput) NameDescription() pulumi.StringPtrOutput
- func (o XoaNetworkOutput) NameLabel() pulumi.StringOutput
- func (o XoaNetworkOutput) Nbd() pulumi.BoolPtrOutput
- func (o XoaNetworkOutput) PoolId() pulumi.StringOutput
- func (o XoaNetworkOutput) SourcePifDevice() pulumi.StringPtrOutput
- func (o XoaNetworkOutput) ToXoaNetworkOutput() XoaNetworkOutput
- func (o XoaNetworkOutput) ToXoaNetworkOutputWithContext(ctx context.Context) XoaNetworkOutput
- func (o XoaNetworkOutput) Vlan() pulumi.IntPtrOutput
- type XoaNetworkState
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) ToAclOutput ¶
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 ¶
type AclArray ¶
type AclArray []AclInput
func (AclArray) ElementType ¶
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) ToAclArrayOutput ¶
func (o AclArrayOutput) ToAclArrayOutput() AclArrayOutput
func (AclArrayOutput) ToAclArrayOutputWithContext ¶
func (o AclArrayOutput) ToAclArrayOutputWithContext(ctx context.Context) AclArrayOutput
type AclMap ¶
func (AclMap) ElementType ¶
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) 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 ¶
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 ¶
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 (o BondedNetworkArrayOutput) Index(i pulumi.IntInput) BondedNetworkOutput
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 (o BondedNetworkMapOutput) MapIndex(k pulumi.StringInput) BondedNetworkOutput
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 (o BondedNetworkOutput) Automatic() pulumi.BoolPtrOutput
func (BondedNetworkOutput) BondMode ¶
func (o BondedNetworkOutput) BondMode() pulumi.StringPtrOutput
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 ¶
func (o BondedNetworkOutput) Mtu() pulumi.IntPtrOutput
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 ¶
func (o BondedNetworkOutput) PifIds() pulumi.StringArrayOutput
The pifs (uuid) that should be used for this network.
func (BondedNetworkOutput) PoolId ¶
func (o BondedNetworkOutput) PoolId() pulumi.StringOutput
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 (o CloudConfigArrayOutput) Index(i pulumi.IntInput) CloudConfigOutput
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 (o CloudConfigMapOutput) MapIndex(k pulumi.StringInput) CloudConfigOutput
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 ¶
func (o CloudConfigOutput) Name() pulumi.StringOutput
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 GetHostOutput ¶
func GetHostOutput(ctx *pulumi.Context, args GetHostOutputArgs, opts ...pulumi.InvokeOption) GetHostResultOutput
func (GetHostResultOutput) Cpus ¶
func (o GetHostResultOutput) Cpus() pulumi.IntMapOutput
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 ¶
func (o GetHostResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetHostResultOutput) Memory ¶
func (o GetHostResultOutput) Memory() pulumi.Float64Output
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 ¶
func (o GetHostResultOutput) PoolId() pulumi.StringOutput
Id of the pool that the host belongs to.
func (GetHostResultOutput) Tags ¶
func (o GetHostResultOutput) Tags() pulumi.StringArrayOutput
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 (o GetHostsHostArrayOutput) Index(i pulumi.IntInput) GetHostsHostOutput
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 ¶
func (o GetHostsHostOutput) Cpus() pulumi.IntMapOutput
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 (o GetHostsHostOutput) Id() pulumi.StringOutput
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 ¶
func (o GetHostsHostOutput) PoolId() pulumi.StringOutput
Id of the pool that the host belongs to.
func (GetHostsHostOutput) Tags ¶
func (o GetHostsHostOutput) Tags() pulumi.StringArrayOutput
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 GetHostsOutput ¶
func GetHostsOutput(ctx *pulumi.Context, args GetHostsOutputArgs, opts ...pulumi.InvokeOption) GetHostsResultOutput
func (GetHostsResultOutput) ElementType ¶
func (GetHostsResultOutput) ElementType() reflect.Type
func (GetHostsResultOutput) Hosts ¶
func (o GetHostsResultOutput) Hosts() GetHostsHostArrayOutput
The resulting hosts after applying the argument filtering.
func (GetHostsResultOutput) Id ¶
func (o GetHostsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetHostsResultOutput) Master ¶
func (o GetHostsResultOutput) Master() pulumi.StringOutput
The primary host of the pool.
func (GetHostsResultOutput) PoolId ¶
func (o GetHostsResultOutput) PoolId() pulumi.StringOutput
The pool id used to filter the resulting hosts by.
func (GetHostsResultOutput) SortBy ¶
func (o GetHostsResultOutput) SortBy() pulumi.StringPtrOutput
The host field to sort the results by (id and nameLabel are supported).
func (GetHostsResultOutput) SortOrder ¶
func (o GetHostsResultOutput) SortOrder() pulumi.StringPtrOutput
Valid options are `asc` or `desc` and sort order is applied to `sortBy` argument.
func (GetHostsResultOutput) Tags ¶
func (o GetHostsResultOutput) Tags() pulumi.StringArrayOutput
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 ¶
func (o GetPifResultOutput) Device() pulumi.StringOutput
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 ¶
func (o GetPifResultOutput) Host() pulumi.StringOutput
The host the PIF is associated with.
func (GetPifResultOutput) HostId ¶
func (o GetPifResultOutput) HostId() pulumi.StringOutput
The ID of the host that the PIF belongs to.
func (GetPifResultOutput) Id ¶
func (o GetPifResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetPifResultOutput) Network ¶
func (o GetPifResultOutput) Network() pulumi.StringOutput
The network the PIF is associated with.
func (GetPifResultOutput) PoolId ¶
func (o GetPifResultOutput) PoolId() pulumi.StringOutput
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 ¶
func (o GetPifResultOutput) Uuid() pulumi.StringOutput
The uuid of the PIF.
func (GetPifResultOutput) Vlan ¶
func (o GetPifResultOutput) Vlan() pulumi.IntOutput
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 GetPoolOutput ¶
func GetPoolOutput(ctx *pulumi.Context, args GetPoolOutputArgs, opts ...pulumi.InvokeOption) GetPoolResultOutput
func (GetPoolResultOutput) Cpus ¶
func (o GetPoolResultOutput) Cpus() pulumi.StringMapOutput
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 ¶
func (o GetPoolResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetPoolResultOutput) Master ¶
func (o GetPoolResultOutput) Master() pulumi.StringOutput
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 ¶
func (o GetSrResultOutput) Id() pulumi.StringOutput
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 ¶
func (o GetSrResultOutput) PoolId() pulumi.StringPtrOutput
The Id of the pool the storage repository exists on.
func (GetSrResultOutput) Size ¶
func (o GetSrResultOutput) Size() pulumi.Float64Output
The storage size.
func (GetSrResultOutput) SrType ¶
func (o GetSrResultOutput) SrType() pulumi.StringOutput
The type of storage repository (lvm, udev, iso, user, etc).
func (GetSrResultOutput) Tags ¶
func (o GetSrResultOutput) Tags() pulumi.StringArrayOutput
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 ¶
func (o GetSrResultOutput) Usage() pulumi.Float64Output
The current usage for this storage repository.
func (GetSrResultOutput) Uuid ¶
func (o GetSrResultOutput) Uuid() pulumi.StringOutput
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 GetTemplateOutput ¶
func GetTemplateOutput(ctx *pulumi.Context, args GetTemplateOutputArgs, opts ...pulumi.InvokeOption) GetTemplateResultOutput
func (GetTemplateResultOutput) ElementType ¶
func (GetTemplateResultOutput) ElementType() reflect.Type
func (GetTemplateResultOutput) Id ¶
func (o GetTemplateResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetTemplateResultOutput) NameLabel ¶
func (o GetTemplateResultOutput) NameLabel() pulumi.StringOutput
The name of the template to look up.
func (GetTemplateResultOutput) PoolId ¶
func (o GetTemplateResultOutput) PoolId() pulumi.StringPtrOutput
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 ¶
func (o GetTemplateResultOutput) Uuid() pulumi.StringOutput
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 GetUserOutput ¶
func GetUserOutput(ctx *pulumi.Context, args GetUserOutputArgs, opts ...pulumi.InvokeOption) GetUserResultOutput
func (GetUserResultOutput) ElementType ¶
func (GetUserResultOutput) ElementType() reflect.Type
func (GetUserResultOutput) Id ¶
func (o GetUserResultOutput) Id() pulumi.StringOutput
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 ¶
func (o GetUserResultOutput) Username() pulumi.StringOutput
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 (o GetVmsResultOutput) Host() pulumi.StringPtrOutput
func (GetVmsResultOutput) Id ¶
func (o GetVmsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetVmsResultOutput) PoolId ¶
func (o GetVmsResultOutput) PoolId() pulumi.StringOutput
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 ¶
func (o GetVmsResultOutput) Vms() GetVmsVmArrayOutput
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 (o GetVmsVmArrayOutput) Index(i pulumi.IntInput) GetVmsVmOutput
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 (o GetVmsVmDiskArrayOutput) Index(i pulumi.IntInput) GetVmsVmDiskOutput
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 ¶
func (o GetVmsVmDiskOutput) Attached() pulumi.BoolPtrOutput
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 ¶
func (o GetVmsVmDiskOutput) Size() pulumi.IntOutput
The size in bytes for the disk.
func (GetVmsVmDiskOutput) SrId ¶
func (o GetVmsVmDiskOutput) SrId() pulumi.StringOutput
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 (o GetVmsVmDiskOutput) VbdId() pulumi.StringOutput
func (GetVmsVmDiskOutput) VdiId ¶
func (o GetVmsVmDiskOutput) VdiId() pulumi.StringOutput
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 (o GetVmsVmNetworkArrayOutput) Index(i pulumi.IntInput) GetVmsVmNetworkOutput
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 ¶
func (o GetVmsVmNetworkOutput) Attached() pulumi.BoolPtrOutput
Whether the device should be attached to the VM.
func (GetVmsVmNetworkOutput) Device ¶
func (o GetVmsVmNetworkOutput) Device() pulumi.StringOutput
func (GetVmsVmNetworkOutput) ElementType ¶
func (GetVmsVmNetworkOutput) ElementType() reflect.Type
func (GetVmsVmNetworkOutput) ExpectedIpCidr ¶
func (o GetVmsVmNetworkOutput) ExpectedIpCidr() pulumi.StringPtrOutput
func (GetVmsVmNetworkOutput) Ipv4Addresses ¶
func (o GetVmsVmNetworkOutput) Ipv4Addresses() pulumi.StringArrayOutput
func (GetVmsVmNetworkOutput) Ipv6Addresses ¶
func (o GetVmsVmNetworkOutput) Ipv6Addresses() pulumi.StringArrayOutput
func (GetVmsVmNetworkOutput) MacAddress ¶
func (o GetVmsVmNetworkOutput) MacAddress() pulumi.StringOutput
func (GetVmsVmNetworkOutput) NetworkId ¶
func (o GetVmsVmNetworkOutput) NetworkId() pulumi.StringOutput
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 ¶
func (o GetVmsVmOutput) Disks() GetVmsVmDiskArrayOutput
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 (o GetVmsVmOutput) Host() pulumi.StringPtrOutput
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 (o GetVmsVmOutput) Id() pulumi.StringOutput
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 ¶
func (o GetVmsVmOutput) Networks() GetVmsVmNetworkArrayOutput
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 ¶
func (o GetVmsVmOutput) Tags() pulumi.StringArrayOutput
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 ¶
func (o GetVmsVmOutput) Vga() pulumi.StringPtrOutput
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 ¶
func (GetXoaCloudConfigOutputArgs) ElementType() reflect.Type
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 GetXoaCloudConfigOutput ¶
func GetXoaCloudConfigOutput(ctx *pulumi.Context, args GetXoaCloudConfigOutputArgs, opts ...pulumi.InvokeOption) GetXoaCloudConfigResultOutput
func (GetXoaCloudConfigResultOutput) ElementType ¶
func (GetXoaCloudConfigResultOutput) ElementType() reflect.Type
func (GetXoaCloudConfigResultOutput) Id ¶
func (o GetXoaCloudConfigResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetXoaCloudConfigResultOutput) Name ¶
func (o GetXoaCloudConfigResultOutput) Name() pulumi.StringOutput
The name of the cloud config you want to look up.
func (GetXoaCloudConfigResultOutput) Template ¶
func (o GetXoaCloudConfigResultOutput) Template() pulumi.StringOutput
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 GetXoaHostOutput ¶
func GetXoaHostOutput(ctx *pulumi.Context, args GetXoaHostOutputArgs, opts ...pulumi.InvokeOption) GetXoaHostResultOutput
func (GetXoaHostResultOutput) Cpus ¶
func (o GetXoaHostResultOutput) Cpus() pulumi.IntMapOutput
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 ¶
func (o GetXoaHostResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetXoaHostResultOutput) Memory ¶
func (o GetXoaHostResultOutput) Memory() pulumi.Float64Output
The memory size of the host.
func (GetXoaHostResultOutput) MemoryUsage ¶
func (o GetXoaHostResultOutput) MemoryUsage() pulumi.Float64Output
The memory usage of the host.
func (GetXoaHostResultOutput) NameLabel ¶
func (o GetXoaHostResultOutput) NameLabel() pulumi.StringOutput
The name label of the host.
func (GetXoaHostResultOutput) PoolId ¶
func (o GetXoaHostResultOutput) PoolId() pulumi.StringOutput
Id of the pool that the host belongs to.
func (GetXoaHostResultOutput) Tags ¶
func (o GetXoaHostResultOutput) Tags() pulumi.StringArrayOutput
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 (o GetXoaHostsHostArrayOutput) Index(i pulumi.IntInput) GetXoaHostsHostOutput
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 ¶
func (o GetXoaHostsHostOutput) Cpus() pulumi.IntMapOutput
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 (o GetXoaHostsHostOutput) Id() pulumi.StringOutput
func (GetXoaHostsHostOutput) Memory ¶
func (o GetXoaHostsHostOutput) Memory() pulumi.IntOutput
The memory size of the host.
func (GetXoaHostsHostOutput) MemoryUsage ¶
func (o GetXoaHostsHostOutput) MemoryUsage() pulumi.IntOutput
The memory usage of the host.
func (GetXoaHostsHostOutput) NameLabel ¶
func (o GetXoaHostsHostOutput) NameLabel() pulumi.StringOutput
The name label of the host.
func (GetXoaHostsHostOutput) PoolId ¶
func (o GetXoaHostsHostOutput) PoolId() pulumi.StringOutput
Id of the pool that the host belongs to.
func (GetXoaHostsHostOutput) Tags ¶
func (o GetXoaHostsHostOutput) Tags() pulumi.StringArrayOutput
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 GetXoaHostsOutput ¶
func GetXoaHostsOutput(ctx *pulumi.Context, args GetXoaHostsOutputArgs, opts ...pulumi.InvokeOption) GetXoaHostsResultOutput
func (GetXoaHostsResultOutput) ElementType ¶
func (GetXoaHostsResultOutput) ElementType() reflect.Type
func (GetXoaHostsResultOutput) Hosts ¶
func (o GetXoaHostsResultOutput) Hosts() GetXoaHostsHostArrayOutput
The resulting hosts after applying the argument filtering.
func (GetXoaHostsResultOutput) Id ¶
func (o GetXoaHostsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetXoaHostsResultOutput) Master ¶
func (o GetXoaHostsResultOutput) Master() pulumi.StringOutput
The primary host of the pool.
func (GetXoaHostsResultOutput) PoolId ¶
func (o GetXoaHostsResultOutput) PoolId() pulumi.StringOutput
The pool id used to filter the resulting hosts by.
func (GetXoaHostsResultOutput) SortBy ¶
func (o GetXoaHostsResultOutput) SortBy() pulumi.StringPtrOutput
The host field to sort the results by (id and nameLabel are supported).
func (GetXoaHostsResultOutput) SortOrder ¶
func (o GetXoaHostsResultOutput) SortOrder() pulumi.StringPtrOutput
Valid options are `asc` or `desc` and sort order is applied to `sortBy` argument.
func (GetXoaHostsResultOutput) Tags ¶
func (o GetXoaHostsResultOutput) Tags() pulumi.StringArrayOutput
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 GetXoaPifOutput ¶
func GetXoaPifOutput(ctx *pulumi.Context, args GetXoaPifOutputArgs, opts ...pulumi.InvokeOption) GetXoaPifResultOutput
func (GetXoaPifResultOutput) Attached ¶
func (o GetXoaPifResultOutput) Attached() pulumi.BoolOutput
If the PIF is attached to the network.
func (GetXoaPifResultOutput) Device ¶
func (o GetXoaPifResultOutput) Device() pulumi.StringOutput
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 ¶
func (o GetXoaPifResultOutput) Host() pulumi.StringOutput
The host the PIF is associated with.
func (GetXoaPifResultOutput) HostId ¶
func (o GetXoaPifResultOutput) HostId() pulumi.StringOutput
The ID of the host that the PIF belongs to.
func (GetXoaPifResultOutput) Id ¶
func (o GetXoaPifResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetXoaPifResultOutput) Network ¶
func (o GetXoaPifResultOutput) Network() pulumi.StringOutput
The network the PIF is associated with.
func (GetXoaPifResultOutput) PoolId ¶
func (o GetXoaPifResultOutput) PoolId() pulumi.StringOutput
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 ¶
func (o GetXoaPifResultOutput) Uuid() pulumi.StringOutput
The uuid of the PIF.
func (GetXoaPifResultOutput) Vlan ¶
func (o GetXoaPifResultOutput) Vlan() pulumi.IntOutput
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 GetXoaPoolOutput ¶
func GetXoaPoolOutput(ctx *pulumi.Context, args GetXoaPoolOutputArgs, opts ...pulumi.InvokeOption) GetXoaPoolResultOutput
func (GetXoaPoolResultOutput) Cpus ¶
func (o GetXoaPoolResultOutput) Cpus() pulumi.StringMapOutput
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 ¶
func (o GetXoaPoolResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetXoaPoolResultOutput) Master ¶
func (o GetXoaPoolResultOutput) Master() pulumi.StringOutput
The id of the primary instance in the pool.
func (GetXoaPoolResultOutput) NameLabel ¶
func (o GetXoaPoolResultOutput) NameLabel() pulumi.StringOutput
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 ¶
func (GetXoaResourceSetOutputArgs) ElementType() reflect.Type
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 GetXoaResourceSetOutput ¶
func GetXoaResourceSetOutput(ctx *pulumi.Context, args GetXoaResourceSetOutputArgs, opts ...pulumi.InvokeOption) GetXoaResourceSetResultOutput
func (GetXoaResourceSetResultOutput) ElementType ¶
func (GetXoaResourceSetResultOutput) ElementType() reflect.Type
func (GetXoaResourceSetResultOutput) Id ¶
func (o GetXoaResourceSetResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetXoaResourceSetResultOutput) Name ¶
func (o GetXoaResourceSetResultOutput) Name() pulumi.StringOutput
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 ¶
func (GetXoaStorageRepositoryOutputArgs) ElementType() reflect.Type
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 GetXoaStorageRepositoryOutput ¶
func GetXoaStorageRepositoryOutput(ctx *pulumi.Context, args GetXoaStorageRepositoryOutputArgs, opts ...pulumi.InvokeOption) GetXoaStorageRepositoryResultOutput
func (GetXoaStorageRepositoryResultOutput) Container ¶
func (o GetXoaStorageRepositoryResultOutput) Container() pulumi.StringOutput
The storage container.
func (GetXoaStorageRepositoryResultOutput) ElementType ¶
func (GetXoaStorageRepositoryResultOutput) ElementType() reflect.Type
func (GetXoaStorageRepositoryResultOutput) Id ¶
func (o GetXoaStorageRepositoryResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetXoaStorageRepositoryResultOutput) NameLabel ¶
func (o GetXoaStorageRepositoryResultOutput) NameLabel() pulumi.StringOutput
The name of the storage repository to look up
func (GetXoaStorageRepositoryResultOutput) PhysicalUsage ¶
func (o GetXoaStorageRepositoryResultOutput) PhysicalUsage() pulumi.Float64Output
The physical storage size.
func (GetXoaStorageRepositoryResultOutput) PoolId ¶
func (o GetXoaStorageRepositoryResultOutput) PoolId() pulumi.StringPtrOutput
The Id of the pool the storage repository exists on.
func (GetXoaStorageRepositoryResultOutput) Size ¶
func (o GetXoaStorageRepositoryResultOutput) Size() pulumi.Float64Output
The storage size.
func (GetXoaStorageRepositoryResultOutput) SrType ¶
func (o GetXoaStorageRepositoryResultOutput) SrType() pulumi.StringOutput
The type of storage repository (lvm, udev, iso, user, etc).
func (GetXoaStorageRepositoryResultOutput) Tags ¶
func (o GetXoaStorageRepositoryResultOutput) Tags() pulumi.StringArrayOutput
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 ¶
func (o GetXoaStorageRepositoryResultOutput) Usage() pulumi.Float64Output
The current usage for this storage repository.
func (GetXoaStorageRepositoryResultOutput) Uuid ¶
func (o GetXoaStorageRepositoryResultOutput) Uuid() pulumi.StringOutput
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 GetXoaTemplateOutput ¶
func GetXoaTemplateOutput(ctx *pulumi.Context, args GetXoaTemplateOutputArgs, opts ...pulumi.InvokeOption) GetXoaTemplateResultOutput
func (GetXoaTemplateResultOutput) ElementType ¶
func (GetXoaTemplateResultOutput) ElementType() reflect.Type
func (GetXoaTemplateResultOutput) Id ¶
func (o GetXoaTemplateResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetXoaTemplateResultOutput) NameLabel ¶
func (o GetXoaTemplateResultOutput) NameLabel() pulumi.StringOutput
The name of the template to look up.
func (GetXoaTemplateResultOutput) PoolId ¶
func (o GetXoaTemplateResultOutput) PoolId() pulumi.StringPtrOutput
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 ¶
func (o GetXoaTemplateResultOutput) Uuid() pulumi.StringOutput
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 GetXoaUserOutput ¶
func GetXoaUserOutput(ctx *pulumi.Context, args GetXoaUserOutputArgs, opts ...pulumi.InvokeOption) GetXoaUserResultOutput
func (GetXoaUserResultOutput) ElementType ¶
func (GetXoaUserResultOutput) ElementType() reflect.Type
func (GetXoaUserResultOutput) Id ¶
func (o GetXoaUserResultOutput) Id() pulumi.StringOutput
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 ¶
func (o GetXoaUserResultOutput) Username() pulumi.StringOutput
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 GetXoaVdiOutput ¶
func GetXoaVdiOutput(ctx *pulumi.Context, args GetXoaVdiOutputArgs, opts ...pulumi.InvokeOption) GetXoaVdiResultOutput
func (GetXoaVdiResultOutput) ElementType ¶
func (GetXoaVdiResultOutput) ElementType() reflect.Type
func (GetXoaVdiResultOutput) Id ¶
func (o GetXoaVdiResultOutput) Id() pulumi.StringOutput
The ID of the VDI.
func (GetXoaVdiResultOutput) NameLabel ¶
func (o GetXoaVdiResultOutput) NameLabel() pulumi.StringPtrOutput
The name of the VDI to look up.
func (GetXoaVdiResultOutput) Parent ¶
func (o GetXoaVdiResultOutput) Parent() pulumi.StringOutput
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 ¶
func (o GetXoaVdiResultOutput) PoolId() pulumi.StringPtrOutput
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 ¶
func (o GetXoaVdiResultOutput) Tags() pulumi.StringArrayOutput
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 GetXoaVmsOutput ¶
func GetXoaVmsOutput(ctx *pulumi.Context, args GetXoaVmsOutputArgs, opts ...pulumi.InvokeOption) GetXoaVmsResultOutput
func (GetXoaVmsResultOutput) ElementType ¶
func (GetXoaVmsResultOutput) ElementType() reflect.Type
func (GetXoaVmsResultOutput) Host ¶
func (o GetXoaVmsResultOutput) Host() pulumi.StringPtrOutput
func (GetXoaVmsResultOutput) Id ¶
func (o GetXoaVmsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetXoaVmsResultOutput) PoolId ¶
func (o GetXoaVmsResultOutput) PoolId() pulumi.StringOutput
The ID of the pool the VM belongs to.
func (GetXoaVmsResultOutput) PowerState ¶
func (o GetXoaVmsResultOutput) PowerState() pulumi.StringPtrOutput
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 ¶
func (o GetXoaVmsResultOutput) Vms() GetXoaVmsVmArrayOutput
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 (o GetXoaVmsVmArrayOutput) Index(i pulumi.IntInput) GetXoaVmsVmOutput
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 (o GetXoaVmsVmDiskArrayOutput) Index(i pulumi.IntInput) GetXoaVmsVmDiskOutput
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 ¶
func (o GetXoaVmsVmDiskOutput) Attached() pulumi.BoolPtrOutput
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 ¶
func (o GetXoaVmsVmDiskOutput) NameLabel() pulumi.StringOutput
The name for the disk
func (GetXoaVmsVmDiskOutput) Position ¶
func (o GetXoaVmsVmDiskOutput) Position() pulumi.StringOutput
Indicates the order of the block device.
func (GetXoaVmsVmDiskOutput) Size ¶
func (o GetXoaVmsVmDiskOutput) Size() pulumi.IntOutput
The size in bytes for the disk.
func (GetXoaVmsVmDiskOutput) SrId ¶
func (o GetXoaVmsVmDiskOutput) SrId() pulumi.StringOutput
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 (o GetXoaVmsVmDiskOutput) VbdId() pulumi.StringOutput
func (GetXoaVmsVmDiskOutput) VdiId ¶
func (o GetXoaVmsVmDiskOutput) VdiId() pulumi.StringOutput
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) ElementType() reflect.Type
func (GetXoaVmsVmNetworkArrayOutput) Index ¶
func (o GetXoaVmsVmNetworkArrayOutput) Index(i pulumi.IntInput) GetXoaVmsVmNetworkOutput
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 ¶
func (o GetXoaVmsVmNetworkOutput) Attached() pulumi.BoolPtrOutput
Whether the device should be attached to the VM.
func (GetXoaVmsVmNetworkOutput) Device ¶
func (o GetXoaVmsVmNetworkOutput) Device() pulumi.StringOutput
func (GetXoaVmsVmNetworkOutput) ElementType ¶
func (GetXoaVmsVmNetworkOutput) ElementType() reflect.Type
func (GetXoaVmsVmNetworkOutput) ExpectedIpCidr ¶
func (o GetXoaVmsVmNetworkOutput) ExpectedIpCidr() pulumi.StringPtrOutput
func (GetXoaVmsVmNetworkOutput) Ipv4Addresses ¶
func (o GetXoaVmsVmNetworkOutput) Ipv4Addresses() pulumi.StringArrayOutput
func (GetXoaVmsVmNetworkOutput) Ipv6Addresses ¶
func (o GetXoaVmsVmNetworkOutput) Ipv6Addresses() pulumi.StringArrayOutput
func (GetXoaVmsVmNetworkOutput) MacAddress ¶
func (o GetXoaVmsVmNetworkOutput) MacAddress() pulumi.StringOutput
func (GetXoaVmsVmNetworkOutput) NetworkId ¶
func (o GetXoaVmsVmNetworkOutput) NetworkId() pulumi.StringOutput
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 ¶
func (o GetXoaVmsVmOutput) 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 (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 (o GetXoaVmsVmOutput) CoreOs() pulumi.BoolPtrOutput
func (GetXoaVmsVmOutput) CpuCap ¶
func (o GetXoaVmsVmOutput) CpuCap() pulumi.IntPtrOutput
func (GetXoaVmsVmOutput) CpuWeight ¶
func (o GetXoaVmsVmOutput) CpuWeight() pulumi.IntPtrOutput
func (GetXoaVmsVmOutput) Cpus ¶
func (o GetXoaVmsVmOutput) 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 (GetXoaVmsVmOutput) Disks ¶
func (o GetXoaVmsVmOutput) Disks() GetXoaVmsVmDiskArrayOutput
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 (o GetXoaVmsVmOutput) Host() pulumi.StringPtrOutput
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 (o GetXoaVmsVmOutput) Id() pulumi.StringOutput
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 ¶
func (o GetXoaVmsVmOutput) Networks() GetXoaVmsVmNetworkArrayOutput
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 ¶
func (o GetXoaVmsVmOutput) Tags() pulumi.StringArrayOutput
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 ¶
func (o GetXoaVmsVmOutput) Vga() pulumi.StringPtrOutput
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 ¶
func (o GetXoaVmsVmOutput) Xenstore() pulumi.StringMapOutput
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 ¶
func (LookupCloudConfigOutputArgs) ElementType() reflect.Type
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 LookupCloudConfigOutput ¶
func LookupCloudConfigOutput(ctx *pulumi.Context, args LookupCloudConfigOutputArgs, opts ...pulumi.InvokeOption) LookupCloudConfigResultOutput
func (LookupCloudConfigResultOutput) ElementType ¶
func (LookupCloudConfigResultOutput) ElementType() reflect.Type
func (LookupCloudConfigResultOutput) Id ¶
func (o LookupCloudConfigResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupCloudConfigResultOutput) Name ¶
func (o LookupCloudConfigResultOutput) Name() pulumi.StringOutput
The name of the cloud config you want to look up.
func (LookupCloudConfigResultOutput) Template ¶
func (o LookupCloudConfigResultOutput) Template() pulumi.StringOutput
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 LookupNetworkOutput ¶
func LookupNetworkOutput(ctx *pulumi.Context, args LookupNetworkOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkResultOutput
func (LookupNetworkResultOutput) Bridge ¶
func (o LookupNetworkResultOutput) Bridge() pulumi.StringOutput
The name of the bridge network interface.
func (LookupNetworkResultOutput) ElementType ¶
func (LookupNetworkResultOutput) ElementType() reflect.Type
func (LookupNetworkResultOutput) Id ¶
func (o LookupNetworkResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupNetworkResultOutput) NameLabel ¶
func (o LookupNetworkResultOutput) NameLabel() pulumi.StringOutput
The name of the network.
func (LookupNetworkResultOutput) PoolId ¶
func (o LookupNetworkResultOutput) PoolId() pulumi.StringPtrOutput
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 ¶
func (LookupResourceSetOutputArgs) ElementType() reflect.Type
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 LookupResourceSetOutput ¶
func LookupResourceSetOutput(ctx *pulumi.Context, args LookupResourceSetOutputArgs, opts ...pulumi.InvokeOption) LookupResourceSetResultOutput
func (LookupResourceSetResultOutput) ElementType ¶
func (LookupResourceSetResultOutput) ElementType() reflect.Type
func (LookupResourceSetResultOutput) Id ¶
func (o LookupResourceSetResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupResourceSetResultOutput) Name ¶
func (o LookupResourceSetResultOutput) Name() pulumi.StringOutput
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 LookupVdiOutput ¶
func LookupVdiOutput(ctx *pulumi.Context, args LookupVdiOutputArgs, opts ...pulumi.InvokeOption) LookupVdiResultOutput
func (LookupVdiResultOutput) ElementType ¶
func (LookupVdiResultOutput) ElementType() reflect.Type
func (LookupVdiResultOutput) Id ¶
func (o LookupVdiResultOutput) Id() pulumi.StringOutput
The ID of the VDI.
func (LookupVdiResultOutput) NameLabel ¶
func (o LookupVdiResultOutput) NameLabel() pulumi.StringPtrOutput
The name of the VDI to look up.
func (LookupVdiResultOutput) Parent ¶
func (o LookupVdiResultOutput) Parent() pulumi.StringOutput
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 ¶
func (o LookupVdiResultOutput) PoolId() pulumi.StringPtrOutput
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 ¶
func (o LookupVdiResultOutput) Tags() pulumi.StringArrayOutput
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 LookupXoaNetworkOutput ¶
func LookupXoaNetworkOutput(ctx *pulumi.Context, args LookupXoaNetworkOutputArgs, opts ...pulumi.InvokeOption) LookupXoaNetworkResultOutput
func (LookupXoaNetworkResultOutput) Bridge ¶
func (o LookupXoaNetworkResultOutput) Bridge() pulumi.StringOutput
The name of the bridge network interface.
func (LookupXoaNetworkResultOutput) ElementType ¶
func (LookupXoaNetworkResultOutput) ElementType() reflect.Type
func (LookupXoaNetworkResultOutput) Id ¶
func (o LookupXoaNetworkResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupXoaNetworkResultOutput) NameLabel ¶
func (o LookupXoaNetworkResultOutput) NameLabel() pulumi.StringOutput
The name of the network.
func (LookupXoaNetworkResultOutput) PoolId ¶
func (o LookupXoaNetworkResultOutput) PoolId() pulumi.StringPtrOutput
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) 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 (o NetworkArrayOutput) Index(i pulumi.IntInput) NetworkOutput
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 (o NetworkMapOutput) MapIndex(k pulumi.StringInput) NetworkOutput
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 ¶
func (o NetworkOutput) Mtu() pulumi.IntPtrOutput
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 ¶
func (o NetworkOutput) Nbd() pulumi.BoolPtrOutput
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 ¶
func (o NetworkOutput) Vlan() pulumi.IntPtrOutput
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) 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 ¶
func (o ProviderOutput) Token() pulumi.StringPtrOutput
Password for xoa api. Can be set via the XOA_TOKEN environment variable.
func (ProviderOutput) Url ¶
func (o ProviderOutput) Url() pulumi.StringOutput
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 (o ResourceSetArrayOutput) Index(i pulumi.IntInput) ResourceSetOutput
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 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) ElementType() reflect.Type
func (ResourceSetLimitArrayOutput) Index ¶
func (o ResourceSetLimitArrayOutput) Index(i pulumi.IntInput) ResourceSetLimitOutput
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 ¶
func (o ResourceSetLimitOutput) Quantity() pulumi.IntOutput
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 ¶
func (o ResourceSetLimitOutput) Type() pulumi.StringOutput
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 (o ResourceSetMapOutput) MapIndex(k pulumi.StringInput) ResourceSetOutput
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 ¶
func (o ResourceSetOutput) Limits() ResourceSetLimitArrayOutput
The limit applied to the resource set.
func (ResourceSetOutput) Name ¶
func (o ResourceSetOutput) Name() pulumi.StringOutput
The name of the resource set.
func (ResourceSetOutput) Objects ¶
func (o ResourceSetOutput) Objects() pulumi.StringArrayOutput
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 ¶
func (o ResourceSetOutput) Subjects() pulumi.StringArrayOutput
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) ToVdiOutput ¶
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 ¶
type VdiArray ¶
type VdiArray []VdiInput
func (VdiArray) ElementType ¶
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) ToVdiArrayOutput ¶
func (o VdiArrayOutput) ToVdiArrayOutput() VdiArrayOutput
func (VdiArrayOutput) ToVdiArrayOutputWithContext ¶
func (o VdiArrayOutput) ToVdiArrayOutputWithContext(ctx context.Context) VdiArrayOutput
type VdiMap ¶
func (VdiMap) ElementType ¶
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) 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 (VdiOutput) ToVdiOutputWithContext ¶
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 ¶
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) ToVmOutput ¶
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 ¶
type VmArray ¶
type VmArray []VmInput
func (VmArray) ElementType ¶
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) 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 ¶
func (o VmCdromOutput) Id() pulumi.StringOutput
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 (o VmCdromPtrOutput) Elem() VmCdromOutput
func (VmCdromPtrOutput) ElementType ¶
func (VmCdromPtrOutput) ElementType() reflect.Type
func (VmCdromPtrOutput) Id ¶
func (o VmCdromPtrOutput) Id() pulumi.StringPtrOutput
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 (o VmDiskArrayOutput) Index(i pulumi.IntInput) VmDiskOutput
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 ¶
func (o VmDiskOutput) Size() pulumi.Float64Output
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 (o VmDiskOutput) VbdId() pulumi.StringPtrOutput
func (VmDiskOutput) VdiId ¶
func (o VmDiskOutput) VdiId() pulumi.StringPtrOutput
type VmMap ¶
func (VmMap) ElementType ¶
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 (o VmNetworkArrayOutput) Index(i pulumi.IntInput) VmNetworkOutput
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 (o VmNetworkOutput) Device() pulumi.StringPtrOutput
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 ¶
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) 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) 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 ¶
func (o VmOutput) Tags() pulumi.StringArrayOutput
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 (VmOutput) ToVmOutputWithContext ¶
func (VmOutput) Vga ¶
func (o VmOutput) Vga() pulumi.StringPtrOutput
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 ¶
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) ElementType() reflect.Type
func (XoaBondedNetworkArrayOutput) Index ¶
func (o XoaBondedNetworkArrayOutput) Index(i pulumi.IntInput) XoaBondedNetworkOutput
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 (o XoaBondedNetworkMapOutput) MapIndex(k pulumi.StringInput) XoaBondedNetworkOutput
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 (o XoaBondedNetworkOutput) Automatic() pulumi.BoolPtrOutput
func (XoaBondedNetworkOutput) BondMode ¶
func (o XoaBondedNetworkOutput) BondMode() pulumi.StringPtrOutput
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 ¶
func (o XoaBondedNetworkOutput) Mtu() pulumi.IntPtrOutput
The MTU of the network. Defaults to `1500` if unspecified.
func (XoaBondedNetworkOutput) NameDescription ¶
func (o XoaBondedNetworkOutput) NameDescription() pulumi.StringPtrOutput
func (XoaBondedNetworkOutput) NameLabel ¶
func (o XoaBondedNetworkOutput) NameLabel() pulumi.StringOutput
The name label of the network.
func (XoaBondedNetworkOutput) PifIds ¶
func (o XoaBondedNetworkOutput) PifIds() pulumi.StringArrayOutput
The pifs (uuid) that should be used for this network.
func (XoaBondedNetworkOutput) PoolId ¶
func (o XoaBondedNetworkOutput) PoolId() pulumi.StringOutput
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 (o XoaNetworkArrayOutput) Index(i pulumi.IntInput) XoaNetworkOutput
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 (o XoaNetworkMapOutput) MapIndex(k pulumi.StringInput) XoaNetworkOutput
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 ¶
func (o XoaNetworkOutput) Mtu() pulumi.IntPtrOutput
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 ¶
func (o XoaNetworkOutput) Nbd() pulumi.BoolPtrOutput
Whether the network should use a network block device. Defaults to `false` if unspecified.
func (XoaNetworkOutput) PoolId ¶
func (o XoaNetworkOutput) PoolId() pulumi.StringOutput
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 ¶
func (o XoaNetworkOutput) Vlan() pulumi.IntPtrOutput
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
Source Files
¶
- acl.go
- bondedNetwork.go
- cloudConfig.go
- doc.go
- getCloudConfig.go
- getHost.go
- getHosts.go
- getNetwork.go
- getPif.go
- getPool.go
- getResourceSet.go
- getSr.go
- getTemplate.go
- getUser.go
- getVdi.go
- getVms.go
- getXoaCloudConfig.go
- getXoaHost.go
- getXoaHosts.go
- getXoaNetwork.go
- getXoaPif.go
- getXoaPool.go
- getXoaResourceSet.go
- getXoaStorageRepository.go
- getXoaTemplate.go
- getXoaUser.go
- getXoaVdi.go
- getXoaVms.go
- init.go
- network.go
- provider.go
- pulumiTypes.go
- resourceSet.go
- vdi.go
- vm.go
- xoaBondedNetwork.go
- xoaNetwork.go