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

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.

Replace the name and addresses of a network list. Changed addresses move the revision. SSO gates that selected the list keep the earlier addresses on their cluster and are listed with uses_old_addresses until each application's access is saved again. The request names the revision it was read at. An API token makes this change only when it was issued with allow_security_changes.

Parameters

Path2 required of 2
idstringpathrequired

Organization ID (UUID)

network_idstringpathrequired

Network list ID (UUID)

Request body application/json · TrustedNetworkUpdateRequest

Required3 of 3 fields
namestringrequired
max length 80
addressesarray of stringrequired
min items 1 · max items 200
revisioninteger · int64required

The revision the list was read at. A save over another revision is refused with 409 and details.error_code version_mismatch.

min 1

Responses

200

OK

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 has this name, or the list was saved since the revision in the request (details.error_code version_mismatch).

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

↑ ↓ to moveEnter to openEsc to close