Available on Enterprise plans as an add-on.
Turning static IPs on
Turn on the Static IPs toggle on the source’s detail page in the Console, or setnetwork on POST /sources or PATCH /sources/{source_id}:
network is always returned on the source. A source using static IPs also carries the range under network.static_ips:
"network": { "type": "default" }. Omitting network on create gives the source Deck’s default network, and omitting it on update leaves the setting unchanged.
Getting the range
The range is available from the Console and the API. In the Console, it appears on the source’s detail page once static IPs are on. To get it before you turn static IPs on, so the source’s allowlist is in place before the first task run, callGET /static-ips:
cidr is the range to allowlist, and it’s the same for every source in your organization. Allowlist the whole range, since the specific addresses your runs use can change at any time. cidr is omitted until static IPs are enabled for your organization.
Range changes
Deck gives 30 days’ notice before changing the range. From the start of the notice window, the API returns the new range, and the old range keeps working until the window closes. A session never changes IP address during its lifetime.Errors
Any of the following returnsinvalid_field_value:
- A
network.typeother thandefaultorstatic_ips. network.static_ipson create or update. The range is read-only.- A
session_idfrom a session that didn’t start on static IPs, used for a static-IP source. Start a new session instead.
network.type to static_ips before static IPs are enabled for your organization returns feature_not_available.