Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
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
published on Wednesday, Nov 4, 2026 by e-breuninger
Lists custom_link objects matching the given filters.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const test = netbox.getCustomLinks({
filters: [{
name: "name",
value: "test-custom_link",
}],
});
import pulumi
import pulumi_netbox as netbox
test = netbox.get_custom_links(filters=[{
"name": "name",
"value": "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.GetCustomLinks(ctx, &netbox.GetCustomLinksArgs{
Filters: []netbox.GetCustomLinksFilter{
{
Name: "name",
Value: "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.GetCustomLinks.Invoke(new()
{
Filters = new[]
{
new Netbox.Inputs.GetCustomLinksFilterInputArgs
{
Name = "name",
Value = "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.GetCustomLinksArgs;
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.getCustomLinks(GetCustomLinksArgs.builder()
.filters(GetCustomLinksFilterArgs.builder()
.name("name")
.value("test-custom_link")
.build())
.build());
}
}
variables:
test:
fn::invoke:
function: netbox:getCustomLinks
arguments:
filters:
- name: name
value: test-custom_link
Example coming soon!
Using getCustomLinks
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 getCustomLinks(args: GetCustomLinksArgs, opts?: InvokeOptions): Promise<GetCustomLinksResult>
function getCustomLinksOutput(args: GetCustomLinksOutputArgs, opts?: InvokeOutputOptions): Output<GetCustomLinksResult>def get_custom_links(filters: Optional[Sequence[GetCustomLinksFilter]] = None,
limit: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetCustomLinksResult
def get_custom_links_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetCustomLinksFilterArgs]]]] = None,
limit: pulumi.Input[Optional[float]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetCustomLinksResult]func GetCustomLinks(ctx *Context, args *GetCustomLinksArgs, opts ...InvokeOption) (*GetCustomLinksResult, error)
func GetCustomLinksOutput(ctx *Context, args *GetCustomLinksOutputArgs, opts ...InvokeOption) GetCustomLinksResultOutput> Note: This function is named GetCustomLinks in the Go SDK.
public static class GetCustomLinks
{
public static Task<GetCustomLinksResult> InvokeAsync(GetCustomLinksArgs args, InvokeOptions? opts = null)
public static Output<GetCustomLinksResult> Invoke(GetCustomLinksInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetCustomLinksResult> Invoke(GetCustomLinksInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetCustomLinksResult> getCustomLinks(GetCustomLinksArgs args, InvokeOptions options)
public static Output<GetCustomLinksResult> getCustomLinks(GetCustomLinksArgs args, InvokeOptions options)
public static Output<GetCustomLinksResult> getCustomLinks(GetCustomLinksArgs args, InvokeOutputOptions options)
fn::invoke:
function: netbox:index/getCustomLinks:getCustomLinks
arguments:
# arguments dictionarydata "netbox_get_custom_links" "name" {
# arguments
}The following arguments are supported:
- Filters
List<Get
Custom Links Filter> - Query filters, sent as API list parameters. Supported names: enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, ownerid__n. Repeating a name sends that parameter once per value.
- Limit double
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- Filters
[]Get
Custom Links Filter - Query filters, sent as API list parameters. Supported names: enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, ownerid__n. Repeating a name sends that parameter once per value.
- Limit float64
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- filters list(object)
- Query filters, sent as API list parameters. Supported names: enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, ownerid__n. Repeating a name sends that parameter once per value.
- limit number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- filters
List<Get
Custom Links Filter> - Query filters, sent as API list parameters. Supported names: enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, ownerid__n. Repeating a name sends that parameter once per value.
- limit Double
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- filters
Get
Custom Links Filter[] - Query filters, sent as API list parameters. Supported names: enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, ownerid__n. Repeating a name sends that parameter once per value.
- limit number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- filters
Sequence[Get
Custom Links Filter] - Query filters, sent as API list parameters. Supported names: enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, ownerid__n. Repeating a name sends that parameter once per value.
- limit float
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- filters List<Property Map>
- Query filters, sent as API list parameters. Supported names: enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, ownerid__n. Repeating a name sends that parameter once per value.
- limit Number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
getCustomLinks Result
The following output properties are available:
- Custom
Links List<GetCustom Links Custom Link> - The matching custom*links.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Custom Links Filter> - Query filters, sent as API list parameters. Supported names: enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, ownerid__n. Repeating a name sends that parameter once per value.
- Limit double
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- Custom
Links []GetCustom Links Custom Link - The matching custom*links.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Custom Links Filter - Query filters, sent as API list parameters. Supported names: enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, ownerid__n. Repeating a name sends that parameter once per value.
- Limit float64
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- custom_
links list(object) - The matching custom*links.
- id string
- The provider-assigned unique ID for this managed resource.
- filters list(object)
- Query filters, sent as API list parameters. Supported names: enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, ownerid__n. Repeating a name sends that parameter once per value.
- limit number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- custom
Links List<GetCustom Links Custom Link> - The matching custom*links.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Custom Links Filter> - Query filters, sent as API list parameters. Supported names: enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, ownerid__n. Repeating a name sends that parameter once per value.
- limit Double
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- custom
Links GetCustom Links Custom Link[] - The matching custom*links.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Custom Links Filter[] - Query filters, sent as API list parameters. Supported names: enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, ownerid__n. Repeating a name sends that parameter once per value.
- limit number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- custom_
links Sequence[GetCustom Links Custom Link] - The matching custom*links.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[Get
Custom Links Filter] - Query filters, sent as API list parameters. Supported names: enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, ownerid__n. Repeating a name sends that parameter once per value.
- limit float
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- custom
Links List<Property Map> - The matching custom*links.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- Query filters, sent as API list parameters. Supported names: enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, ownerid__n. Repeating a name sends that parameter once per value.
- limit Number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
Supporting Types
GetCustomLinksCustomLink
- 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.
GetCustomLinksFilter
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netboxTerraform Provider.
netbox
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
published on Wednesday, Nov 4, 2026 by e-breuninger