netbox 5.0.0 published on Friday, Sep 12, 2025 by e-breuninger
netbox.getIpAddress
Explore with Pulumi AI
netbox 5.0.0 published on Friday, Sep 12, 2025 by e-breuninger
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const ipAddress = netbox.getIpAddress({
id: 1001,
});
import pulumi
import pulumi_netbox as netbox
ip_address = netbox.get_ip_address(id=1001)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/netbox/v5/netbox"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := netbox.LookupIpAddress(ctx, &netbox.LookupIpAddressArgs{
Id: 1001,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Netbox = Pulumi.Netbox;
return await Deployment.RunAsync(() =>
{
var ipAddress = Netbox.GetIpAddress.Invoke(new()
{
Id = 1001,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.netbox.NetboxFunctions;
import com.pulumi.netbox.inputs.GetIpAddressArgs;
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 ipAddress = NetboxFunctions.getIpAddress(GetIpAddressArgs.builder()
.id(1001)
.build());
}
}
variables:
ipAddress:
fn::invoke:
function: netbox:getIpAddress
arguments:
id: 1001
Using getIpAddress
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 getIpAddress(args: GetIpAddressArgs, opts?: InvokeOptions): Promise<GetIpAddressResult>
function getIpAddressOutput(args: GetIpAddressOutputArgs, opts?: InvokeOptions): Output<GetIpAddressResult>
def get_ip_address(id: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetIpAddressResult
def get_ip_address_output(id: Optional[pulumi.Input[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIpAddressResult]
func LookupIpAddress(ctx *Context, args *LookupIpAddressArgs, opts ...InvokeOption) (*LookupIpAddressResult, error)
func LookupIpAddressOutput(ctx *Context, args *LookupIpAddressOutputArgs, opts ...InvokeOption) LookupIpAddressResultOutput
> Note: This function is named LookupIpAddress
in the Go SDK.
public static class GetIpAddress
{
public static Task<GetIpAddressResult> InvokeAsync(GetIpAddressArgs args, InvokeOptions? opts = null)
public static Output<GetIpAddressResult> Invoke(GetIpAddressInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIpAddressResult> getIpAddress(GetIpAddressArgs args, InvokeOptions options)
public static Output<GetIpAddressResult> getIpAddress(GetIpAddressArgs args, InvokeOptions options)
fn::invoke:
function: netbox:index/getIpAddress:getIpAddress
arguments:
# arguments dictionary
The following arguments are supported:
- Id double
- The ID of this resource.
- Id float64
- The ID of this resource.
- id Double
- The ID of this resource.
- id number
- The ID of this resource.
- id float
- The ID of this resource.
- id Number
- The ID of this resource.
getIpAddress Result
The following output properties are available:
- Address
Family string - Created string
- Custom
Fields Dictionary<string, string> - Description string
- Dns
Name string - Id double
- The ID of this resource.
- Ip
Address string - Last
Updated string - Role string
- Status string
- List<Get
Ip Address Tag> - Tenants
List<Get
Ip Address Tenant>
- Address
Family string - Created string
- Custom
Fields map[string]string - Description string
- Dns
Name string - Id float64
- The ID of this resource.
- Ip
Address string - Last
Updated string - Role string
- Status string
- []Get
Ip Address Tag - Tenants
[]Get
Ip Address Tenant
- address
Family String - created String
- custom
Fields Map<String,String> - description String
- dns
Name String - id Double
- The ID of this resource.
- ip
Address String - last
Updated String - role String
- status String
- List<Get
Ip Address Tag> - tenants
List<Get
Ip Address Tenant>
- address
Family string - created string
- custom
Fields {[key: string]: string} - description string
- dns
Name string - id number
- The ID of this resource.
- ip
Address string - last
Updated string - role string
- status string
- Get
Ip Address Tag[] - tenants
Get
Ip Address Tenant[]
- address_
family str - created str
- custom_
fields Mapping[str, str] - description str
- dns_
name str - id float
- The ID of this resource.
- ip_
address str - last_
updated str - role str
- status str
- Sequence[Get
Ip Address Tag] - tenants
Sequence[Get
Ip Address Tenant]
- address
Family String - created String
- custom
Fields Map<String> - description String
- dns
Name String - id Number
- The ID of this resource.
- ip
Address String - last
Updated String - role String
- status String
- List<Property Map>
- tenants List<Property Map>
Supporting Types
GetIpAddressTag
GetIpAddressTenant
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netbox
Terraform Provider.
netbox 5.0.0 published on Friday, Sep 12, 2025 by e-breuninger