GET /api/locations/255093256/realms 200 { "total": 2, "subtotal": 2, "page": 1, "per_page": 20, "search": null, "sort": { "by": null, "order": null }, "results": [ { "name": "myrealm.net", "realm_type": "FreeIPA", "created_at": "2018-11-16 10:02:08 UTC", "updated_at": "2018-11-16 10:02:08 UTC", "id": 664044182, "realm_proxy_id": 982965213, "realm_proxy_name": "Realm Proxy", "realm_proxy": { "name": "Realm Proxy", "id": 982965213, "url": "http://else.where:1337" } }, { "name": "yourrealm.net", "realm_type": "FreeIPA", "created_at": "2018-11-16 10:02:08 UTC", "updated_at": "2018-11-16 10:02:08 UTC", "id": 936160439, "realm_proxy_id": 982965213, "realm_proxy_name": "Realm Proxy", "realm_proxy": { "name": "Realm Proxy", "id": 982965213, "url": "http://else.where:1337" } } ] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
search optional |
filter results Validations:
|
order optional |
Sort and order by a searchable field, e.g. '<field> DESC' Validations:
|
page optional |
Page number, starting at 1 Validations:
|
per_page optional |
Number of results per page to return, 'all' to return all results Validations:
|
Field name | Type | Possible values |
---|---|---|
id | integer | |
location | string | |
location_id | integer | |
name | string | |
organization | string | |
organization_id | integer | |
type | string |
GET /api/realms/myrealm.net 200 { "name": "myrealm.net", "realm_type": "FreeIPA", "created_at": "2018-11-16 10:02:08 UTC", "updated_at": "2018-11-16 10:02:08 UTC", "id": 664044182, "realm_proxy_id": 982965213, "realm_proxy_name": "Realm Proxy", "realm_proxy": { "name": "Realm Proxy", "id": 982965213, "url": "http://else.where:1337" }, "locations": [ { "id": 255093256, "name": "Location 1", "title": "Location 1", "description": null } ], "organizations": [ { "id": 447626438, "name": "Organization 1", "title": "Organization 1", "description": null } ] }
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
id required |
Numerical ID or realm name Validations:
|
The name field is used for the name of the realm.
POST /api/realms { "realm": { "name": "realm.net", "realm_proxy_id": "982965213-Realm Proxy", "realm_type": "FreeIPA" } } 201 { "name": "realm.net", "realm_type": "FreeIPA", "created_at": "2018-11-16 10:03:24 UTC", "updated_at": "2018-11-16 10:03:24 UTC", "id": 936160440, "realm_proxy_id": 982965213, "realm_proxy_name": "Realm Proxy", "realm_proxy": { "name": "Realm Proxy", "id": 982965213, "url": "http://else.where:1337" }, "locations": [], "organizations": [] }
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
realm required |
Validations:
|
realm[name] required |
The realm name, e.g. EXAMPLE.COM Validations:
|
realm[realm_proxy_id] required , nil allowed |
Proxy ID to use within this realm Validations:
|
realm[realm_type] required |
Realm type, e.g. FreeIPA or Active Directory Validations:
|
realm[location_ids] optional , nil allowed |
REPLACE locations with given ids Validations:
|
realm[organization_ids] optional , nil allowed |
REPLACE organizations with given ids. Validations:
|
PUT /api/realms/90728897 { "realm": { "name": "realm.new" } } 200 { "name": "realm.new", "realm_type": "FreeIPA", "created_at": "2018-11-16 10:02:08 UTC", "updated_at": "2018-11-16 10:03:24 UTC", "id": 90728897, "realm_proxy_id": 982965213, "realm_proxy_name": "Realm Proxy", "realm_proxy": { "name": "Realm Proxy", "id": 982965213, "url": "http://else.where:1337" }, "locations": [], "organizations": [] }
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
id required |
Validations:
|
realm required |
Validations:
|
realm[name] optional |
The realm name, e.g. EXAMPLE.COM Validations:
|
realm[realm_proxy_id] optional , nil allowed |
Proxy ID to use within this realm Validations:
|
realm[realm_type] optional |
Realm type, e.g. FreeIPA or Active Directory Validations:
|
realm[location_ids] optional , nil allowed |
REPLACE locations with given ids Validations:
|
realm[organization_ids] optional , nil allowed |
REPLACE organizations with given ids. Validations:
|
DELETE /api/realms/myrealm.net { "realm": {} } 200 { "id": 664044182, "name": "myrealm.net", "realm_type": "FreeIPA", "realm_proxy_id": 982965213, "created_at": "2018-11-16T10:02:08.291Z", "updated_at": "2018-11-16T10:02:08.291Z" }
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
id required |
Validations:
|