1. Packages
  2. Nutanix
  3. API Docs
  4. getFoundationDiscoverNodes
Nutanix v0.1.0 published on Tuesday, Sep 24, 2024 by Piers Karsenbarg

nutanix.getFoundationDiscoverNodes

Explore with Pulumi AI

nutanix logo
Nutanix v0.1.0 published on Tuesday, Sep 24, 2024 by Piers Karsenbarg

    Discovers and lists Nutanix-imaged nodes within an IPv6 network.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pulumi/nutanix";
    
    const discoveredNodes = nutanix.getFoundationDiscoverNodes({});
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    discovered_nodes = nutanix.get_foundation_discover_nodes()
    
    package main
    
    import (
    	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := nutanix.GetFoundationDiscoverNodes(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = Pulumi.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        var discoveredNodes = Nutanix.GetFoundationDiscoverNodes.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.NutanixFunctions;
    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) {
            final var discoveredNodes = NutanixFunctions.getFoundationDiscoverNodes();
    
        }
    }
    
    variables:
      discoveredNodes:
        fn::invoke:
          Function: nutanix:getFoundationDiscoverNodes
          Arguments: {}
    

    Using getFoundationDiscoverNodes

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getFoundationDiscoverNodes(opts?: InvokeOptions): Promise<GetFoundationDiscoverNodesResult>
    function getFoundationDiscoverNodesOutput(opts?: InvokeOptions): Output<GetFoundationDiscoverNodesResult>
    def get_foundation_discover_nodes(opts: Optional[InvokeOptions] = None) -> GetFoundationDiscoverNodesResult
    def get_foundation_discover_nodes_output(opts: Optional[InvokeOptions] = None) -> Output[GetFoundationDiscoverNodesResult]
    func GetFoundationDiscoverNodes(ctx *Context, opts ...InvokeOption) (*GetFoundationDiscoverNodesResult, error)
    func GetFoundationDiscoverNodesOutput(ctx *Context, opts ...InvokeOption) GetFoundationDiscoverNodesResultOutput

    > Note: This function is named GetFoundationDiscoverNodes in the Go SDK.

    public static class GetFoundationDiscoverNodes 
    {
        public static Task<GetFoundationDiscoverNodesResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetFoundationDiscoverNodesResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFoundationDiscoverNodesResult> getFoundationDiscoverNodes(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: nutanix:index/getFoundationDiscoverNodes:getFoundationDiscoverNodes
      arguments:
        # arguments dictionary

    getFoundationDiscoverNodes Result

    The following output properties are available:

    Entities List<PiersKarsenbarg.Nutanix.Outputs.GetFoundationDiscoverNodesEntity>
    List of Nutanix-imaged nodes within an IPv6 network
    Id string
    The provider-assigned unique ID for this managed resource.
    Entities []GetFoundationDiscoverNodesEntity
    List of Nutanix-imaged nodes within an IPv6 network
    Id string
    The provider-assigned unique ID for this managed resource.
    entities List<GetFoundationDiscoverNodesEntity>
    List of Nutanix-imaged nodes within an IPv6 network
    id String
    The provider-assigned unique ID for this managed resource.
    entities GetFoundationDiscoverNodesEntity[]
    List of Nutanix-imaged nodes within an IPv6 network
    id string
    The provider-assigned unique ID for this managed resource.
    entities Sequence[GetFoundationDiscoverNodesEntity]
    List of Nutanix-imaged nodes within an IPv6 network
    id str
    The provider-assigned unique ID for this managed resource.
    entities List<Property Map>
    List of Nutanix-imaged nodes within an IPv6 network
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    GetFoundationDiscoverNodesEntity

    BlockId string
    Chassis serial number.
    ChassisN int
    ID number of the block.
    Model string
    Model name of the node.
    Nodes List<PiersKarsenbarg.Nutanix.Inputs.GetFoundationDiscoverNodesEntityNode>
    Node level properties.
    BlockId string
    Chassis serial number.
    ChassisN int
    ID number of the block.
    Model string
    Model name of the node.
    Nodes []GetFoundationDiscoverNodesEntityNode
    Node level properties.
    blockId String
    Chassis serial number.
    chassisN Integer
    ID number of the block.
    model String
    Model name of the node.
    nodes List<GetFoundationDiscoverNodesEntityNode>
    Node level properties.
    blockId string
    Chassis serial number.
    chassisN number
    ID number of the block.
    model string
    Model name of the node.
    nodes GetFoundationDiscoverNodesEntityNode[]
    Node level properties.
    block_id str
    Chassis serial number.
    chassis_n int
    ID number of the block.
    model str
    Model name of the node.
    nodes Sequence[GetFoundationDiscoverNodesEntityNode]
    Node level properties.
    blockId String
    Chassis serial number.
    chassisN Number
    ID number of the block.
    model String
    Model name of the node.
    nodes List<Property Map>
    Node level properties.

    GetFoundationDiscoverNodesEntityNode

    ClusterId string
    ID of the cluster the node is part of.
    Configured bool
    Whether the node is configured.
    CurrentCvmVlanTag string
    vlan tag of cvm.
    CurrentNetworkInterface string
    Current network interface of the node.
    FoundationVersion string
    Version of foundation.
    Hypervisor string
    Type of hypervisor installed on the node.
    HypervisorVersion string
    Version of hypervisor installed.
    Ipv6Address string
    IPV6 address of the node.
    Model string
    Model name of the node.
    NodePosition string
    Position of the node in the block.
    NodeSerial string
    Node serial of the node.
    NodeUuid string
    UUID of the node.
    NosVersion string
    Version of NOS installed on the node.
    SvmIp string
    IP address of CVM.
    ClusterId string
    ID of the cluster the node is part of.
    Configured bool
    Whether the node is configured.
    CurrentCvmVlanTag string
    vlan tag of cvm.
    CurrentNetworkInterface string
    Current network interface of the node.
    FoundationVersion string
    Version of foundation.
    Hypervisor string
    Type of hypervisor installed on the node.
    HypervisorVersion string
    Version of hypervisor installed.
    Ipv6Address string
    IPV6 address of the node.
    Model string
    Model name of the node.
    NodePosition string
    Position of the node in the block.
    NodeSerial string
    Node serial of the node.
    NodeUuid string
    UUID of the node.
    NosVersion string
    Version of NOS installed on the node.
    SvmIp string
    IP address of CVM.
    clusterId String
    ID of the cluster the node is part of.
    configured Boolean
    Whether the node is configured.
    currentCvmVlanTag String
    vlan tag of cvm.
    currentNetworkInterface String
    Current network interface of the node.
    foundationVersion String
    Version of foundation.
    hypervisor String
    Type of hypervisor installed on the node.
    hypervisorVersion String
    Version of hypervisor installed.
    ipv6Address String
    IPV6 address of the node.
    model String
    Model name of the node.
    nodePosition String
    Position of the node in the block.
    nodeSerial String
    Node serial of the node.
    nodeUuid String
    UUID of the node.
    nosVersion String
    Version of NOS installed on the node.
    svmIp String
    IP address of CVM.
    clusterId string
    ID of the cluster the node is part of.
    configured boolean
    Whether the node is configured.
    currentCvmVlanTag string
    vlan tag of cvm.
    currentNetworkInterface string
    Current network interface of the node.
    foundationVersion string
    Version of foundation.
    hypervisor string
    Type of hypervisor installed on the node.
    hypervisorVersion string
    Version of hypervisor installed.
    ipv6Address string
    IPV6 address of the node.
    model string
    Model name of the node.
    nodePosition string
    Position of the node in the block.
    nodeSerial string
    Node serial of the node.
    nodeUuid string
    UUID of the node.
    nosVersion string
    Version of NOS installed on the node.
    svmIp string
    IP address of CVM.
    cluster_id str
    ID of the cluster the node is part of.
    configured bool
    Whether the node is configured.
    current_cvm_vlan_tag str
    vlan tag of cvm.
    current_network_interface str
    Current network interface of the node.
    foundation_version str
    Version of foundation.
    hypervisor str
    Type of hypervisor installed on the node.
    hypervisor_version str
    Version of hypervisor installed.
    ipv6_address str
    IPV6 address of the node.
    model str
    Model name of the node.
    node_position str
    Position of the node in the block.
    node_serial str
    Node serial of the node.
    node_uuid str
    UUID of the node.
    nos_version str
    Version of NOS installed on the node.
    svm_ip str
    IP address of CVM.
    clusterId String
    ID of the cluster the node is part of.
    configured Boolean
    Whether the node is configured.
    currentCvmVlanTag String
    vlan tag of cvm.
    currentNetworkInterface String
    Current network interface of the node.
    foundationVersion String
    Version of foundation.
    hypervisor String
    Type of hypervisor installed on the node.
    hypervisorVersion String
    Version of hypervisor installed.
    ipv6Address String
    IPV6 address of the node.
    model String
    Model name of the node.
    nodePosition String
    Position of the node in the block.
    nodeSerial String
    Node serial of the node.
    nodeUuid String
    UUID of the node.
    nosVersion String
    Version of NOS installed on the node.
    svmIp String
    IP address of CVM.

    Package Details

    Repository
    nutanix pierskarsenbarg/pulumi-nutanix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nutanix Terraform Provider.
    nutanix logo
    Nutanix v0.1.0 published on Tuesday, Sep 24, 2024 by Piers Karsenbarg