1. Packages
  2. Proxmox Virtual Environment (Proxmox VE)
  3. API Docs
  4. Hosts
Proxmox Virtual Environment (Proxmox VE) v6.1.0 published on Sunday, Mar 24, 2024 by Daniel Muehlbachler-Pietrzykowski

proxmoxve.Hosts

Explore with Pulumi AI

proxmoxve logo
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)
    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:

    Entry List<Pulumi.ProxmoxVE.Inputs.HostsEntry>
    A host entry (multiple blocks supported).
    NodeName string
    A node name.
    Entry []HostsEntryArgs
    A host entry (multiple blocks supported).
    NodeName string
    A node name.
    entry List<HostsEntry>
    A host entry (multiple blocks supported).
    nodeName String
    A node name.
    entry HostsEntry[]
    A host entry (multiple blocks supported).
    nodeName string
    A node name.
    entry Sequence[HostsEntryArgs]
    A host entry (multiple blocks supported).
    node_name str
    A node name.
    entry List<Property Map>
    A host entry (multiple blocks supported).
    nodeName 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.ProxmoxVE.Outputs.HostsEntry>
    The host entries (conversion of addresses and hostnames into objects).
    Hostnames List<ImmutableArray<string>>
    The hostnames.
    Id string
    The provider-assigned unique ID for this managed resource.
    Addresses []string
    The IP addresses.
    Digest string
    The SHA1 digest.
    Entries []HostsEntry
    The host entries (conversion of addresses and hostnames into objects).
    Hostnames [][]string
    The hostnames.
    Id string
    The provider-assigned unique ID for this managed resource.
    addresses List<String>
    The IP addresses.
    digest String
    The SHA1 digest.
    entries List<HostsEntry>
    The host entries (conversion of addresses and hostnames into objects).
    hostnames List<List<String>>
    The hostnames.
    id String
    The provider-assigned unique ID for this managed resource.
    addresses string[]
    The IP addresses.
    digest string
    The SHA1 digest.
    entries HostsEntry[]
    The host entries (conversion of addresses and hostnames into objects).
    hostnames string[][]
    The hostnames.
    id string
    The provider-assigned unique ID for this managed resource.
    addresses Sequence[str]
    The IP addresses.
    digest str
    The SHA1 digest.
    entries Sequence[HostsEntry]
    The host entries (conversion of addresses and hostnames into objects).
    hostnames Sequence[Sequence[str]]
    The hostnames.
    id str
    The provider-assigned unique ID for this managed resource.
    addresses List<String>
    The IP addresses.
    digest String
    The SHA1 digest.
    entries List<Property Map>
    The host entries (conversion of addresses and hostnames into objects).
    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,
            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.
    The following state arguments are supported:
    Addresses List<string>
    The IP addresses.
    Digest string
    The SHA1 digest.
    Entries List<Pulumi.ProxmoxVE.Inputs.HostsEntry>
    The host entries (conversion of addresses and hostnames into objects).
    Entry List<Pulumi.ProxmoxVE.Inputs.HostsEntry>
    A host entry (multiple blocks supported).
    Hostnames List<ImmutableArray<string>>
    The hostnames.
    NodeName string
    A node name.
    Addresses []string
    The IP addresses.
    Digest string
    The SHA1 digest.
    Entries []HostsEntryArgs
    The host entries (conversion of addresses and hostnames into objects).
    Entry []HostsEntryArgs
    A host entry (multiple blocks supported).
    Hostnames [][]string
    The hostnames.
    NodeName string
    A node name.
    addresses List<String>
    The IP addresses.
    digest String
    The SHA1 digest.
    entries List<HostsEntry>
    The host entries (conversion of addresses and hostnames into objects).
    entry List<HostsEntry>
    A host entry (multiple blocks supported).
    hostnames List<List<String>>
    The hostnames.
    nodeName String
    A node name.
    addresses string[]
    The IP addresses.
    digest string
    The SHA1 digest.
    entries HostsEntry[]
    The host entries (conversion of addresses and hostnames into objects).
    entry HostsEntry[]
    A host entry (multiple blocks supported).
    hostnames string[][]
    The hostnames.
    nodeName string
    A node name.
    addresses Sequence[str]
    The IP addresses.
    digest str
    The SHA1 digest.
    entries Sequence[HostsEntryArgs]
    The host entries (conversion of addresses and hostnames into objects).
    entry Sequence[HostsEntryArgs]
    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 and hostnames into objects).
    entry List<Property Map>
    A host entry (multiple blocks supported).
    hostnames List<List<String>>
    The hostnames.
    nodeName String
    A node name.

    Supporting Types

    HostsEntry, HostsEntryArgs

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

    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.
    proxmoxve logo
    Proxmox Virtual Environment (Proxmox VE) v6.1.0 published on Sunday, Mar 24, 2024 by Daniel Muehlbachler-Pietrzykowski