Создание профиля установки

Создание профиля установки ОС с указанными параметрами.

POST /v1/installation_profiles

Параметры тела запроса

Пример запроса

{
  "name": "Installation profile name example",
  "description": "Description or commentary",
  "installationDistroId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "kernelOptions": "netcfg/choose_interface=auto",
  "provisioningMethodIds": [
    "pxe"
  ],
  "postInstallTemplateIds": [
    "bbd48136-54ad-469b-9409-e2276ab2a7ee"
  ],
  "autoinstallTemplateId": "2806b75f-1b46-4529-b978-84c713b09dbf"
}

Тип контента

application/json

Ответы

Код Сообщение Тип данных / объект схемы (DTO) Пример

200

Созданный профиль установки

{
  "installationProfileId": "4371c2ca-5f3d-46cc-959a-a4daa8581434",
  "name": "Installation profile name example",
  "description": "Description or commentary",
  "installationDistro": {
    "installationDistroId": "e750fe40-5902-4e4d-9fd2-b587139946f4",
    "name": "debian-bookworm-x86-84",
    "repositoryUrl": "http://mirror.centos.org/centos-7/7/os/x86_64/",
    "kernel": "images/pxeboot/vmlinuz",
    "initrd": "images/pxeboot/initrd.img"
  },
  "kernelOptions": "netcfg/choose_interface=auto",
  "provisioningMethods": [
    {
      "provisioningMethodId": "bootdisknetinst",
      "name": "Boot disk and network"
    }
  ],
  "postInstallTemplates": [
    {
      "templateId": "a480re55-9988-7a7d-9fd2-b587139946f5",
      "templateCategory": {
        "templateCategoryId": "autoinstall",
        "name": "Файл ответов"
      },
      "name": "Template name"
    }
  ],
  "autoinstallTemplate": {
    "templateId": "a480re55-9988-7a7d-9fd2-b587139946f5",
    "templateCategory": {
      "templateCategoryId": "autoinstall",
      "name": "Файл ответов"
    },
    "name": "Template name"
  },
  "createdAt": "2024-03-18T14:53:08.865312Z",
  "createdBy": "inno.tech",
  "updatedAt": "2024-03-18T14:53:08.865312Z",
  "updatedBy": "inno.tech"
}

400

Incorrect request params (некорректные параметры запроса)

{
  "code": "validation_failed",
  "message": "createInstallationProfileId.displayName: size must be between 3 and 256"
}

401

Ошибка аутентификации

404

Объект не найден

{
  "code": "object_not_found",
  "message": "string"
}

500

Внутренняя ошибка

{
  "code": "internal_error",
  "message": "string"
}