GET /api/organizations
200
{
"total": 3,
"subtotal": 1,
"page": 1,
"per_page": 20,
"search": "name = \"Empty Organization\"",
"sort": {
"by": null,
"order": null
},
"results": [
{
"ancestry": null,
"parent_id": null,
"parent_name": null,
"created_at": "2018-07-24 12:43:00 UTC",
"updated_at": "2018-07-24 12:43:00 UTC",
"id": 114267492,
"name": "Empty Organization",
"title": "Empty Organization",
"description": null
}
]
}
| 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 field and order, eg. ‘id DESC’ Validations:
|
|
page optional |
paginate results Validations:
|
|
per_page optional |
number of entries per request Validations:
|
GET /api/organizations/447626439-org1
404
{
"error": {
"message": "Resource organization not found by id '447626439-org1'"
}
}
| Param name | Description |
|---|---|
|
location_id optional |
Scope by locations Validations:
|
|
organization_id optional |
Scope by organizations Validations:
|
|
show_hidden_parameters optional |
Display hidden parameter values Validations:
|
|
id required |
Validations:
|
POST /api/organizations
{
"organization": {
"name": "Empty Organization"
}
}
422
{
"error": {
"id": null,
"errors": {
"name": [
"has already been taken"
]
},
"full_messages": [
"Name has already been taken"
]
}
}
| Param name | Description |
|---|---|
|
location_id optional |
Scope by locations Validations:
|
|
organization_id optional |
Scope by organizations 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[config_template_ids] optional , nil allowed |
Provisioning template 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:
|
PUT /api/organizations/447626442
{
"organization": {
"organization_parameters_attributes": [
{
"name": "foo",
"value": "new_value"
}
]
}
}
200
{
"select_all_types": [],
"description": null,
"created_at": "2018-07-24 12:43:01 UTC",
"updated_at": "2018-07-24 12:43:01 UTC",
"ancestry": null,
"parent_id": null,
"parent_name": null,
"id": 447626442,
"name": "org4",
"title": "org4",
"users": [],
"smart_proxies": [],
"subnets": [],
"compute_resources": [],
"media": [],
"config_templates": [],
"ptables": [],
"provisioning_templates": [],
"domains": [],
"realms": [],
"environments": [],
"hostgroups": [],
"locations": [],
"hosts_count": 0,
"parameters": [
{
"priority": 10,
"created_at": "2018-07-24 12:43:01 UTC",
"updated_at": "2018-07-24 12:43:01 UTC",
"id": 767575240,
"name": "foo",
"value": "new_value"
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Scope by locations Validations:
|
|
organization_id optional |
Scope by organizations 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[config_template_ids] optional , nil allowed |
Provisioning template 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:
|
|
id required |
Validations:
|
| Param name | Description |
|---|---|
|
location_id optional |
Scope by locations Validations:
|
|
organization_id optional |
Scope by organizations Validations:
|
|
id required |
Validations:
|