GET /api/organizations
List all organizations

Beispiele

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": "2019-09-11 14:41:48 UTC",
      "updated_at": "2019-09-11 14:41:48 UTC",
      "id": 114267492,
      "name": "Empty Organization",
      "title": "Empty Organization",
      "description": null
    }
  ]
}

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

search
optional

Ergebnisse filtern

Validations:

  • Must be a String

order
optional

Feld und Reihenfolge sortieren, z.B. ‘id DESC’

Validations:

  • Must be a String

page
optional

Seitennummer, beginnend bei 1

Validations:

  • Must be a number.

per_page
optional

Anzahl der angezeigten Ergebnisse pro Seite

Validations:

  • Must be a number.


GET /api/organizations/:id
Show an organization

Beispiele

GET /api/organizations/447626452-org226
404
{
  "error": {
    "message": "Resource organization not found by id '447626452-org226'"
  }
}

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

show_hidden_parameters
optional

Versteckte Parameter Werte anzeigen

Validations:

  • Must be one of: true, false, 1, 0.

id
verpflichtend

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/organizations
Create an organization

Beispiele

POST /api/organizations
{
  "organization": {
    "name": ""
  }
}
422
{
  "error": {
    "id": null,
    "errors": {
      "name": [
        "can't be blank"
      ]
    },
    "full_messages": [
      "Name can't be blank"
    ]
  }
}

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

organization
verpflichtend

Validations:

  • Must be a Hash

organization[name]
verpflichtend

Validations:

  • Must be a String

organization[description]
optional , nil erlaubt

Validations:

  • Must be a String

organization[user_ids]
optional , nil erlaubt

Benutzerkennungen

Validations:

  • Must be an array of any type

organization[smart_proxy_ids]
optional , nil erlaubt

Smart-Proxy-Kennungen

Validations:

  • Must be an array of any type

organization[compute_resource_ids]
optional , nil erlaubt

Rechenressourcen-Kennungen

Validations:

  • Must be an array of any type

organization[medium_ids]
optional , nil erlaubt

Medium Kennungen

Validations:

  • Must be an array of any type

organization[config_template_ids]
optional , nil erlaubt

Bereitstellungsvorlagen-Kennungen

Validations:

  • Must be an array of any type

organization[ptable_ids]
optional , nil erlaubt

Partitionsvorlagenkennungen

Validations:

  • Must be an array of any type

organization[provisioning_template_ids]
optional , nil erlaubt

Bereitstellungsvorlagen-Kennungen

Validations:

  • Must be an array of any type

organization[domain_ids]
optional , nil erlaubt

Domänen-Kennungen

Validations:

  • Must be an array of any type

organization[realm_ids]
optional , nil erlaubt

Realm-Kennungen

Validations:

  • Must be an array of any type

organization[hostgroup_ids]
optional , nil erlaubt

Hostgruppen-Kennungen

Validations:

  • Must be an array of any type

organization[environment_ids]
optional , nil erlaubt

Umgebungskennungen

Validations:

  • Must be an array of any type

organization[subnet_ids]
optional , nil erlaubt

Subnetz-Kennungen

Validations:

  • Must be an array of any type

organization[parent_id]
optional , nil erlaubt

Übergeordnete ID

Validations:

  • Must be a number.

organization[ignore_types]
optional , nil erlaubt

Auflisten aller Ressourcetypen die automatisch zugewiesen werden

Validations:

  • Must be an array of any type

organization[location_ids]
optional , nil erlaubt

Associated location IDs

Validations:

  • Must be an array of any type


PUT /api/organizations/:id
Update an organization

Beispiele

POST /api/organizations/447626439
{
  "organization": {
    "name": "iMjmeEtMTo",
    "description": "sNpnzwhOEk"
  }
}
201
{
  "select_all_types": [],
  "description": "sNpnzwhOEk",
  "created_at": "2019-09-11 14:41:49 UTC",
  "updated_at": "2019-09-11 14:41:49 UTC",
  "ancestry": null,
  "parent_id": null,
  "parent_name": null,
  "id": 447626439,
  "name": "iMjmeEtMTo",
  "title": "iMjmeEtMTo",
  "users": [],
  "smart_proxies": [],
  "subnets": [],
  "compute_resources": [],
  "media": [],
  "config_templates": [],
  "ptables": [],
  "provisioning_templates": [],
  "domains": [],
  "realms": [],
  "environments": [],
  "hostgroups": [],
  "locations": [],
  "hosts_count": 0,
  "parameters": []
}

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

organization
verpflichtend

Validations:

  • Must be a Hash

organization[name]
optional

Validations:

  • Must be a String

organization[description]
optional , nil erlaubt

Validations:

  • Must be a String

organization[user_ids]
optional , nil erlaubt

Benutzerkennungen

Validations:

  • Must be an array of any type

organization[smart_proxy_ids]
optional , nil erlaubt

Smart-Proxy-Kennungen

Validations:

  • Must be an array of any type

organization[compute_resource_ids]
optional , nil erlaubt

Rechenressourcen-Kennungen

Validations:

  • Must be an array of any type

organization[medium_ids]
optional , nil erlaubt

Medium Kennungen

Validations:

  • Must be an array of any type

organization[config_template_ids]
optional , nil erlaubt

Bereitstellungsvorlagen-Kennungen

Validations:

  • Must be an array of any type

organization[ptable_ids]
optional , nil erlaubt

Partitionsvorlagenkennungen

Validations:

  • Must be an array of any type

organization[provisioning_template_ids]
optional , nil erlaubt

Bereitstellungsvorlagen-Kennungen

Validations:

  • Must be an array of any type

organization[domain_ids]
optional , nil erlaubt

Domänen-Kennungen

Validations:

  • Must be an array of any type

organization[realm_ids]
optional , nil erlaubt

Realm-Kennungen

Validations:

  • Must be an array of any type

organization[hostgroup_ids]
optional , nil erlaubt

Hostgruppen-Kennungen

Validations:

  • Must be an array of any type

organization[environment_ids]
optional , nil erlaubt

Umgebungskennungen

Validations:

  • Must be an array of any type

organization[subnet_ids]
optional , nil erlaubt

Subnetz-Kennungen

Validations:

  • Must be an array of any type

organization[parent_id]
optional , nil erlaubt

Übergeordnete ID

Validations:

  • Must be a number.

organization[ignore_types]
optional , nil erlaubt

Auflisten aller Ressourcetypen die automatisch zugewiesen werden

Validations:

  • Must be an array of any type

organization[location_ids]
optional , nil erlaubt

Associated location IDs

Validations:

  • Must be an array of any type

id
verpflichtend

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


DELETE /api/organizations/:id
Delete an organization

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

id
verpflichtend

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.