NetBox AssignIpAddress

NetBox AssignIpAddress

Certified
Enterprise Edition

Assign an IP address in NetBox

Creates an IP address and assigns it to a device or VM interface. Requires either address or prefixId (allocates the next available when using prefixId). Tags and custom fields are skipped when empty.

yaml
type: io.kestra.plugin.ee.netbox.ipam.AssignIpAddress

Assign a management IP address.

yaml
id: assign_management_ip
namespace: company.team

tasks:
  - id: assign_ip
    type: io.kestra.plugin.ee.netbox.ipam.AssignIpAddress
    url: "{{ secret('NETBOX_URL') }}"
    token: "{{ secret('NETBOX_API_TOKEN') }}"
    address: "10.100.1.45/24"
    status: "active"
    assignedObjectType: "dcim.interface"
    assignedObjectId: "{{ outputs.register_new_switch.primary_interface_id }}"
    dnsName: "switch-01.mgmt.example.com"
    addressDescription: "Management interface IP"
    role: "loopback"
    tags:
      - "management"
      - "monitored"
Properties

NetBox API token

Personal API token sent as Authorization: Token <value> for all requests.

NetBox base URL

Base URL of the NetBox instance (for example: https://netbox.example.com). Must be reachable from the worker; trailing slash is optional.

IP address

Explicit IP address to assign (for example: 10.0.0.10/24); required when prefixId is not provided.

Description

Description of the IP address.

Assigned object ID

Assigned object ID referencing the interface.

Assigned object type

Assigned object type (for example: dcim.interface or virtualisation.vminterface).

Custom fields

Custom field values keyed by NetBox field name; ignored when empty.

DNS name

DNS name to associate with the IP address.

HTTP client configuration

Optional HTTP client overrides (timeouts, TLS, proxies). Uses platform defaults when omitted.

Definitions
allowFailedbooleanstring
Defaultfalse

If true, allow a failed response code (response code >= 400)

allowedResponseCodesarray
SubTypeinteger

List of response code allowed for this request

auth

The authentication to use.

type*object
passwordstring

The password for HTTP basic authentication.

usernamestring

The username for HTTP basic authentication.

type*object
tokenstring

The token for bearer token authentication.

type*object
passwordstring

The password for HTTP Digest authentication.

usernamestring

The username for HTTP Digest authentication.

defaultCharsetstring
DefaultUTF-8

The default charset for the request.

enabledTcpExtendedKeepAlivebooleanstring
Defaulttrue

Whether to enable TCP Keep-Alive extended socket options (TCP_KEEPIDLE, TCP_KEEPINTERVAL, TCP_KEEPCOUNT).

Set to false when running on Windows workers, as these extended socket options are not supported by the Windows JDK and will cause connection failures.

followRedirectsbooleanstring
Defaulttrue

Whether redirects should be followed automatically.

logsarray
SubTypestring
Possible Values
REQUEST_HEADERSREQUEST_BODYRESPONSE_HEADERSRESPONSE_BODY

The enabled log.

proxy

The proxy configuration.

addressstring

The address of the proxy server.

passwordstring

The password for proxy authentication.

portintegerstring

The port of the proxy server.

typestring
DefaultDIRECT
Possible Values
DIRECTHTTPSOCKS

The type of proxy to use.

usernamestring

The username for proxy authentication.

ssl

The SSL request options

insecureTrustAllCertificatesbooleanstring

Whether to disable checking of the remote SSL certificate.

Only applies if no trust store is configured. Note: This makes the SSL connection insecure and should only be used for testing. If you are using a self-signed certificate, set up a trust store instead.

timeout

The timeout configuration.

connectTimeoutstring

The time allowed to establish a connection to the server before failing.

readIdleTimeoutstring
DefaultPT5M

The time allowed for a read connection to remain idle before closing it.

Prefix ID

NetBox prefix ID used to allocate the next available IP when address is omitted.

Role

Role for the IP address (for example: loopback, anycast).

Status

IP address status accepted by NetBox (for example: active, reserved).

SubTypestring

Tags

Tag slugs to associate; ignored when empty.

IP address

Assigned IP address.

IP address ID

Identifier of the assigned IP address returned by NetBox.

IP address URL

API URL of the assigned IP address resource.