GET /api/organizations 200 { "total": 3, "subtotal": 3, "page": 1, "per_page": 20, "search": null, "sort": { "by": null, "order": null }, "results": [ { "ancestry": null, "parent_id": null, "parent_name": null, "created_at": "2022-03-29 09:13:43 UTC", "updated_at": "2022-03-29 09:13:43 UTC", "id": 114267492, "name": "Empty Organization", "title": "Empty Organization", "description": null }, { "ancestry": null, "parent_id": null, "parent_name": null, "created_at": "2022-03-29 09:13:43 UTC", "updated_at": "2022-03-29 09:13:43 UTC", "id": 447626438, "name": "Organization 1", "title": "Organization 1", "description": null }, { "ancestry": null, "parent_id": null, "parent_name": null, "created_at": "2022-03-29 09:13:43 UTC", "updated_at": "2022-03-29 09:13:43 UTC", "id": 61304186, "name": "Organization 2", "title": "Organization 2", "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:
|
search optional |
filter results Validations:
|
order optional |
Sort and order by a searchable field, e.g. ‘ Maruku could not parse this XML/HTML: <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 |
---|---|---|
description | text | |
id | integer | |
name | string | |
organization_id | integer | |
title | string |
GET /api/organizations/447626459 200 { "select_all_types": [], "description": null, "created_at": "2022-03-29 08:57:00 UTC", "updated_at": "2022-03-29 08:57:00 UTC", "ancestry": null, "parent_id": null, "parent_name": null, "id": 447626459, "name": "org305", "title": "org305", "users": [], "smart_proxies": [], "subnets": [], "compute_resources": [], "media": [], "ptables": [], "provisioning_templates": [], "domains": [], "realms": [], "hostgroups": [], "locations": [], "hosts_count": 0, "parameters": [ { "priority": 10, "created_at": "2022-03-29 08:57:00 UTC", "updated_at": "2022-03-29 08:57:00 UTC", "id": 767575262, "name": "foo", "parameter_type": "string", "value": "*****" } ], "deprecations": { "environments": "Environments got deprecated from this endpoint." } }
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:
|
show_hidden_parameters optional |
Display hidden parameter values Validations:
|
id required |
Validations:
|
POST /api/organizations { "organization": { "name": "" } } 422 { "error": { "id": null, "errors": { "name": [ "can't be blank" ] }, "full_messages": [ "Name can't be blank" ] } }
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:
|
organization required |
Validations:
|
organization[name] required |
Validations:
|
organization[description] optional , nil allowed |
Validations:
|
organization[user_ids] optional , nil allowed |
User IDs Validations:
|
organization[smart_proxy_ids] optional , nil allowed |
Smart proxy IDs Validations:
|
organization[compute_resource_ids] optional , nil allowed |
Compute resource IDs Validations:
|
organization[medium_ids] optional , nil allowed |
Medium IDs Validations:
|
organization[ptable_ids] optional , nil allowed |
Partition template IDs Validations:
|
organization[provisioning_template_ids] optional , nil allowed |
Provisioning template IDs Validations:
|
organization[domain_ids] optional , nil allowed |
Domain IDs Validations:
|
organization[realm_ids] optional , nil allowed |
Realm IDs Validations:
|
organization[hostgroup_ids] optional , nil allowed |
Host group IDs Validations:
|
organization[environment_ids] optional , nil allowed |
Environment IDs Validations:
|
organization[subnet_ids] optional , nil allowed |
Subnet IDs Validations:
|
organization[parent_id] optional , nil allowed |
Parent ID Validations:
|
organization[ignore_types] optional , nil allowed |
List of resources types that will be automatically associated Validations:
|
organization[location_ids] optional , nil allowed |
Associated location IDs Validations:
|
POST /api/organizations/447626448 { "organization": { "name": "PkRkdXALlyoBmgQKLJoW" } } 201 { "select_all_types": [], "description": null, "created_at": "2022-03-29 09:14:07 UTC", "updated_at": "2022-03-29 09:14:07 UTC", "ancestry": null, "parent_id": null, "parent_name": null, "id": 447626448, "name": "PkRkdXALlyoBmgQKLJoW", "title": "PkRkdXALlyoBmgQKLJoW", "users": [], "smart_proxies": [], "subnets": [], "compute_resources": [], "media": [], "ptables": [], "provisioning_templates": [], "domains": [], "realms": [], "hostgroups": [], "locations": [], "hosts_count": 0, "parameters": [], "deprecations": { "environments": "Environments got deprecated from this endpoint." } }
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:
|
organization required |
Validations:
|
organization[name] optional |
Validations:
|
organization[description] optional , nil allowed |
Validations:
|
organization[user_ids] optional , nil allowed |
User IDs Validations:
|
organization[smart_proxy_ids] optional , nil allowed |
Smart proxy IDs Validations:
|
organization[compute_resource_ids] optional , nil allowed |
Compute resource IDs Validations:
|
organization[medium_ids] optional , nil allowed |
Medium IDs Validations:
|
organization[ptable_ids] optional , nil allowed |
Partition template IDs Validations:
|
organization[provisioning_template_ids] optional , nil allowed |
Provisioning template IDs Validations:
|
organization[domain_ids] optional , nil allowed |
Domain IDs Validations:
|
organization[realm_ids] optional , nil allowed |
Realm IDs Validations:
|
organization[hostgroup_ids] optional , nil allowed |
Host group IDs Validations:
|
organization[environment_ids] optional , nil allowed |
Environment IDs Validations:
|
organization[subnet_ids] optional , nil allowed |
Subnet IDs Validations:
|
organization[parent_id] optional , nil allowed |
Parent ID Validations:
|
organization[ignore_types] optional , nil allowed |
List of resources types that will be automatically associated Validations:
|
organization[location_ids] optional , nil allowed |
Associated location IDs Validations:
|
id required |
Validations:
|
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:
|