published on Wednesday, Nov 4, 2026 by e-breuninger
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 dictionarydata "netbox_get_custom_link" "name" {
# arguments
}The following arguments are supported:
getCustomLink Result
The following output properties are available:
- 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 double
- 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 double - Id of the owner the object is assigned to.
- Url string
- Weight double
- Order within the group. Must be a whole number.
- 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 float64
- 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 []string - Object types the link is shown on, as app-labelled content types (dcim.device).
- Owner
Id float64 - Id of the owner the object is assigned to.
- Url string
- Weight float64
- Order within the group. Must be a whole number.
- 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.
- 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.
- group
Name String - Links with the same group name are rendered as a dropdown.
- id Double
- 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 Boolean - 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 Double - Id of the owner the object is assigned to.
- url String
- weight Double
- Order within the group. Must be a whole number.
- 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.
- 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 boolean - Open the link in a new browser window.
- object
Types 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.
- 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.
- 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.
- 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 Boolean - 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.
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netboxTerraform Provider.
published on Wednesday, Nov 4, 2026 by e-breuninger