Beispiele

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

Parameter

Parametername Beschreibung
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

location
verpflichtend

Validations:

  • Must be a Hash

location[name]
verpflichtend

Validations:

  • Must be a String

location[description]
optional , nil erlaubt

Validations:

  • Must be a String

location[user_ids]
optional , nil erlaubt

Benutzerkennungen

Validations:

  • Must be an array of any type

location[smart_proxy_ids]
optional , nil erlaubt

Smart-Proxy-Kennungen

Validations:

  • Must be an array of any type

location[compute_resource_ids]
optional , nil erlaubt

Rechenressourcen-Kennungen

Validations:

  • Must be an array of any type

location[medium_ids]
optional , nil erlaubt

Medium Kennungen

Validations:

  • Must be an array of any type

location[config_template_ids]
optional , nil erlaubt

Bereitstellungsvorlagen-Kennungen

Validations:

  • Must be an array of any type

location[ptable_ids]
optional , nil erlaubt

Partitionsvorlagenkennungen

Validations:

  • Must be an array of any type

location[provisioning_template_ids]
optional , nil erlaubt

Bereitstellungsvorlagen-Kennungen

Validations:

  • Must be an array of any type

location[domain_ids]
optional , nil erlaubt

Domänen-Kennungen

Validations:

  • Must be an array of any type

location[realm_ids]
optional , nil erlaubt

Realm-Kennungen

Validations:

  • Must be an array of any type

location[hostgroup_ids]
optional , nil erlaubt

Hostgruppen-Kennungen

Validations:

  • Must be an array of any type

location[environment_ids]
optional , nil erlaubt

Umgebungskennungen

Validations:

  • Must be an array of any type

location[subnet_ids]
optional , nil erlaubt

Subnetz-Kennungen

Validations:

  • Must be an array of any type

location[parent_id]
optional , nil erlaubt

√úbergeordnete ID

Validations:

  • Must be a number.

location[ignore_types]
optional , nil erlaubt

Auflisten aller Ressourcetypen die automatisch zugewiesen werden

Validations:

  • Must be an array of any type

location[organization_ids]
optional , nil erlaubt

Associated organization IDs

Validations:

  • Must be an array of any type