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
Organization ID (UUID)
Request body application/json · TrustedNetworkCreateRequest
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.
Responses
Created
TrustedNetworkResponse · 7 fields
Version of the list. Moves on every change, a rename included. An update names the version it read.
Applications whose SSO gate lets this list in. Empty in create and update responses.
5 fields
The application's SSO gate still has the addresses of an earlier revision of the list. Saving the application access applies the current addresses.
Bad Request - an address is not an IP address or range, or a range is too wide
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).
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.