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

nutanix.getNdbNetwork

Explore with Pulumi AI

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

    Describes a network in Nutanix Database Service

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pulumi/nutanix";
    
    const nw = nutanix.getNdbNetwork({
        id: "{{ id of network }}",
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    nw = nutanix.get_ndb_network(id="{{ id of network }}")
    
    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.LookupNdbNetwork(ctx, &nutanix.LookupNdbNetworkArgs{
    			Id: pulumi.StringRef("{{ id of network }}"),
    		}, 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 nw = Nutanix.GetNdbNetwork.Invoke(new()
        {
            Id = "{{ id of network }}",
        });
    
    });
    
    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.GetNdbNetworkArgs;
    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 nw = NutanixFunctions.getNdbNetwork(GetNdbNetworkArgs.builder()
                .id("{{ id of network }}")
                .build());
    
        }
    }
    
    variables:
      nw:
        fn::invoke:
          Function: nutanix:getNdbNetwork
          Arguments:
            id: '{{ id of network }}'
    

    Using getNdbNetwork

    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 getNdbNetwork(args: GetNdbNetworkArgs, opts?: InvokeOptions): Promise<GetNdbNetworkResult>
    function getNdbNetworkOutput(args: GetNdbNetworkOutputArgs, opts?: InvokeOptions): Output<GetNdbNetworkResult>
    def get_ndb_network(id: Optional[str] = None,
                        name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetNdbNetworkResult
    def get_ndb_network_output(id: Optional[pulumi.Input[str]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetNdbNetworkResult]
    func LookupNdbNetwork(ctx *Context, args *LookupNdbNetworkArgs, opts ...InvokeOption) (*LookupNdbNetworkResult, error)
    func LookupNdbNetworkOutput(ctx *Context, args *LookupNdbNetworkOutputArgs, opts ...InvokeOption) LookupNdbNetworkResultOutput

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

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

    The following arguments are supported:

    Id string
    id of network
    Name string
    name of network
    Id string
    id of network
    Name string
    name of network
    id String
    id of network
    name String
    name of network
    id string
    id of network
    name string
    name of network
    id str
    id of network
    name str
    name of network
    id String
    id of network
    name String
    name of network

    getNdbNetwork Result

    The following output properties are available:

    ClusterId string
    cluster id where network is present
    Id string
    network id
    IpAddresses List<PiersKarsenbarg.Nutanix.Outputs.GetNdbNetworkIpAddress>
    IP addresses of network
    IpPools List<PiersKarsenbarg.Nutanix.Outputs.GetNdbNetworkIpPool>
    IP Pools of network
    Managed bool
    network managed by NDB or not
    Name string
    network name
    Properties List<PiersKarsenbarg.Nutanix.Outputs.GetNdbNetworkProperty>
    properties of network
    PropertiesMaps List<PiersKarsenbarg.Nutanix.Outputs.GetNdbNetworkPropertiesMap>
    properties map of network
    StretchedVlanId string
    stretched vlan id
    Type string
    type of network
    ClusterId string
    cluster id where network is present
    Id string
    network id
    IpAddresses []GetNdbNetworkIpAddress
    IP addresses of network
    IpPools []GetNdbNetworkIpPool
    IP Pools of network
    Managed bool
    network managed by NDB or not
    Name string
    network name
    Properties []GetNdbNetworkProperty
    properties of network
    PropertiesMaps []GetNdbNetworkPropertiesMap
    properties map of network
    StretchedVlanId string
    stretched vlan id
    Type string
    type of network
    clusterId String
    cluster id where network is present
    id String
    network id
    ipAddresses List<GetNdbNetworkIpAddress>
    IP addresses of network
    ipPools List<GetNdbNetworkIpPool>
    IP Pools of network
    managed Boolean
    network managed by NDB or not
    name String
    network name
    properties List<GetNdbNetworkProperty>
    properties of network
    propertiesMaps List<GetNdbNetworkPropertiesMap>
    properties map of network
    stretchedVlanId String
    stretched vlan id
    type String
    type of network
    clusterId string
    cluster id where network is present
    id string
    network id
    ipAddresses GetNdbNetworkIpAddress[]
    IP addresses of network
    ipPools GetNdbNetworkIpPool[]
    IP Pools of network
    managed boolean
    network managed by NDB or not
    name string
    network name
    properties GetNdbNetworkProperty[]
    properties of network
    propertiesMaps GetNdbNetworkPropertiesMap[]
    properties map of network
    stretchedVlanId string
    stretched vlan id
    type string
    type of network
    cluster_id str
    cluster id where network is present
    id str
    network id
    ip_addresses Sequence[GetNdbNetworkIpAddress]
    IP addresses of network
    ip_pools Sequence[GetNdbNetworkIpPool]
    IP Pools of network
    managed bool
    network managed by NDB or not
    name str
    network name
    properties Sequence[GetNdbNetworkProperty]
    properties of network
    properties_maps Sequence[GetNdbNetworkPropertiesMap]
    properties map of network
    stretched_vlan_id str
    stretched vlan id
    type str
    type of network
    clusterId String
    cluster id where network is present
    id String
    network id
    ipAddresses List<Property Map>
    IP addresses of network
    ipPools List<Property Map>
    IP Pools of network
    managed Boolean
    network managed by NDB or not
    name String
    network name
    properties List<Property Map>
    properties of network
    propertiesMaps List<Property Map>
    properties map of network
    stretchedVlanId String
    stretched vlan id
    type String
    type of network

    Supporting Types

    GetNdbNetworkIpAddress

    DbserverId string
    dbserver id
    DbserverName string
    dbserver name
    Ip string
    ip of pool
    Status string
    ip status
    DbserverId string
    dbserver id
    DbserverName string
    dbserver name
    Ip string
    ip of pool
    Status string
    ip status
    dbserverId String
    dbserver id
    dbserverName String
    dbserver name
    ip String
    ip of pool
    status String
    ip status
    dbserverId string
    dbserver id
    dbserverName string
    dbserver name
    ip string
    ip of pool
    status string
    ip status
    dbserver_id str
    dbserver id
    dbserver_name str
    dbserver name
    ip str
    ip of pool
    status str
    ip status
    dbserverId String
    dbserver id
    dbserverName String
    dbserver name
    ip String
    ip of pool
    status String
    ip status

    GetNdbNetworkIpPool

    Addresses []GetNdbNetworkIpPoolAddress
    address of ips ranges
    EndIp string
    end ip
    StartIp string
    start ip
    addresses List<GetNdbNetworkIpPoolAddress>
    address of ips ranges
    endIp String
    end ip
    startIp String
    start ip
    addresses GetNdbNetworkIpPoolAddress[]
    address of ips ranges
    endIp string
    end ip
    startIp string
    start ip
    addresses Sequence[GetNdbNetworkIpPoolAddress]
    address of ips ranges
    end_ip str
    end ip
    start_ip str
    start ip
    addresses List<Property Map>
    address of ips ranges
    endIp String
    end ip
    startIp String
    start ip

    GetNdbNetworkIpPoolAddress

    Ip string
    ip of pool
    Status string
    ip status
    Ip string
    ip of pool
    Status string
    ip status
    ip String
    ip of pool
    status String
    ip status
    ip string
    ip of pool
    status string
    ip status
    ip str
    ip of pool
    status str
    ip status
    ip String
    ip of pool
    status String
    ip status

    GetNdbNetworkPropertiesMap

    VlanGateway string
    gateway of vlan
    VlanPrimaryDns string
    primary dns of vlan
    VlanSecondaryDns string
    secondary dns of vlan
    VlanSubnetMask string
    subnet mask of vlan
    VlanGateway string
    gateway of vlan
    VlanPrimaryDns string
    primary dns of vlan
    VlanSecondaryDns string
    secondary dns of vlan
    VlanSubnetMask string
    subnet mask of vlan
    vlanGateway String
    gateway of vlan
    vlanPrimaryDns String
    primary dns of vlan
    vlanSecondaryDns String
    secondary dns of vlan
    vlanSubnetMask String
    subnet mask of vlan
    vlanGateway string
    gateway of vlan
    vlanPrimaryDns string
    primary dns of vlan
    vlanSecondaryDns string
    secondary dns of vlan
    vlanSubnetMask string
    subnet mask of vlan
    vlan_gateway str
    gateway of vlan
    vlan_primary_dns str
    primary dns of vlan
    vlan_secondary_dns str
    secondary dns of vlan
    vlan_subnet_mask str
    subnet mask of vlan
    vlanGateway String
    gateway of vlan
    vlanPrimaryDns String
    primary dns of vlan
    vlanSecondaryDns String
    secondary dns of vlan
    vlanSubnetMask String
    subnet mask of vlan

    GetNdbNetworkProperty

    Name string
    name of network
    Secure bool
    Value string
    Name string
    name of network
    Secure bool
    Value string
    name String
    name of network
    secure Boolean
    value String
    name string
    name of network
    secure boolean
    value string
    name str
    name of network
    secure bool
    value str
    name String
    name of network
    secure Boolean
    value String

    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