Examples

POST /api/ptables/1007981716-ptable152/clone
{
  "ptable": {
    "name": "MyClone"
  }
}
201
{
  "name": "MyClone",
  "id": 1007981716,
  "template": "zerombr\nclearpart --all    --initlabel\npart /boot --fstype ext3 --size=<%= 10 * 10 %> --asprimary\npart /     --fstype ext3 --size=1024 --grow\npart swap  --recommended",
  "snippet": false,
  "template_kind_id": null,
  "created_at": "2022-09-06T14:34:32.999Z",
  "updated_at": "2022-09-06T14:34:33.020Z",
  "locked": false,
  "default": false,
  "vendor": null,
  "os_family": "Redhat",
  "description": null
}

Params

Param name Description
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

id
required

Validations:

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

ptable
required

Validations:

  • Must be a Hash

ptable[name]
required

template name

Validations:

  • Must be a String