1. Packages
  2. Nutanix
  3. API Docs
  4. getFoundationNodeNetworkDetails
Nutanix v0.0.52 published on Friday, Jun 7, 2024 by Piers Karsenbarg

nutanix.getFoundationNodeNetworkDetails

Explore with Pulumi AI

nutanix logo
Nutanix v0.0.52 published on Friday, Jun 7, 2024 by Piers Karsenbarg

    Gets hypervisor, CVM & IPMI info of the discovered nodes using their ipv6 address.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pulumi/nutanix";
    
    const networkDetails = nutanix.getFoundationNodeNetworkDetails({
        ipv6Addresses: [
            "<ipv6-address-1>",
            "<ipv6-address-2>",
        ],
        timeout: "30",
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    network_details = nutanix.get_foundation_node_network_details(ipv6_addresses=[
            "<ipv6-address-1>",
            "<ipv6-address-2>",
        ],
        timeout="30")
    
    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.GetFoundationNodeNetworkDetails(ctx, &nutanix.GetFoundationNodeNetworkDetailsArgs{
    			Ipv6Addresses: []string{
    				"<ipv6-address-1>",
    				"<ipv6-address-2>",
    			},
    			Timeout: pulumi.StringRef("30"),
    		}, 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 networkDetails = Nutanix.GetFoundationNodeNetworkDetails.Invoke(new()
        {
            Ipv6Addresses = new[]
            {
                "<ipv6-address-1>",
                "<ipv6-address-2>",
            },
            Timeout = "30",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.NutanixFunctions;
    import com.pulumi.nutanix.inputs.GetFoundationNodeNetworkDetailsArgs;
    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 networkDetails = NutanixFunctions.getFoundationNodeNetworkDetails(GetFoundationNodeNetworkDetailsArgs.builder()
                .ipv6Addresses(            
                    "<ipv6-address-1>",
                    "<ipv6-address-2>")
                .timeout("30")
                .build());
    
        }
    }
    
    variables:
      networkDetails:
        fn::invoke:
          Function: nutanix:getFoundationNodeNetworkDetails
          Arguments:
            ipv6Addresses:
              - <ipv6-address-1>
              - <ipv6-address-2>
            timeout: '30'
    

    Using getFoundationNodeNetworkDetails

    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 getFoundationNodeNetworkDetails(args: GetFoundationNodeNetworkDetailsArgs, opts?: InvokeOptions): Promise<GetFoundationNodeNetworkDetailsResult>
    function getFoundationNodeNetworkDetailsOutput(args: GetFoundationNodeNetworkDetailsOutputArgs, opts?: InvokeOptions): Output<GetFoundationNodeNetworkDetailsResult>
    def get_foundation_node_network_details(ipv6_addresses: Optional[Sequence[str]] = None,
                                            timeout: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetFoundationNodeNetworkDetailsResult
    def get_foundation_node_network_details_output(ipv6_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                            timeout: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetFoundationNodeNetworkDetailsResult]
    func GetFoundationNodeNetworkDetails(ctx *Context, args *GetFoundationNodeNetworkDetailsArgs, opts ...InvokeOption) (*GetFoundationNodeNetworkDetailsResult, error)
    func GetFoundationNodeNetworkDetailsOutput(ctx *Context, args *GetFoundationNodeNetworkDetailsOutputArgs, opts ...InvokeOption) GetFoundationNodeNetworkDetailsResultOutput

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

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

    The following arguments are supported:

    Ipv6Addresses List<string>
    list of ipv6 addresses
    Timeout string
    timeout in seconds
    Ipv6Addresses []string
    list of ipv6 addresses
    Timeout string
    timeout in seconds
    ipv6Addresses List<String>
    list of ipv6 addresses
    timeout String
    timeout in seconds
    ipv6Addresses string[]
    list of ipv6 addresses
    timeout string
    timeout in seconds
    ipv6_addresses Sequence[str]
    list of ipv6 addresses
    timeout str
    timeout in seconds
    ipv6Addresses List<String>
    list of ipv6 addresses
    timeout String
    timeout in seconds

    getFoundationNodeNetworkDetails Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ipv6Addresses List<string>
    Nodes List<PiersKarsenbarg.Nutanix.Outputs.GetFoundationNodeNetworkDetailsNode>
    nodes array.
    Timeout string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ipv6Addresses []string
    Nodes []GetFoundationNodeNetworkDetailsNode
    nodes array.
    Timeout string
    id String
    The provider-assigned unique ID for this managed resource.
    ipv6Addresses List<String>
    nodes List<GetFoundationNodeNetworkDetailsNode>
    nodes array.
    timeout String
    id string
    The provider-assigned unique ID for this managed resource.
    ipv6Addresses string[]
    nodes GetFoundationNodeNetworkDetailsNode[]
    nodes array.
    timeout string
    id str
    The provider-assigned unique ID for this managed resource.
    ipv6_addresses Sequence[str]
    nodes Sequence[GetFoundationNodeNetworkDetailsNode]
    nodes array.
    timeout str
    id String
    The provider-assigned unique ID for this managed resource.
    ipv6Addresses List<String>
    nodes List<Property Map>
    nodes array.
    timeout String

    Supporting Types

    GetFoundationNodeNetworkDetailsNode

    CvmGateway string
    Gateway of CVM.
    CvmIp string
    CVM IP address.
    CvmNetmask string
    Netmask of CVM.
    CvmVlanId string
    CVM vlan tag.
    Error string
    Only exists when failed to fetch node_info, with the reason of failure. all other fields will be empty.
    HypervisorGateway string
    Gateway of the hypervisor.
    HypervisorHostname string
    Hypervisor hostname.
    HypervisorIp string
    Hypervisor IP address.
    HypervisorNetmask string
    Netmask of the hypervisor.
    IpmiGateway string
    IPMI gateway.
    IpmiIp string
    IPMI IP address.
    IpmiNetmask string
    IPMI netmask.
    Ipv6Address string
    IPV6 address of the CVM.
    NodeSerial string
    Node serial.
    CvmGateway string
    Gateway of CVM.
    CvmIp string
    CVM IP address.
    CvmNetmask string
    Netmask of CVM.
    CvmVlanId string
    CVM vlan tag.
    Error string
    Only exists when failed to fetch node_info, with the reason of failure. all other fields will be empty.
    HypervisorGateway string
    Gateway of the hypervisor.
    HypervisorHostname string
    Hypervisor hostname.
    HypervisorIp string
    Hypervisor IP address.
    HypervisorNetmask string
    Netmask of the hypervisor.
    IpmiGateway string
    IPMI gateway.
    IpmiIp string
    IPMI IP address.
    IpmiNetmask string
    IPMI netmask.
    Ipv6Address string
    IPV6 address of the CVM.
    NodeSerial string
    Node serial.
    cvmGateway String
    Gateway of CVM.
    cvmIp String
    CVM IP address.
    cvmNetmask String
    Netmask of CVM.
    cvmVlanId String
    CVM vlan tag.
    error String
    Only exists when failed to fetch node_info, with the reason of failure. all other fields will be empty.
    hypervisorGateway String
    Gateway of the hypervisor.
    hypervisorHostname String
    Hypervisor hostname.
    hypervisorIp String
    Hypervisor IP address.
    hypervisorNetmask String
    Netmask of the hypervisor.
    ipmiGateway String
    IPMI gateway.
    ipmiIp String
    IPMI IP address.
    ipmiNetmask String
    IPMI netmask.
    ipv6Address String
    IPV6 address of the CVM.
    nodeSerial String
    Node serial.
    cvmGateway string
    Gateway of CVM.
    cvmIp string
    CVM IP address.
    cvmNetmask string
    Netmask of CVM.
    cvmVlanId string
    CVM vlan tag.
    error string
    Only exists when failed to fetch node_info, with the reason of failure. all other fields will be empty.
    hypervisorGateway string
    Gateway of the hypervisor.
    hypervisorHostname string
    Hypervisor hostname.
    hypervisorIp string
    Hypervisor IP address.
    hypervisorNetmask string
    Netmask of the hypervisor.
    ipmiGateway string
    IPMI gateway.
    ipmiIp string
    IPMI IP address.
    ipmiNetmask string
    IPMI netmask.
    ipv6Address string
    IPV6 address of the CVM.
    nodeSerial string
    Node serial.
    cvm_gateway str
    Gateway of CVM.
    cvm_ip str
    CVM IP address.
    cvm_netmask str
    Netmask of CVM.
    cvm_vlan_id str
    CVM vlan tag.
    error str
    Only exists when failed to fetch node_info, with the reason of failure. all other fields will be empty.
    hypervisor_gateway str
    Gateway of the hypervisor.
    hypervisor_hostname str
    Hypervisor hostname.
    hypervisor_ip str
    Hypervisor IP address.
    hypervisor_netmask str
    Netmask of the hypervisor.
    ipmi_gateway str
    IPMI gateway.
    ipmi_ip str
    IPMI IP address.
    ipmi_netmask str
    IPMI netmask.
    ipv6_address str
    IPV6 address of the CVM.
    node_serial str
    Node serial.
    cvmGateway String
    Gateway of CVM.
    cvmIp String
    CVM IP address.
    cvmNetmask String
    Netmask of CVM.
    cvmVlanId String
    CVM vlan tag.
    error String
    Only exists when failed to fetch node_info, with the reason of failure. all other fields will be empty.
    hypervisorGateway String
    Gateway of the hypervisor.
    hypervisorHostname String
    Hypervisor hostname.
    hypervisorIp String
    Hypervisor IP address.
    hypervisorNetmask String
    Netmask of the hypervisor.
    ipmiGateway String
    IPMI gateway.
    ipmiIp String
    IPMI IP address.
    ipmiNetmask String
    IPMI netmask.
    ipv6Address String
    IPV6 address of the CVM.
    nodeSerial String
    Node serial.

    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.0.52 published on Friday, Jun 7, 2024 by Piers Karsenbarg