Docs
Live demo
POST/api/v2/organizations/{id}/trusted-networks

Some changes in this call need a fresh second factor. A token cannot give a second factor, so such a change gets 403 auth.api_token_not_allowed. Make it in the console.

Create a named list of client addresses that application SSO gates can let in without sign-in. No application uses a new list until its SSO gate selects it. An administrator with an enrolled second factor must have confirmed it within the re-authentication window (POST /auth/mfa/reauth). An API token makes this change only when it was issued with allow_security_changes.

Parameters

Path1 required of 1
idstringpathrequired

Organization ID (UUID)

Request body application/json · TrustedNetworkCreateRequest

Required2 of 2 fields
namestringrequired
max length 80
addressesarray of stringrequired

IP addresses or CIDR ranges. A single address means /32 or /128. IPv4 ranges are /16 or narrower, IPv6 ranges /32 or narrower. Up to 30 after duplicates are removed.

min items 1 · max items 200

Responses

201

Created

TrustedNetworkResponse · 7 fields
idstring · uuidrequired
namestringrequired
addressesarray of stringrequired
revisioninteger · int64required

Version of the list. Moves on every change, a rename included. An update names the version it read.

created_atstring · date-timerequired
updated_atstring · date-timerequired
applicationsarray of TrustedNetworkApplicationResponserequired

Applications whose SSO gate lets this list in. Empty in create and update responses.

5 fields
target_idstring · uuidrequired
target_namestringrequired
application_idstring · uuidrequired
application_namestringrequired
uses_old_addressesbooleanrequired

The application's SSO gate still has the addresses of an earlier revision of the list. Saving the application access applies the current addresses.

400

Bad Request - an address is not an IP address or range, or a range is too wide

403

Forbidden: the caller's roles do not grant the permission of the operation, the administrator's second factor was not confirmed recently (details.reason=mfa_reauth_required), or the request uses an API token issued without allow_security_changes (details.reason=api_token_security_changes_not_allowed).

409

Conflict: another list of the organization has this name.

Common errors: 401 404 413 429 503 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close