@shadmanZero/tenantos-api
    Preparing search index...

    Class PXEDisklayoutsResource

    PXE Disklayouts management resource

    Hierarchy

    • BaseResource
      • PXEDisklayoutsResource
    Index

    Constructors

    Properties

    Methods

    • Parameters

      • data: {
            allow_for_dedicated?: boolean;
            allow_for_vps?: boolean;
            disklayout?: string;
            dont_offer_if_has_tag?: string[];
            dont_offer_if_user_has_role?: string[];
            hw_raid_handling?: string;
            isDisabled?: boolean;
            min_disks?: number;
            name: string;
            offer_if_has_tag?: string[];
            offer_if_user_has_role?: string[];
            tags: string[];
        }
        • Optionalallow_for_dedicated?: boolean
          false
          
        • Optionalallow_for_vps?: boolean
          true
          
        • Optionaldisklayout?: string

          The kickstart or preseed configuration.

          autopart --type=lvm
          
        • Optionaldont_offer_if_has_tag?: string[]
          [
          "odit"
          ]
        • Optionaldont_offer_if_user_has_role?: string[]
          [
          null
          ]
        • Optionalhw_raid_handling?: string

          Must be one of always_offer, only_offer_if_hw_raid, or dont_offer_if_hw_raid.

          dont_offer_if_hw_raid
          
        • OptionalisDisabled?: boolean
          true
          
        • Optionalmin_disks?: number

          The profile will only be offered if the server has the specificated minimum amount of disks. Leave empty to always offer.

          3
          
        • name: string
          accusamus
          
        • Optionaloffer_if_has_tag?: string[]
          [
          "rerum"
          ]
        • Optionaloffer_if_user_has_role?: string[]
          [
          null
          ]
        • tags: string[]

          Must have at least 1 item. The disk layout is linked to the operating systems via tags.

          [
          "kickstart"
          ]

      Returns Promise<PXEDisklayout>

    • Parameters

      • id: number

      Returns Promise<void>

    • Validate that an ID is a positive integer

      Parameters

      • id: number
      • resourceName: string = 'Resource'

      Returns void

    • Validate required string field

      Parameters

      • value: string
      • fieldName: string

      Returns void