1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getCustomLink
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
netbox
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger

    A custom link rendered on the pages of the object types it applies to (extras.customlink).

    From the official documentation:

    Users can add custom links to object views in NetBox to reference external resources. For example, you might create a custom link for devices pointing to a monitoring system. See the custom links documentation for more information.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getCustomLink({
        name: "test-custom_link",
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_custom_link(name="test-custom_link")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/netbox/v6/netbox"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := netbox.LookupCustomLink(ctx, &netbox.LookupCustomLinkArgs{
    			Name: pulumi.StringRef("test-custom_link"),
    		}, 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 test = Netbox.GetCustomLink.Invoke(new()
        {
            Name = "test-custom_link",
        });
    
    });
    
    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.GetCustomLinkArgs;
    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 test = NetboxFunctions.getCustomLink(GetCustomLinkArgs.builder()
                .name("test-custom_link")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getCustomLink
          arguments:
            name: test-custom_link
    
    Example coming soon!
    

    Using getCustomLink

    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 getCustomLink(args: GetCustomLinkArgs, opts?: InvokeOptions): Promise<GetCustomLinkResult>
    function getCustomLinkOutput(args: GetCustomLinkOutputArgs, opts?: InvokeOutputOptions): Output<GetCustomLinkResult>
    def get_custom_link(enabled: Optional[bool] = None,
                        id: Optional[float] = None,
                        name: Optional[str] = None,
                        owner_id: Optional[float] = None,
                        opts: Optional[InvokeOptions] = None) -> GetCustomLinkResult
    def get_custom_link_output(enabled: pulumi.Input[Optional[bool]] = None,
                        id: pulumi.Input[Optional[float]] = None,
                        name: pulumi.Input[Optional[str]] = None,
                        owner_id: pulumi.Input[Optional[float]] = None,
                        opts: Optional[InvokeOutputOptions] = None) -> Output[GetCustomLinkResult]
    func LookupCustomLink(ctx *Context, args *LookupCustomLinkArgs, opts ...InvokeOption) (*LookupCustomLinkResult, error)
    func LookupCustomLinkOutput(ctx *Context, args *LookupCustomLinkOutputArgs, opts ...InvokeOption) LookupCustomLinkResultOutput

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

    public static class GetCustomLink 
    {
        public static Task<GetCustomLinkResult> InvokeAsync(GetCustomLinkArgs args, InvokeOptions? opts = null)
        public static Output<GetCustomLinkResult> Invoke(GetCustomLinkInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetCustomLinkResult> Invoke(GetCustomLinkInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetCustomLinkResult> getCustomLink(GetCustomLinkArgs args, InvokeOptions options)
    public static Output<GetCustomLinkResult> getCustomLink(GetCustomLinkArgs args, InvokeOptions options)
    public static Output<GetCustomLinkResult> getCustomLink(GetCustomLinkArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getCustomLink:getCustomLink
      arguments:
        # arguments dictionary
    data "netbox_get_custom_link" "name" {
        # arguments
    }

    The following arguments are supported:

    Enabled bool
    Whether the link is rendered.
    Id double
    NetBox id.
    Name string
    OwnerId double
    Id of the owner the object is assigned to.
    Enabled bool
    Whether the link is rendered.
    Id float64
    NetBox id.
    Name string
    OwnerId float64
    Id of the owner the object is assigned to.
    enabled bool
    Whether the link is rendered.
    id number
    NetBox id.
    name string
    owner_id number
    Id of the owner the object is assigned to.
    enabled Boolean
    Whether the link is rendered.
    id Double
    NetBox id.
    name String
    ownerId Double
    Id of the owner the object is assigned to.
    enabled boolean
    Whether the link is rendered.
    id number
    NetBox id.
    name string
    ownerId number
    Id of the owner the object is assigned to.
    enabled bool
    Whether the link is rendered.
    id float
    NetBox id.
    name str
    owner_id float
    Id of the owner the object is assigned to.
    enabled Boolean
    Whether the link is rendered.
    id Number
    NetBox id.
    name String
    ownerId Number
    Id of the owner the object is assigned to.

    getCustomLink Result

    The following output properties are available:

    ButtonClass string
    Button style. One of: default, blue, indigo, purple, pink, red, orange, yellow, green, teal, cyan, gray, black, white, ghost-dark.
    Created string
    Enabled bool
    Whether the link is rendered.
    GroupName string
    Links with the same group name are rendered as a dropdown.
    Id double
    NetBox id.
    LastUpdated string
    LinkText string
    Jinja2 template for the link text; the object is available as {{ object }}.
    LinkUrl string
    Jinja2 template for the link URL; the object is available as {{ object }}.
    Name string
    NewWindow bool
    Open the link in a new browser window.
    ObjectTypes List<string>
    Object types the link is shown on, as app-labelled content types (dcim.device).
    OwnerId double
    Id of the owner the object is assigned to.
    Url string
    Weight double
    Order within the group. Must be a whole number.
    ButtonClass string
    Button style. One of: default, blue, indigo, purple, pink, red, orange, yellow, green, teal, cyan, gray, black, white, ghost-dark.
    Created string
    Enabled bool
    Whether the link is rendered.
    GroupName string
    Links with the same group name are rendered as a dropdown.
    Id float64
    NetBox id.
    LastUpdated string
    LinkText string
    Jinja2 template for the link text; the object is available as {{ object }}.
    LinkUrl string
    Jinja2 template for the link URL; the object is available as {{ object }}.
    Name string
    NewWindow bool
    Open the link in a new browser window.
    ObjectTypes []string
    Object types the link is shown on, as app-labelled content types (dcim.device).
    OwnerId float64
    Id of the owner the object is assigned to.
    Url string
    Weight float64
    Order within the group. Must be a whole number.
    button_class string
    Button style. One of: default, blue, indigo, purple, pink, red, orange, yellow, green, teal, cyan, gray, black, white, ghost-dark.
    created string
    enabled bool
    Whether the link is rendered.
    group_name string
    Links with the same group name are rendered as a dropdown.
    id number
    NetBox id.
    last_updated string
    link_text string
    Jinja2 template for the link text; the object is available as {{ object }}.
    link_url string
    Jinja2 template for the link URL; the object is available as {{ object }}.
    name string
    new_window bool
    Open the link in a new browser window.
    object_types list(string)
    Object types the link is shown on, as app-labelled content types (dcim.device).
    owner_id number
    Id of the owner the object is assigned to.
    url string
    weight number
    Order within the group. Must be a whole number.
    buttonClass String
    Button style. One of: default, blue, indigo, purple, pink, red, orange, yellow, green, teal, cyan, gray, black, white, ghost-dark.
    created String
    enabled Boolean
    Whether the link is rendered.
    groupName String
    Links with the same group name are rendered as a dropdown.
    id Double
    NetBox id.
    lastUpdated String
    linkText String
    Jinja2 template for the link text; the object is available as {{ object }}.
    linkUrl String
    Jinja2 template for the link URL; the object is available as {{ object }}.
    name String
    newWindow Boolean
    Open the link in a new browser window.
    objectTypes List<String>
    Object types the link is shown on, as app-labelled content types (dcim.device).
    ownerId Double
    Id of the owner the object is assigned to.
    url String
    weight Double
    Order within the group. Must be a whole number.
    buttonClass string
    Button style. One of: default, blue, indigo, purple, pink, red, orange, yellow, green, teal, cyan, gray, black, white, ghost-dark.
    created string
    enabled boolean
    Whether the link is rendered.
    groupName string
    Links with the same group name are rendered as a dropdown.
    id number
    NetBox id.
    lastUpdated string
    linkText string
    Jinja2 template for the link text; the object is available as {{ object }}.
    linkUrl string
    Jinja2 template for the link URL; the object is available as {{ object }}.
    name string
    newWindow boolean
    Open the link in a new browser window.
    objectTypes string[]
    Object types the link is shown on, as app-labelled content types (dcim.device).
    ownerId number
    Id of the owner the object is assigned to.
    url string
    weight number
    Order within the group. Must be a whole number.
    button_class str
    Button style. One of: default, blue, indigo, purple, pink, red, orange, yellow, green, teal, cyan, gray, black, white, ghost-dark.
    created str
    enabled bool
    Whether the link is rendered.
    group_name str
    Links with the same group name are rendered as a dropdown.
    id float
    NetBox id.
    last_updated str
    link_text str
    Jinja2 template for the link text; the object is available as {{ object }}.
    link_url str
    Jinja2 template for the link URL; the object is available as {{ object }}.
    name str
    new_window bool
    Open the link in a new browser window.
    object_types Sequence[str]
    Object types the link is shown on, as app-labelled content types (dcim.device).
    owner_id float
    Id of the owner the object is assigned to.
    url str
    weight float
    Order within the group. Must be a whole number.
    buttonClass String
    Button style. One of: default, blue, indigo, purple, pink, red, orange, yellow, green, teal, cyan, gray, black, white, ghost-dark.
    created String
    enabled Boolean
    Whether the link is rendered.
    groupName String
    Links with the same group name are rendered as a dropdown.
    id Number
    NetBox id.
    lastUpdated String
    linkText String
    Jinja2 template for the link text; the object is available as {{ object }}.
    linkUrl String
    Jinja2 template for the link URL; the object is available as {{ object }}.
    name String
    newWindow Boolean
    Open the link in a new browser window.
    objectTypes List<String>
    Object types the link is shown on, as app-labelled content types (dcim.device).
    ownerId Number
    Id of the owner the object is assigned to.
    url String
    weight Number
    Order within the group. Must be a whole number.

    Package Details

    Repository
    netbox e-breuninger/terraform-provider-netbox
    License
    Notes
    This Pulumi package is based on the netbox Terraform Provider.
    netbox
    Viewing docs for netbox 6.0.0
    published on Wednesday, Nov 4, 2026 by e-breuninger

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial