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

    Class PXEProfilesResource

    PXE Profiles management resource

    Hierarchy

    • BaseResource
      • PXEProfilesResource
    Index

    Constructors

    Properties

    Methods

    • Parameters

      • pxeProfileId: number

      Returns Promise<void>

    • Parameters

      • data: {
            additionalDriversUrl?: string;
            allow_for_dedicated?: boolean;
            allow_for_vps?: boolean;
            allow_set_hostname?: boolean;
            allow_ssh_keys?: boolean;
            autoInstallTemplate?: string;
            cacheDirectory: string;
            configure_all_ipvfour_ask_user?: boolean;
            configure_all_ipvfour_enforce?: boolean;
            configure_all_ipvsix_ask_user?: boolean;
            configure_all_ipvsix_enforce?: boolean;
            configure_ipvfour_even_if_outside_of_gateway?: boolean;
            customFirstBoot?: string;
            customPostScript?: string;
            default_disklayout_template?: number;
            default_run_scripts?: string[];
            default_run_scripts_hide_others?: boolean;
            defaultDiskLayout?: string;
            dont_offer_if_has_tag?: string[];
            dont_offer_if_user_has_role?: string[];
            enforced_default_disklayout_template?: boolean;
            enforced_default_run_scripts?: boolean;
            fallback_to_default_disklayout_if_unset?: boolean;
            httpdirectory?: string;
            ipxe_bios_file?: string;
            ipxe_efi_file?: string;
            isDisabled?: boolean;
            keep_dhcp_minutes?: number;
            language?: string;
            licensekey?: string;
            mark_installation_completed_event?: string;
            mirrorUrl?: string;
            networkConfigMode?: string;
            offer_if_has_tag?: string[];
            offer_if_user_has_role?: string[];
            osName: string;
            packages?: string;
            pxe_enable_comboot?: boolean;
            pxe_file_caching_policy?: string;
            pxeConfig: string;
            pxeType: string;
            set_root_password?: boolean;
            tags: string[];
            timezone?: string;
            updateServerHardwareInventory?: boolean;
            version?: string;
            windows_activation_key?: string;
            windows_bypass_system_requirements_check?: boolean;
            windows_key_location_specialize?: boolean;
            windows_key_location_userdata?: boolean;
            windows_skip_oobe?: boolean;
            windows_use_empty_activation_key?: boolean;
        }
        • OptionaladditionalDriversUrl?: string

          Must be a valid URL.

          https://domain.com/drivers
          
        • Optionalallow_for_dedicated?: boolean
          false
          
        • Optionalallow_for_vps?: boolean
          true
          
        • Optionalallow_set_hostname?: boolean
          true
          
        • Optionalallow_ssh_keys?: boolean
          true
          
        • OptionalautoInstallTemplate?: string

          The answer file for the OS installer.

          network --bootproto=static
          
        • cacheDirectory: string

          The OS files will be stored in this directory.

          centos8
          
        • Optionalconfigure_all_ipvfour_ask_user?: boolean
          false
          
        • Optionalconfigure_all_ipvfour_enforce?: boolean
          true
          
        • Optionalconfigure_all_ipvsix_ask_user?: boolean
          true
          
        • Optionalconfigure_all_ipvsix_enforce?: boolean
          false
          
        • Optionalconfigure_ipvfour_even_if_outside_of_gateway?: boolean
          true
          
        • OptionalcustomFirstBoot?: string

          Script will be executed on first operating system boot.

          touch /root/123
          
        • OptionalcustomPostScript?: string

          Script will be executed on after the installation has been completed, but within the installer environment.

          touch /root/123
          
        • Optionaldefault_disklayout_template?: number
          4
          
        • Optionaldefault_run_scripts?: string[]
          [
          "nulla"
          ]
        • Optionaldefault_run_scripts_hide_others?: boolean
          false
          
        • OptionaldefaultDiskLayout?: string

          optional The disk layout configuration.

          autopart --type=lvm
          
        • Optionaldont_offer_if_has_tag?: string[]
          [
          "ex"
          ]
        • Optionaldont_offer_if_user_has_role?: string[]
          [
          null
          ]
        • Optionalenforced_default_disklayout_template?: boolean
          false
          
        • Optionalenforced_default_run_scripts?: boolean
          true
          
        • Optionalfallback_to_default_disklayout_if_unset?: boolean
          false
          
        • Optionalhttpdirectory?: string
          vel
          
        • Optionalipxe_bios_file?: string
          facere
          
        • Optionalipxe_efi_file?: string
          atque
          
        • OptionalisDisabled?: boolean
          true
          
        • Optionalkeep_dhcp_minutes?: number

          Must be at least 1. Must not be greater than 6000.

          4340
          
        • Optionallanguage?: string
          sequi
          
        • Optionallicensekey?: string
          voluptatem
          
        • Optionalmark_installation_completed_event?: string

          Must be one of afterBaseInstall, firstBootBeforeScriptExecution, firstBootAfterScriptExecution, or onFirstPxeFileAccess.

          firstBootAfterScriptExecution
          
        • OptionalmirrorUrl?: string

          The URL to the OS mirror.

          http://mirror.fra10.de.leaseweb.net/centos/8-stream/BaseOS/x86_64/os
          
        • OptionalnetworkConfigMode?: string

          Must be a valid network mode.

          default
          
        • Optionaloffer_if_has_tag?: string[]
          [
          "aut"
          ]
        • Optionaloffer_if_user_has_role?: string[]
          [
          null
          ]
        • osName: string
          nobis
          
        • Optionalpackages?: string

          A list of packages which should be installed.

          kexec-tools
          
        • Optionalpxe_enable_comboot?: boolean
          true
          
        • Optionalpxe_file_caching_policy?: string

          Must be one of smartCaching, dailyCleanup, clearBeforeInstallation, or keepAsLongAsPossible.

          keepAsLongAsPossible
          
        • pxeConfig: string

          The iPXE boot configuration.

          #!ipxe
          
        • pxeType: string

          Must be one of preseed,kickstart,autoinstall,windows,grml,vmware.

          kickstart
          
        • Optionalset_root_password?: boolean
          true
          
        • tags: string[]
          [
          "kickstart "
          ]
        • Optionaltimezone?: string
          sed
          
        • OptionalupdateServerHardwareInventory?: boolean
          false
          
        • Optionalversion?: string

          The version of the operating system. Only required for Ubuntu / Windows.

          voluptate
          
        • Optionalwindows_activation_key?: string
          ipsam
          
        • Optionalwindows_bypass_system_requirements_check?: boolean
          true
          
        • Optionalwindows_key_location_specialize?: boolean
          false
          
        • Optionalwindows_key_location_userdata?: boolean
          false
          
        • Optionalwindows_skip_oobe?: boolean
          true
          
        • Optionalwindows_use_empty_activation_key?: boolean
          false
          

      Returns Promise<PXEProfile>

    • Parameters

      • id: number

      Returns Promise<void>

    • Returns Promise<string[]>

    • Parameters

      • pxeProfileId: 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