1. Packages
  2. Nutanix
  3. API Docs
  4. getNdbNetworkAvailableIps
Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg

nutanix.getNdbNetworkAvailableIps

Explore with Pulumi AI

nutanix logo
Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg

    List of available IPs in Network

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pulumi/nutanix";
    
    const network = nutanix.getNdbNetworkAvailableIps({
        profileId: "{{ network_profile_id }}",
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    network = nutanix.get_ndb_network_available_ips(profile_id="{{ network_profile_id }}")
    
    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.GetNdbNetworkAvailableIps(ctx, &nutanix.GetNdbNetworkAvailableIpsArgs{
    			ProfileId: "{{ network_profile_id }}",
    		}, 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 network = Nutanix.GetNdbNetworkAvailableIps.Invoke(new()
        {
            ProfileId = "{{ network_profile_id }}",
        });
    
    });
    
    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.GetNdbNetworkAvailableIpsArgs;
    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 network = NutanixFunctions.getNdbNetworkAvailableIps(GetNdbNetworkAvailableIpsArgs.builder()
                .profileId("{{ network_profile_id }}")
                .build());
    
        }
    }
    
    variables:
      network:
        fn::invoke:
          Function: nutanix:getNdbNetworkAvailableIps
          Arguments:
            profileId: '{{ network_profile_id }}'
    

    Using getNdbNetworkAvailableIps

    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 getNdbNetworkAvailableIps(args: GetNdbNetworkAvailableIpsArgs, opts?: InvokeOptions): Promise<GetNdbNetworkAvailableIpsResult>
    function getNdbNetworkAvailableIpsOutput(args: GetNdbNetworkAvailableIpsOutputArgs, opts?: InvokeOptions): Output<GetNdbNetworkAvailableIpsResult>
    def get_ndb_network_available_ips(profile_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetNdbNetworkAvailableIpsResult
    def get_ndb_network_available_ips_output(profile_id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetNdbNetworkAvailableIpsResult]
    func GetNdbNetworkAvailableIps(ctx *Context, args *GetNdbNetworkAvailableIpsArgs, opts ...InvokeOption) (*GetNdbNetworkAvailableIpsResult, error)
    func GetNdbNetworkAvailableIpsOutput(ctx *Context, args *GetNdbNetworkAvailableIpsOutputArgs, opts ...InvokeOption) GetNdbNetworkAvailableIpsResultOutput

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

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

    The following arguments are supported:

    ProfileId string
    (Required) Network Profile id.
    ProfileId string
    (Required) Network Profile id.
    profileId String
    (Required) Network Profile id.
    profileId string
    (Required) Network Profile id.
    profile_id str
    (Required) Network Profile id.
    profileId String
    (Required) Network Profile id.

    getNdbNetworkAvailableIps Result

    The following output properties are available:

    AvailableIps List<PiersKarsenbarg.Nutanix.Outputs.GetNdbNetworkAvailableIpsAvailableIp>
    List of network available ips
    Id string
    The provider-assigned unique ID for this managed resource.
    ProfileId string
    (Required) Network Profile id.
    AvailableIps []GetNdbNetworkAvailableIpsAvailableIp
    List of network available ips
    Id string
    The provider-assigned unique ID for this managed resource.
    ProfileId string
    (Required) Network Profile id.
    availableIps List<GetNdbNetworkAvailableIpsAvailableIp>
    List of network available ips
    id String
    The provider-assigned unique ID for this managed resource.
    profileId String
    (Required) Network Profile id.
    availableIps GetNdbNetworkAvailableIpsAvailableIp[]
    List of network available ips
    id string
    The provider-assigned unique ID for this managed resource.
    profileId string
    (Required) Network Profile id.
    available_ips Sequence[GetNdbNetworkAvailableIpsAvailableIp]
    List of network available ips
    id str
    The provider-assigned unique ID for this managed resource.
    profile_id str
    (Required) Network Profile id.
    availableIps List<Property Map>
    List of network available ips
    id String
    The provider-assigned unique ID for this managed resource.
    profileId String
    (Required) Network Profile id.

    Supporting Types

    GetNdbNetworkAvailableIpsAvailableIp

    ClusterId string
    cluster id
    ClusterName string
    cluster name
    Id string
    network profile id
    IpAddresses List<string>
    list of available ips in network
    Managed bool
    managed by ndb or not
    Name string
    Network Name
    PropertyName string
    property name of vlan
    Type string
    type of network
    ClusterId string
    cluster id
    ClusterName string
    cluster name
    Id string
    network profile id
    IpAddresses []string
    list of available ips in network
    Managed bool
    managed by ndb or not
    Name string
    Network Name
    PropertyName string
    property name of vlan
    Type string
    type of network
    clusterId String
    cluster id
    clusterName String
    cluster name
    id String
    network profile id
    ipAddresses List<String>
    list of available ips in network
    managed Boolean
    managed by ndb or not
    name String
    Network Name
    propertyName String
    property name of vlan
    type String
    type of network
    clusterId string
    cluster id
    clusterName string
    cluster name
    id string
    network profile id
    ipAddresses string[]
    list of available ips in network
    managed boolean
    managed by ndb or not
    name string
    Network Name
    propertyName string
    property name of vlan
    type string
    type of network
    cluster_id str
    cluster id
    cluster_name str
    cluster name
    id str
    network profile id
    ip_addresses Sequence[str]
    list of available ips in network
    managed bool
    managed by ndb or not
    name str
    Network Name
    property_name str
    property name of vlan
    type str
    type of network
    clusterId String
    cluster id
    clusterName String
    cluster name
    id String
    network profile id
    ipAddresses List<String>
    list of available ips in network
    managed Boolean
    managed by ndb or not
    name String
    Network Name
    propertyName String
    property name of vlan
    type String
    type of network

    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.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg