Documentation
¶
Index ¶
- type GetHAGroupsResult
- type GetHAGroupsResultOutput
- func (GetHAGroupsResultOutput) ElementType() reflect.Type
- func (o GetHAGroupsResultOutput) GroupIds() pulumi.StringArrayOutput
- func (o GetHAGroupsResultOutput) Id() pulumi.StringOutput
- func (o GetHAGroupsResultOutput) ToGetHAGroupsResultOutput() GetHAGroupsResultOutput
- func (o GetHAGroupsResultOutput) ToGetHAGroupsResultOutputWithContext(ctx context.Context) GetHAGroupsResultOutput
- type GetHAResourcesArgs
- type GetHAResourcesOutputArgs
- type GetHAResourcesResult
- type GetHAResourcesResultOutput
- func (GetHAResourcesResultOutput) ElementType() reflect.Type
- func (o GetHAResourcesResultOutput) Id() pulumi.StringOutput
- func (o GetHAResourcesResultOutput) ResourceIds() pulumi.StringArrayOutput
- func (o GetHAResourcesResultOutput) ToGetHAResourcesResultOutput() GetHAResourcesResultOutput
- func (o GetHAResourcesResultOutput) ToGetHAResourcesResultOutputWithContext(ctx context.Context) GetHAResourcesResultOutput
- func (o GetHAResourcesResultOutput) Type() pulumi.StringPtrOutput
- type HAGroup
- type HAGroupArgs
- type HAGroupArray
- type HAGroupArrayInput
- type HAGroupArrayOutput
- type HAGroupInput
- type HAGroupMap
- type HAGroupMapInput
- type HAGroupMapOutput
- type HAGroupOutput
- func (o HAGroupOutput) Comment() pulumi.StringPtrOutput
- func (HAGroupOutput) ElementType() reflect.Type
- func (o HAGroupOutput) Group() pulumi.StringOutput
- func (o HAGroupOutput) NoFailback() pulumi.BoolOutput
- func (o HAGroupOutput) Nodes() pulumi.IntMapOutput
- func (o HAGroupOutput) Restricted() pulumi.BoolOutput
- func (o HAGroupOutput) ToHAGroupOutput() HAGroupOutput
- func (o HAGroupOutput) ToHAGroupOutputWithContext(ctx context.Context) HAGroupOutput
- type HAGroupState
- type HAResource
- type HAResourceArgs
- type HAResourceArray
- type HAResourceArrayInput
- type HAResourceArrayOutput
- func (HAResourceArrayOutput) ElementType() reflect.Type
- func (o HAResourceArrayOutput) Index(i pulumi.IntInput) HAResourceOutput
- func (o HAResourceArrayOutput) ToHAResourceArrayOutput() HAResourceArrayOutput
- func (o HAResourceArrayOutput) ToHAResourceArrayOutputWithContext(ctx context.Context) HAResourceArrayOutput
- type HAResourceInput
- type HAResourceMap
- type HAResourceMapInput
- type HAResourceMapOutput
- func (HAResourceMapOutput) ElementType() reflect.Type
- func (o HAResourceMapOutput) MapIndex(k pulumi.StringInput) HAResourceOutput
- func (o HAResourceMapOutput) ToHAResourceMapOutput() HAResourceMapOutput
- func (o HAResourceMapOutput) ToHAResourceMapOutputWithContext(ctx context.Context) HAResourceMapOutput
- type HAResourceOutput
- func (o HAResourceOutput) Comment() pulumi.StringPtrOutput
- func (HAResourceOutput) ElementType() reflect.Type
- func (o HAResourceOutput) Group() pulumi.StringPtrOutput
- func (o HAResourceOutput) MaxRelocate() pulumi.IntPtrOutput
- func (o HAResourceOutput) MaxRestart() pulumi.IntPtrOutput
- func (o HAResourceOutput) ResourceId() pulumi.StringOutput
- func (o HAResourceOutput) State() pulumi.StringOutput
- func (o HAResourceOutput) ToHAResourceOutput() HAResourceOutput
- func (o HAResourceOutput) ToHAResourceOutputWithContext(ctx context.Context) HAResourceOutput
- func (o HAResourceOutput) Type() pulumi.StringOutput
- type HAResourceState
- type LookupHAGroupArgs
- type LookupHAGroupOutputArgs
- type LookupHAGroupResult
- type LookupHAGroupResultOutput
- func (o LookupHAGroupResultOutput) Comment() pulumi.StringOutput
- func (LookupHAGroupResultOutput) ElementType() reflect.Type
- func (o LookupHAGroupResultOutput) Group() pulumi.StringOutput
- func (o LookupHAGroupResultOutput) Id() pulumi.StringOutput
- func (o LookupHAGroupResultOutput) NoFailback() pulumi.BoolOutput
- func (o LookupHAGroupResultOutput) Nodes() pulumi.IntMapOutput
- func (o LookupHAGroupResultOutput) Restricted() pulumi.BoolOutput
- func (o LookupHAGroupResultOutput) ToLookupHAGroupResultOutput() LookupHAGroupResultOutput
- func (o LookupHAGroupResultOutput) ToLookupHAGroupResultOutputWithContext(ctx context.Context) LookupHAGroupResultOutput
- type LookupHAResourceArgs
- type LookupHAResourceOutputArgs
- type LookupHAResourceResult
- type LookupHAResourceResultOutput
- func (o LookupHAResourceResultOutput) Comment() pulumi.StringOutput
- func (LookupHAResourceResultOutput) ElementType() reflect.Type
- func (o LookupHAResourceResultOutput) Group() pulumi.StringOutput
- func (o LookupHAResourceResultOutput) Id() pulumi.StringOutput
- func (o LookupHAResourceResultOutput) MaxRelocate() pulumi.IntOutput
- func (o LookupHAResourceResultOutput) MaxRestart() pulumi.IntOutput
- func (o LookupHAResourceResultOutput) ResourceId() pulumi.StringOutput
- func (o LookupHAResourceResultOutput) State() pulumi.StringOutput
- func (o LookupHAResourceResultOutput) ToLookupHAResourceResultOutput() LookupHAResourceResultOutput
- func (o LookupHAResourceResultOutput) ToLookupHAResourceResultOutputWithContext(ctx context.Context) LookupHAResourceResultOutput
- func (o LookupHAResourceResultOutput) Type() pulumi.StringOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetHAGroupsResult ¶
type GetHAGroupsResult struct { // The identifiers of the High Availability groups. GroupIds []string `pulumi:"groupIds"` // The unique identifier of this resource. Id string `pulumi:"id"` }
A collection of values returned by getHAGroups.
func GetHAGroups ¶
func GetHAGroups(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetHAGroupsResult, error)
Retrieves the list of High Availability groups.
## Example Usage
```go package main
import (
"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/HA" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := HA.GetHAGroups(ctx, map[string]interface{}{}, nil) if err != nil { return err } ctx.Export("dataProxmoxVirtualEnvironmentHagroups", example.GroupIds) return nil }) }
```
type GetHAGroupsResultOutput ¶
type GetHAGroupsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getHAGroups.
func GetHAGroupsOutput ¶
func GetHAGroupsOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetHAGroupsResultOutput
func (GetHAGroupsResultOutput) ElementType ¶
func (GetHAGroupsResultOutput) ElementType() reflect.Type
func (GetHAGroupsResultOutput) GroupIds ¶
func (o GetHAGroupsResultOutput) GroupIds() pulumi.StringArrayOutput
The identifiers of the High Availability groups.
func (GetHAGroupsResultOutput) Id ¶
func (o GetHAGroupsResultOutput) Id() pulumi.StringOutput
The unique identifier of this resource.
func (GetHAGroupsResultOutput) ToGetHAGroupsResultOutput ¶
func (o GetHAGroupsResultOutput) ToGetHAGroupsResultOutput() GetHAGroupsResultOutput
func (GetHAGroupsResultOutput) ToGetHAGroupsResultOutputWithContext ¶
func (o GetHAGroupsResultOutput) ToGetHAGroupsResultOutputWithContext(ctx context.Context) GetHAGroupsResultOutput
type GetHAResourcesArgs ¶
type GetHAResourcesArgs struct { // The type of High Availability resources to fetch (`vm` or `ct`). All resources will be fetched if this option is unset. Type *string `pulumi:"type"` }
A collection of arguments for invoking getHAResources.
type GetHAResourcesOutputArgs ¶
type GetHAResourcesOutputArgs struct { // The type of High Availability resources to fetch (`vm` or `ct`). All resources will be fetched if this option is unset. Type pulumi.StringPtrInput `pulumi:"type"` }
A collection of arguments for invoking getHAResources.
func (GetHAResourcesOutputArgs) ElementType ¶
func (GetHAResourcesOutputArgs) ElementType() reflect.Type
type GetHAResourcesResult ¶
type GetHAResourcesResult struct { // The unique identifier of this resource. Id string `pulumi:"id"` // The identifiers of the High Availability resources. ResourceIds []string `pulumi:"resourceIds"` // The type of High Availability resources to fetch (`vm` or `ct`). All resources will be fetched if this option is unset. Type *string `pulumi:"type"` }
A collection of values returned by getHAResources.
func GetHAResources ¶
func GetHAResources(ctx *pulumi.Context, args *GetHAResourcesArgs, opts ...pulumi.InvokeOption) (*GetHAResourcesResult, error)
Retrieves the list of High Availability resources.
## Example Usage
```go package main
import (
"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/HA" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
) func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleAll, err := HA.GetHAResources(ctx, &ha.GetHAResourcesArgs{ }, nil); if err != nil { return err } exampleVm, err := HA.GetHAResources(ctx, &ha.GetHAResourcesArgs{ Type: pulumi.StringRef("vm"), }, nil); if err != nil { return err } ctx.Export("dataProxmoxVirtualEnvironmentHaresources", interface{}Map{ "all": exampleAll.ResourceIds, "vms": exampleVm.ResourceIds, }) return nil }) } ```
type GetHAResourcesResultOutput ¶
type GetHAResourcesResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getHAResources.
func GetHAResourcesOutput ¶
func GetHAResourcesOutput(ctx *pulumi.Context, args GetHAResourcesOutputArgs, opts ...pulumi.InvokeOption) GetHAResourcesResultOutput
func (GetHAResourcesResultOutput) ElementType ¶
func (GetHAResourcesResultOutput) ElementType() reflect.Type
func (GetHAResourcesResultOutput) Id ¶
func (o GetHAResourcesResultOutput) Id() pulumi.StringOutput
The unique identifier of this resource.
func (GetHAResourcesResultOutput) ResourceIds ¶
func (o GetHAResourcesResultOutput) ResourceIds() pulumi.StringArrayOutput
The identifiers of the High Availability resources.
func (GetHAResourcesResultOutput) ToGetHAResourcesResultOutput ¶
func (o GetHAResourcesResultOutput) ToGetHAResourcesResultOutput() GetHAResourcesResultOutput
func (GetHAResourcesResultOutput) ToGetHAResourcesResultOutputWithContext ¶
func (o GetHAResourcesResultOutput) ToGetHAResourcesResultOutputWithContext(ctx context.Context) GetHAResourcesResultOutput
func (GetHAResourcesResultOutput) Type ¶
func (o GetHAResourcesResultOutput) Type() pulumi.StringPtrOutput
The type of High Availability resources to fetch (`vm` or `ct`). All resources will be fetched if this option is unset.
type HAGroup ¶
type HAGroup struct { pulumi.CustomResourceState // The comment associated with this group Comment pulumi.StringPtrOutput `pulumi:"comment"` // The identifier of the High Availability group to manage. Group pulumi.StringOutput `pulumi:"group"` // A flag that indicates that failing back to a higher priority node is disabled for this HA group. Defaults to `false`. NoFailback pulumi.BoolOutput `pulumi:"noFailback"` // The member nodes for this group. They are provided as a map, where the keys are the node names and the values represent their priority: integers for known priorities or `null` for unset priorities. Nodes pulumi.IntMapOutput `pulumi:"nodes"` // A flag that indicates that other nodes may not be used to run resources associated to this HA group. Defaults to `false`. Restricted pulumi.BoolOutput `pulumi:"restricted"` }
Manages a High Availability group in a Proxmox VE cluster.
## Example Usage
```go package main
import (
"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/HA" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := HA.NewHAGroup(ctx, "example", &HA.HAGroupArgs{ Group: pulumi.String("example"), Comment: pulumi.String("This is a comment."), Nodes: pulumi.IntMap{ "node1": nil, "node2": pulumi.Int(2), "node3": pulumi.Int(1), }, Restricted: pulumi.Bool(true), NoFailback: pulumi.Bool(false), }) if err != nil { return err } return nil }) }
```
## Import
#!/usr/bin/env sh
HA groups can be imported using their name, e.g.:
```sh $ pulumi import proxmoxve:HA/hAGroup:HAGroup example example ```
func GetHAGroup ¶
func GetHAGroup(ctx *pulumi.Context, name string, id pulumi.IDInput, state *HAGroupState, opts ...pulumi.ResourceOption) (*HAGroup, error)
GetHAGroup gets an existing HAGroup 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 NewHAGroup ¶
func NewHAGroup(ctx *pulumi.Context, name string, args *HAGroupArgs, opts ...pulumi.ResourceOption) (*HAGroup, error)
NewHAGroup registers a new resource with the given unique name, arguments, and options.
func (*HAGroup) ElementType ¶
func (*HAGroup) ToHAGroupOutput ¶
func (i *HAGroup) ToHAGroupOutput() HAGroupOutput
func (*HAGroup) ToHAGroupOutputWithContext ¶
func (i *HAGroup) ToHAGroupOutputWithContext(ctx context.Context) HAGroupOutput
type HAGroupArgs ¶
type HAGroupArgs struct { // The comment associated with this group Comment pulumi.StringPtrInput // The identifier of the High Availability group to manage. Group pulumi.StringInput // A flag that indicates that failing back to a higher priority node is disabled for this HA group. Defaults to `false`. NoFailback pulumi.BoolPtrInput // The member nodes for this group. They are provided as a map, where the keys are the node names and the values represent their priority: integers for known priorities or `null` for unset priorities. Nodes pulumi.IntMapInput // A flag that indicates that other nodes may not be used to run resources associated to this HA group. Defaults to `false`. Restricted pulumi.BoolPtrInput }
The set of arguments for constructing a HAGroup resource.
func (HAGroupArgs) ElementType ¶
func (HAGroupArgs) ElementType() reflect.Type
type HAGroupArray ¶
type HAGroupArray []HAGroupInput
func (HAGroupArray) ElementType ¶
func (HAGroupArray) ElementType() reflect.Type
func (HAGroupArray) ToHAGroupArrayOutput ¶
func (i HAGroupArray) ToHAGroupArrayOutput() HAGroupArrayOutput
func (HAGroupArray) ToHAGroupArrayOutputWithContext ¶
func (i HAGroupArray) ToHAGroupArrayOutputWithContext(ctx context.Context) HAGroupArrayOutput
type HAGroupArrayInput ¶
type HAGroupArrayInput interface { pulumi.Input ToHAGroupArrayOutput() HAGroupArrayOutput ToHAGroupArrayOutputWithContext(context.Context) HAGroupArrayOutput }
HAGroupArrayInput is an input type that accepts HAGroupArray and HAGroupArrayOutput values. You can construct a concrete instance of `HAGroupArrayInput` via:
HAGroupArray{ HAGroupArgs{...} }
type HAGroupArrayOutput ¶
type HAGroupArrayOutput struct{ *pulumi.OutputState }
func (HAGroupArrayOutput) ElementType ¶
func (HAGroupArrayOutput) ElementType() reflect.Type
func (HAGroupArrayOutput) Index ¶
func (o HAGroupArrayOutput) Index(i pulumi.IntInput) HAGroupOutput
func (HAGroupArrayOutput) ToHAGroupArrayOutput ¶
func (o HAGroupArrayOutput) ToHAGroupArrayOutput() HAGroupArrayOutput
func (HAGroupArrayOutput) ToHAGroupArrayOutputWithContext ¶
func (o HAGroupArrayOutput) ToHAGroupArrayOutputWithContext(ctx context.Context) HAGroupArrayOutput
type HAGroupInput ¶
type HAGroupInput interface { pulumi.Input ToHAGroupOutput() HAGroupOutput ToHAGroupOutputWithContext(ctx context.Context) HAGroupOutput }
type HAGroupMap ¶
type HAGroupMap map[string]HAGroupInput
func (HAGroupMap) ElementType ¶
func (HAGroupMap) ElementType() reflect.Type
func (HAGroupMap) ToHAGroupMapOutput ¶
func (i HAGroupMap) ToHAGroupMapOutput() HAGroupMapOutput
func (HAGroupMap) ToHAGroupMapOutputWithContext ¶
func (i HAGroupMap) ToHAGroupMapOutputWithContext(ctx context.Context) HAGroupMapOutput
type HAGroupMapInput ¶
type HAGroupMapInput interface { pulumi.Input ToHAGroupMapOutput() HAGroupMapOutput ToHAGroupMapOutputWithContext(context.Context) HAGroupMapOutput }
HAGroupMapInput is an input type that accepts HAGroupMap and HAGroupMapOutput values. You can construct a concrete instance of `HAGroupMapInput` via:
HAGroupMap{ "key": HAGroupArgs{...} }
type HAGroupMapOutput ¶
type HAGroupMapOutput struct{ *pulumi.OutputState }
func (HAGroupMapOutput) ElementType ¶
func (HAGroupMapOutput) ElementType() reflect.Type
func (HAGroupMapOutput) MapIndex ¶
func (o HAGroupMapOutput) MapIndex(k pulumi.StringInput) HAGroupOutput
func (HAGroupMapOutput) ToHAGroupMapOutput ¶
func (o HAGroupMapOutput) ToHAGroupMapOutput() HAGroupMapOutput
func (HAGroupMapOutput) ToHAGroupMapOutputWithContext ¶
func (o HAGroupMapOutput) ToHAGroupMapOutputWithContext(ctx context.Context) HAGroupMapOutput
type HAGroupOutput ¶
type HAGroupOutput struct{ *pulumi.OutputState }
func (HAGroupOutput) Comment ¶
func (o HAGroupOutput) Comment() pulumi.StringPtrOutput
The comment associated with this group
func (HAGroupOutput) ElementType ¶
func (HAGroupOutput) ElementType() reflect.Type
func (HAGroupOutput) Group ¶
func (o HAGroupOutput) Group() pulumi.StringOutput
The identifier of the High Availability group to manage.
func (HAGroupOutput) NoFailback ¶
func (o HAGroupOutput) NoFailback() pulumi.BoolOutput
A flag that indicates that failing back to a higher priority node is disabled for this HA group. Defaults to `false`.
func (HAGroupOutput) Nodes ¶
func (o HAGroupOutput) Nodes() pulumi.IntMapOutput
The member nodes for this group. They are provided as a map, where the keys are the node names and the values represent their priority: integers for known priorities or `null` for unset priorities.
func (HAGroupOutput) Restricted ¶
func (o HAGroupOutput) Restricted() pulumi.BoolOutput
A flag that indicates that other nodes may not be used to run resources associated to this HA group. Defaults to `false`.
func (HAGroupOutput) ToHAGroupOutput ¶
func (o HAGroupOutput) ToHAGroupOutput() HAGroupOutput
func (HAGroupOutput) ToHAGroupOutputWithContext ¶
func (o HAGroupOutput) ToHAGroupOutputWithContext(ctx context.Context) HAGroupOutput
type HAGroupState ¶
type HAGroupState struct { // The comment associated with this group Comment pulumi.StringPtrInput // The identifier of the High Availability group to manage. Group pulumi.StringPtrInput // A flag that indicates that failing back to a higher priority node is disabled for this HA group. Defaults to `false`. NoFailback pulumi.BoolPtrInput // The member nodes for this group. They are provided as a map, where the keys are the node names and the values represent their priority: integers for known priorities or `null` for unset priorities. Nodes pulumi.IntMapInput // A flag that indicates that other nodes may not be used to run resources associated to this HA group. Defaults to `false`. Restricted pulumi.BoolPtrInput }
func (HAGroupState) ElementType ¶
func (HAGroupState) ElementType() reflect.Type
type HAResource ¶
type HAResource struct { pulumi.CustomResourceState // The comment associated with this resource. Comment pulumi.StringPtrOutput `pulumi:"comment"` // The identifier of the High Availability group this resource is a member of. Group pulumi.StringPtrOutput `pulumi:"group"` // The maximal number of relocation attempts. MaxRelocate pulumi.IntPtrOutput `pulumi:"maxRelocate"` // The maximal number of restart attempts. MaxRestart pulumi.IntPtrOutput `pulumi:"maxRestart"` // The Proxmox HA resource identifier ResourceId pulumi.StringOutput `pulumi:"resourceId"` // The desired state of the resource. State pulumi.StringOutput `pulumi:"state"` // The type of HA resources to create. If unset, it will be deduced from the `resourceId`. Type pulumi.StringOutput `pulumi:"type"` }
Manages Proxmox HA resources.
## Example Usage
```go package main
import (
"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/HA" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := HA.NewHAResource(ctx, "example", &HA.HAResourceArgs{ ResourceId: pulumi.String("vm:123"), State: pulumi.String("started"), Group: pulumi.String("example"), Comment: pulumi.String("Managed by Pulumi"), }, pulumi.DependsOn([]pulumi.Resource{ proxmox_virtual_environment_hagroup.Example, })) if err != nil { return err } return nil }) }
```
## Import
#!/usr/bin/env sh
HA resources can be imported using their identifiers, e.g.:
```sh $ pulumi import proxmoxve:HA/hAResource:HAResource example vm:123 ```
func GetHAResource ¶
func GetHAResource(ctx *pulumi.Context, name string, id pulumi.IDInput, state *HAResourceState, opts ...pulumi.ResourceOption) (*HAResource, error)
GetHAResource gets an existing HAResource 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 NewHAResource ¶
func NewHAResource(ctx *pulumi.Context, name string, args *HAResourceArgs, opts ...pulumi.ResourceOption) (*HAResource, error)
NewHAResource registers a new resource with the given unique name, arguments, and options.
func (*HAResource) ElementType ¶
func (*HAResource) ElementType() reflect.Type
func (*HAResource) ToHAResourceOutput ¶
func (i *HAResource) ToHAResourceOutput() HAResourceOutput
func (*HAResource) ToHAResourceOutputWithContext ¶
func (i *HAResource) ToHAResourceOutputWithContext(ctx context.Context) HAResourceOutput
type HAResourceArgs ¶
type HAResourceArgs struct { // The comment associated with this resource. Comment pulumi.StringPtrInput // The identifier of the High Availability group this resource is a member of. Group pulumi.StringPtrInput // The maximal number of relocation attempts. MaxRelocate pulumi.IntPtrInput // The maximal number of restart attempts. MaxRestart pulumi.IntPtrInput // The Proxmox HA resource identifier ResourceId pulumi.StringInput // The desired state of the resource. State pulumi.StringPtrInput // The type of HA resources to create. If unset, it will be deduced from the `resourceId`. Type pulumi.StringPtrInput }
The set of arguments for constructing a HAResource resource.
func (HAResourceArgs) ElementType ¶
func (HAResourceArgs) ElementType() reflect.Type
type HAResourceArray ¶
type HAResourceArray []HAResourceInput
func (HAResourceArray) ElementType ¶
func (HAResourceArray) ElementType() reflect.Type
func (HAResourceArray) ToHAResourceArrayOutput ¶
func (i HAResourceArray) ToHAResourceArrayOutput() HAResourceArrayOutput
func (HAResourceArray) ToHAResourceArrayOutputWithContext ¶
func (i HAResourceArray) ToHAResourceArrayOutputWithContext(ctx context.Context) HAResourceArrayOutput
type HAResourceArrayInput ¶
type HAResourceArrayInput interface { pulumi.Input ToHAResourceArrayOutput() HAResourceArrayOutput ToHAResourceArrayOutputWithContext(context.Context) HAResourceArrayOutput }
HAResourceArrayInput is an input type that accepts HAResourceArray and HAResourceArrayOutput values. You can construct a concrete instance of `HAResourceArrayInput` via:
HAResourceArray{ HAResourceArgs{...} }
type HAResourceArrayOutput ¶
type HAResourceArrayOutput struct{ *pulumi.OutputState }
func (HAResourceArrayOutput) ElementType ¶
func (HAResourceArrayOutput) ElementType() reflect.Type
func (HAResourceArrayOutput) Index ¶
func (o HAResourceArrayOutput) Index(i pulumi.IntInput) HAResourceOutput
func (HAResourceArrayOutput) ToHAResourceArrayOutput ¶
func (o HAResourceArrayOutput) ToHAResourceArrayOutput() HAResourceArrayOutput
func (HAResourceArrayOutput) ToHAResourceArrayOutputWithContext ¶
func (o HAResourceArrayOutput) ToHAResourceArrayOutputWithContext(ctx context.Context) HAResourceArrayOutput
type HAResourceInput ¶
type HAResourceInput interface { pulumi.Input ToHAResourceOutput() HAResourceOutput ToHAResourceOutputWithContext(ctx context.Context) HAResourceOutput }
type HAResourceMap ¶
type HAResourceMap map[string]HAResourceInput
func (HAResourceMap) ElementType ¶
func (HAResourceMap) ElementType() reflect.Type
func (HAResourceMap) ToHAResourceMapOutput ¶
func (i HAResourceMap) ToHAResourceMapOutput() HAResourceMapOutput
func (HAResourceMap) ToHAResourceMapOutputWithContext ¶
func (i HAResourceMap) ToHAResourceMapOutputWithContext(ctx context.Context) HAResourceMapOutput
type HAResourceMapInput ¶
type HAResourceMapInput interface { pulumi.Input ToHAResourceMapOutput() HAResourceMapOutput ToHAResourceMapOutputWithContext(context.Context) HAResourceMapOutput }
HAResourceMapInput is an input type that accepts HAResourceMap and HAResourceMapOutput values. You can construct a concrete instance of `HAResourceMapInput` via:
HAResourceMap{ "key": HAResourceArgs{...} }
type HAResourceMapOutput ¶
type HAResourceMapOutput struct{ *pulumi.OutputState }
func (HAResourceMapOutput) ElementType ¶
func (HAResourceMapOutput) ElementType() reflect.Type
func (HAResourceMapOutput) MapIndex ¶
func (o HAResourceMapOutput) MapIndex(k pulumi.StringInput) HAResourceOutput
func (HAResourceMapOutput) ToHAResourceMapOutput ¶
func (o HAResourceMapOutput) ToHAResourceMapOutput() HAResourceMapOutput
func (HAResourceMapOutput) ToHAResourceMapOutputWithContext ¶
func (o HAResourceMapOutput) ToHAResourceMapOutputWithContext(ctx context.Context) HAResourceMapOutput
type HAResourceOutput ¶
type HAResourceOutput struct{ *pulumi.OutputState }
func (HAResourceOutput) Comment ¶
func (o HAResourceOutput) Comment() pulumi.StringPtrOutput
The comment associated with this resource.
func (HAResourceOutput) ElementType ¶
func (HAResourceOutput) ElementType() reflect.Type
func (HAResourceOutput) Group ¶
func (o HAResourceOutput) Group() pulumi.StringPtrOutput
The identifier of the High Availability group this resource is a member of.
func (HAResourceOutput) MaxRelocate ¶
func (o HAResourceOutput) MaxRelocate() pulumi.IntPtrOutput
The maximal number of relocation attempts.
func (HAResourceOutput) MaxRestart ¶
func (o HAResourceOutput) MaxRestart() pulumi.IntPtrOutput
The maximal number of restart attempts.
func (HAResourceOutput) ResourceId ¶
func (o HAResourceOutput) ResourceId() pulumi.StringOutput
The Proxmox HA resource identifier
func (HAResourceOutput) State ¶
func (o HAResourceOutput) State() pulumi.StringOutput
The desired state of the resource.
func (HAResourceOutput) ToHAResourceOutput ¶
func (o HAResourceOutput) ToHAResourceOutput() HAResourceOutput
func (HAResourceOutput) ToHAResourceOutputWithContext ¶
func (o HAResourceOutput) ToHAResourceOutputWithContext(ctx context.Context) HAResourceOutput
func (HAResourceOutput) Type ¶
func (o HAResourceOutput) Type() pulumi.StringOutput
The type of HA resources to create. If unset, it will be deduced from the `resourceId`.
type HAResourceState ¶
type HAResourceState struct { // The comment associated with this resource. Comment pulumi.StringPtrInput // The identifier of the High Availability group this resource is a member of. Group pulumi.StringPtrInput // The maximal number of relocation attempts. MaxRelocate pulumi.IntPtrInput // The maximal number of restart attempts. MaxRestart pulumi.IntPtrInput // The Proxmox HA resource identifier ResourceId pulumi.StringPtrInput // The desired state of the resource. State pulumi.StringPtrInput // The type of HA resources to create. If unset, it will be deduced from the `resourceId`. Type pulumi.StringPtrInput }
func (HAResourceState) ElementType ¶
func (HAResourceState) ElementType() reflect.Type
type LookupHAGroupArgs ¶
type LookupHAGroupArgs struct { // The identifier of the High Availability group to read. Group string `pulumi:"group"` }
A collection of arguments for invoking getHAGroup.
type LookupHAGroupOutputArgs ¶
type LookupHAGroupOutputArgs struct { // The identifier of the High Availability group to read. Group pulumi.StringInput `pulumi:"group"` }
A collection of arguments for invoking getHAGroup.
func (LookupHAGroupOutputArgs) ElementType ¶
func (LookupHAGroupOutputArgs) ElementType() reflect.Type
type LookupHAGroupResult ¶
type LookupHAGroupResult struct { // The comment associated with this group Comment string `pulumi:"comment"` // The identifier of the High Availability group to read. Group string `pulumi:"group"` // The unique identifier of this resource. Id string `pulumi:"id"` // A flag that indicates that failing back to a higher priority node is disabled for this HA group. NoFailback bool `pulumi:"noFailback"` // The member nodes for this group. They are provided as a map, where the keys are the node names and the values represent their priority: integers for known priorities or `null` for unset priorities. Nodes map[string]int `pulumi:"nodes"` // A flag that indicates that other nodes may not be used to run resources associated to this HA group. Restricted bool `pulumi:"restricted"` }
A collection of values returned by getHAGroup.
func LookupHAGroup ¶
func LookupHAGroup(ctx *pulumi.Context, args *LookupHAGroupArgs, opts ...pulumi.InvokeOption) (*LookupHAGroupResult, error)
Retrieves information about a specific High Availability group.
## Example Usage
```go package main
import (
"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/HA" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { all, err := HA.GetHAGroups(ctx, map[string]interface{}{}, nil) if err != nil { return err } example := "TODO: For expression" ctx.Export("proxmoxVirtualEnvironmentHagroupsFull", example) return nil }) }
```
type LookupHAGroupResultOutput ¶
type LookupHAGroupResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getHAGroup.
func LookupHAGroupOutput ¶
func LookupHAGroupOutput(ctx *pulumi.Context, args LookupHAGroupOutputArgs, opts ...pulumi.InvokeOption) LookupHAGroupResultOutput
func (LookupHAGroupResultOutput) Comment ¶
func (o LookupHAGroupResultOutput) Comment() pulumi.StringOutput
The comment associated with this group
func (LookupHAGroupResultOutput) ElementType ¶
func (LookupHAGroupResultOutput) ElementType() reflect.Type
func (LookupHAGroupResultOutput) Group ¶
func (o LookupHAGroupResultOutput) Group() pulumi.StringOutput
The identifier of the High Availability group to read.
func (LookupHAGroupResultOutput) Id ¶
func (o LookupHAGroupResultOutput) Id() pulumi.StringOutput
The unique identifier of this resource.
func (LookupHAGroupResultOutput) NoFailback ¶
func (o LookupHAGroupResultOutput) NoFailback() pulumi.BoolOutput
A flag that indicates that failing back to a higher priority node is disabled for this HA group.
func (LookupHAGroupResultOutput) Nodes ¶
func (o LookupHAGroupResultOutput) Nodes() pulumi.IntMapOutput
The member nodes for this group. They are provided as a map, where the keys are the node names and the values represent their priority: integers for known priorities or `null` for unset priorities.
func (LookupHAGroupResultOutput) Restricted ¶
func (o LookupHAGroupResultOutput) Restricted() pulumi.BoolOutput
A flag that indicates that other nodes may not be used to run resources associated to this HA group.
func (LookupHAGroupResultOutput) ToLookupHAGroupResultOutput ¶
func (o LookupHAGroupResultOutput) ToLookupHAGroupResultOutput() LookupHAGroupResultOutput
func (LookupHAGroupResultOutput) ToLookupHAGroupResultOutputWithContext ¶
func (o LookupHAGroupResultOutput) ToLookupHAGroupResultOutputWithContext(ctx context.Context) LookupHAGroupResultOutput
type LookupHAResourceArgs ¶
type LookupHAResourceArgs struct { // The identifier of the Proxmox HA resource to read. ResourceId string `pulumi:"resourceId"` }
A collection of arguments for invoking getHAResource.
type LookupHAResourceOutputArgs ¶
type LookupHAResourceOutputArgs struct { // The identifier of the Proxmox HA resource to read. ResourceId pulumi.StringInput `pulumi:"resourceId"` }
A collection of arguments for invoking getHAResource.
func (LookupHAResourceOutputArgs) ElementType ¶
func (LookupHAResourceOutputArgs) ElementType() reflect.Type
type LookupHAResourceResult ¶
type LookupHAResourceResult struct { // The comment associated with this resource. Comment string `pulumi:"comment"` // The identifier of the High Availability group this resource is a member of. Group string `pulumi:"group"` // The unique identifier of this resource. Id string `pulumi:"id"` // The maximal number of relocation attempts. MaxRelocate int `pulumi:"maxRelocate"` // The maximal number of restart attempts. MaxRestart int `pulumi:"maxRestart"` // The identifier of the Proxmox HA resource to read. ResourceId string `pulumi:"resourceId"` // The desired state of the resource. State string `pulumi:"state"` // The type of High Availability resource (`vm` or `ct`). Type string `pulumi:"type"` }
A collection of values returned by getHAResource.
func LookupHAResource ¶
func LookupHAResource(ctx *pulumi.Context, args *LookupHAResourceArgs, opts ...pulumi.InvokeOption) (*LookupHAResourceResult, error)
Retrieves the list of High Availability resources.
## Example Usage
```go package main
import (
"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/HA" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { all, err := HA.GetHAResources(ctx, &ha.GetHAResourcesArgs{}, nil) if err != nil { return err } example := "TODO: For expression" ctx.Export("proxmoxVirtualEnvironmentHaresourcesFull", example) return nil }) }
```
type LookupHAResourceResultOutput ¶
type LookupHAResourceResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getHAResource.
func LookupHAResourceOutput ¶
func LookupHAResourceOutput(ctx *pulumi.Context, args LookupHAResourceOutputArgs, opts ...pulumi.InvokeOption) LookupHAResourceResultOutput
func (LookupHAResourceResultOutput) Comment ¶
func (o LookupHAResourceResultOutput) Comment() pulumi.StringOutput
The comment associated with this resource.
func (LookupHAResourceResultOutput) ElementType ¶
func (LookupHAResourceResultOutput) ElementType() reflect.Type
func (LookupHAResourceResultOutput) Group ¶
func (o LookupHAResourceResultOutput) Group() pulumi.StringOutput
The identifier of the High Availability group this resource is a member of.
func (LookupHAResourceResultOutput) Id ¶
func (o LookupHAResourceResultOutput) Id() pulumi.StringOutput
The unique identifier of this resource.
func (LookupHAResourceResultOutput) MaxRelocate ¶
func (o LookupHAResourceResultOutput) MaxRelocate() pulumi.IntOutput
The maximal number of relocation attempts.
func (LookupHAResourceResultOutput) MaxRestart ¶
func (o LookupHAResourceResultOutput) MaxRestart() pulumi.IntOutput
The maximal number of restart attempts.
func (LookupHAResourceResultOutput) ResourceId ¶
func (o LookupHAResourceResultOutput) ResourceId() pulumi.StringOutput
The identifier of the Proxmox HA resource to read.
func (LookupHAResourceResultOutput) State ¶
func (o LookupHAResourceResultOutput) State() pulumi.StringOutput
The desired state of the resource.
func (LookupHAResourceResultOutput) ToLookupHAResourceResultOutput ¶
func (o LookupHAResourceResultOutput) ToLookupHAResourceResultOutput() LookupHAResourceResultOutput
func (LookupHAResourceResultOutput) ToLookupHAResourceResultOutputWithContext ¶
func (o LookupHAResourceResultOutput) ToLookupHAResourceResultOutputWithContext(ctx context.Context) LookupHAResourceResultOutput
func (LookupHAResourceResultOutput) Type ¶
func (o LookupHAResourceResultOutput) Type() pulumi.StringOutput
The type of High Availability resource (`vm` or `ct`).