Proxmox Virtual Environment (Proxmox VE)

v2.0.0 published on Friday, Jul 15, 2022 by Daniel Muehlbachler-Pietrzykowski

Hosts

Create Hosts Resource

new Hosts(name: string, args: HostsArgs, opts?: CustomResourceOptions);
@overload
def Hosts(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          entries: Optional[Sequence[HostsEntryArgs]] = None,
          node_name: Optional[str] = None)
@overload
def Hosts(resource_name: str,
          args: HostsArgs,
          opts: Optional[ResourceOptions] = None)
func NewHosts(ctx *Context, name string, args HostsArgs, opts ...ResourceOption) (*Hosts, error)
public Hosts(string name, HostsArgs args, CustomResourceOptions? opts = null)
public Hosts(String name, HostsArgs args)
public Hosts(String name, HostsArgs args, CustomResourceOptions options)
type: proxmoxve:Hosts
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args HostsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args HostsArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args HostsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args HostsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args HostsArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Hosts Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Hosts resource accepts the following input properties:

Entries []HostsEntryArgs

The host entries

NodeName string

The node name

entries List<HostsEntryArgs>

The host entries

nodeName String

The node name

entries HostsEntryArgs[]

The host entries

nodeName string

The node name

entries Sequence[HostsEntryArgs]

The host entries

node_name str

The node name

entries List<Property Map>

The host entries

nodeName String

The node name

Outputs

All input properties are implicitly available as output properties. Additionally, the Hosts resource produces the following output properties:

Addresses List<string>

The addresses

Digest string

The SHA1 digest

Hostnames List<ImmutableArray<string>>

The hostnames

Id string

The provider-assigned unique ID for this managed resource.

Addresses []string

The addresses

Digest string

The SHA1 digest

Hostnames [][]string

The hostnames

Id string

The provider-assigned unique ID for this managed resource.

addresses List<String>

The addresses

digest String

The SHA1 digest

hostnames List<List<String>>

The hostnames

id String

The provider-assigned unique ID for this managed resource.

addresses string[]

The addresses

digest string

The SHA1 digest

hostnames string[][]

The hostnames

id string

The provider-assigned unique ID for this managed resource.

addresses Sequence[str]

The addresses

digest str

The SHA1 digest

hostnames Sequence[Sequence[str]]

The hostnames

id str

The provider-assigned unique ID for this managed resource.

addresses List<String>

The addresses

digest String

The SHA1 digest

hostnames List<List<String>>

The hostnames

id String

The provider-assigned unique ID for this managed resource.

Look up Existing Hosts Resource

Get an existing Hosts resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: HostsState, opts?: CustomResourceOptions): Hosts
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        addresses: Optional[Sequence[str]] = None,
        digest: Optional[str] = None,
        entries: Optional[Sequence[HostsEntryArgs]] = None,
        hostnames: Optional[Sequence[Sequence[str]]] = None,
        node_name: Optional[str] = None) -> Hosts
func GetHosts(ctx *Context, name string, id IDInput, state *HostsState, opts ...ResourceOption) (*Hosts, error)
public static Hosts Get(string name, Input<string> id, HostsState? state, CustomResourceOptions? opts = null)
public static Hosts get(String name, Output<String> id, HostsState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Addresses List<string>

The addresses

Digest string

The SHA1 digest

Entries List<Pulumi.ProxmoxVE.Inputs.HostsEntryArgs>

The host entries

Hostnames List<ImmutableArray<string>>

The hostnames

NodeName string

The node name

Addresses []string

The addresses

Digest string

The SHA1 digest

Entries []HostsEntryArgs

The host entries

Hostnames [][]string

The hostnames

NodeName string

The node name

addresses List<String>

The addresses

digest String

The SHA1 digest

entries List<HostsEntryArgs>

The host entries

hostnames List<List<String>>

The hostnames

nodeName String

The node name

addresses string[]

The addresses

digest string

The SHA1 digest

entries HostsEntryArgs[]

The host entries

hostnames string[][]

The hostnames

nodeName string

The node name

addresses Sequence[str]

The addresses

digest str

The SHA1 digest

entries Sequence[HostsEntryArgs]

The host entries

hostnames Sequence[Sequence[str]]

The hostnames

node_name str

The node name

addresses List<String>

The addresses

digest String

The SHA1 digest

entries List<Property Map>

The host entries

hostnames List<List<String>>

The hostnames

nodeName String

The node name

Supporting Types

HostsEntry

Address string
Hostnames List<string>
Address string
Hostnames []string
address String
hostnames List<String>
address string
hostnames string[]
address str
hostnames Sequence[str]
address String
hostnames List<String>

Package Details

Repository
https://github.com/muhlba91/pulumi-proxmoxve
License
Apache-2.0
Notes

This Pulumi package is based on the proxmoxve Terraform Provider.