Esempi

PUT /api/ptables/1007981787-ptable201
{
  "ptable": {
    "audit_comment": "aha",
    "template": "tmp"
  }
}
200
{
  "layout": "tmp",
  "locked": false,
  "os_family": "Redhat",
  "created_at": "2019-09-11 14:34:42 UTC",
  "updated_at": "2019-09-11 14:34:42 UTC",
  "name": "ptable201",
  "id": 1007981787,
  "operatingsystems": [],
  "locations": [
    {
      "id": 255093256,
      "name": "Location 1",
      "title": "Location 1",
      "description": null
    }
  ],
  "organizations": [
    {
      "id": 447626438,
      "name": "Organization 1",
      "title": "Organization 1",
      "description": null
    }
  ]
}

Parametri

Nome parametro Descrizione
location_id
opzionale

Scopo per posizioni

Validations:

  • Must be a Integer

organization_id
opzionale

Scopo per organizzazioni

Validations:

  • Must be a Integer

id
richiesto

Validations:

  • Must be a String

ptable
richiesto

Validations:

  • Must be a Hash

ptable[name]
opzionale

Validations:

  • Must be a String

ptable[layout]
opzionale

Validations:

  • Must be a String

ptable[snippet]
opzionale , consentito nil

Validations:

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

ptable[audit_comment]
opzionale , consentito nil

Validations:

  • Must be a String

ptable[locked]
opzionale , consentito nil

Indica se il template รจ stato bloccato per la modifica

Validations:

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

ptable[os_family]
opzionale , consentito nil

Validations:

  • Must be a String

ptable[operatingsystem_ids]
opzionale , consentito nil

Array of operating system IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[host_ids]
opzionale , consentito nil

Array of host IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[hostgroup_ids]
opzionale , consentito nil

Array of host group IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[location_ids]
opzionale , consentito nil

SOSTITUIRE le posizioni con gli id dati

Validations:

  • Must be an array of any type

ptable[organization_ids]
opzionale , consentito nil

SOSTITUIRE le organizzazioni con gli id dati

Validations:

  • Must be an array of any type