Proxmox Virtual Environment (Proxmox VE) v6.1.0 published on Sunday, Mar 24, 2024 by Daniel Muehlbachler-Pietrzykowski
proxmoxve.Hosts
Explore with Pulumi AI
Proxmox Virtual Environment (Proxmox VE) v6.1.0 published on Sunday, Mar 24, 2024 by Daniel Muehlbachler-Pietrzykowski
Manages the host entries on a specific node.
Example Usage
Coming soon!```
</pulumi-choosable>
</div>
<div>
<pulumi-choosable type="language" values="python">
Coming soon!```
Coming soon!```
</pulumi-choosable>
</div>
<div>
<pulumi-choosable type="language" values="csharp">
Coming soon!```
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.proxmoxve.Hosts;
import com.pulumi.proxmoxve.HostsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var firstNodeHostEntries = new Hosts("firstNodeHostEntries", HostsArgs.builder()
.entries(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.nodeName("first-node")
.build());
}
}
resources:
firstNodeHostEntries:
type: proxmoxve:Hosts
properties:
entries:
- address: 127.0.0.1
hostnames:
- localhost
- localhost.localdomain
nodeName: first-node
Create Hosts Resource
new Hosts(name: string, args: HostsArgs, opts?: CustomResourceOptions);
@overload
def Hosts(resource_name: str,
opts: Optional[ResourceOptions] = None,
entry: 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)
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:
- Entry
List<Pulumi.
Proxmox VE. Inputs. Hosts Entry> - A host entry (multiple blocks supported).
- Node
Name string - A node name.
- Entry
[]Hosts
Entry Args - A host entry (multiple blocks supported).
- Node
Name string - A node name.
- entry
List<Hosts
Entry> - A host entry (multiple blocks supported).
- node
Name String - A node name.
- entry
Hosts
Entry[] - A host entry (multiple blocks supported).
- node
Name string - A node name.
- entry
Sequence[Hosts
Entry Args] - A host entry (multiple blocks supported).
- node_
name str - A node name.
- entry List<Property Map>
- A host entry (multiple blocks supported).
- node
Name String - A 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 IP addresses.
- Digest string
- The SHA1 digest.
- Entries
List<Pulumi.
Proxmox VE. Outputs. Hosts Entry> - The host entries (conversion of
addresses
andhostnames
into objects). - Hostnames
List<Immutable
Array<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,
entry: 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.
- Addresses List<string>
- The IP addresses.
- Digest string
- The SHA1 digest.
- Entries
List<Pulumi.
Proxmox VE. Inputs. Hosts Entry> - The host entries (conversion of
addresses
andhostnames
into objects). - Entry
List<Pulumi.
Proxmox VE. Inputs. Hosts Entry> - A host entry (multiple blocks supported).
- Hostnames
List<Immutable
Array<string>> - The hostnames.
- Node
Name string - A node name.
- Addresses []string
- The IP addresses.
- Digest string
- The SHA1 digest.
- Entries
[]Hosts
Entry Args - The host entries (conversion of
addresses
andhostnames
into objects). - Entry
[]Hosts
Entry Args - A host entry (multiple blocks supported).
- Hostnames [][]string
- The hostnames.
- Node
Name string - A node name.
- addresses List<String>
- The IP addresses.
- digest String
- The SHA1 digest.
- entries
List<Hosts
Entry> - The host entries (conversion of
addresses
andhostnames
into objects). - entry
List<Hosts
Entry> - A host entry (multiple blocks supported).
- hostnames List<List<String>>
- The hostnames.
- node
Name String - A node name.
- addresses string[]
- The IP addresses.
- digest string
- The SHA1 digest.
- entries
Hosts
Entry[] - The host entries (conversion of
addresses
andhostnames
into objects). - entry
Hosts
Entry[] - A host entry (multiple blocks supported).
- hostnames string[][]
- The hostnames.
- node
Name string - A node name.
- addresses Sequence[str]
- The IP addresses.
- digest str
- The SHA1 digest.
- entries
Sequence[Hosts
Entry Args] - The host entries (conversion of
addresses
andhostnames
into objects). - entry
Sequence[Hosts
Entry Args] - A host entry (multiple blocks supported).
- hostnames Sequence[Sequence[str]]
- The hostnames.
- node_
name str - A node name.
- addresses List<String>
- The IP addresses.
- digest String
- The SHA1 digest.
- entries List<Property Map>
- The host entries (conversion of
addresses
andhostnames
into objects). - entry List<Property Map>
- A host entry (multiple blocks supported).
- hostnames List<List<String>>
- The hostnames.
- node
Name String - A node name.
Supporting Types
HostsEntry, HostsEntryArgs
Import
ant Notes
Be careful not to use this resource multiple times for the same node.
Package Details
- Repository
- proxmoxve muhlba91/pulumi-proxmoxve
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
proxmox
Terraform Provider.
Proxmox Virtual Environment (Proxmox VE) v6.1.0 published on Sunday, Mar 24, 2024 by Daniel Muehlbachler-Pietrzykowski