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

    Class PXEScriptsResource

    PXE Scripts management resource

    Hierarchy

    • BaseResource
      • PXEScriptsResource
    Index

    Constructors

    Properties

    Methods

    • Parameters

      • data: {
            allow_for_dedicated?: boolean;
            allow_for_vps?: boolean;
            dont_offer_if_has_tag?: string[];
            dont_offer_if_user_has_role?: string[];
            isDisabled?: boolean;
            name: string;
            offer_if_has_tag?: string[];
            offer_if_user_has_role?: string[];
            script: string;
            tags: string[];
        }
        • Optionalallow_for_dedicated?: boolean
          false
          
        • Optionalallow_for_vps?: boolean
          false
          
        • Optionaldont_offer_if_has_tag?: string[]
          [
          "sit"
          ]
        • Optionaldont_offer_if_user_has_role?: string[]
          [
          null
          ]
        • OptionalisDisabled?: boolean
          true
          
        • name: string
          quo
          
        • Optionaloffer_if_has_tag?: string[]
          [
          "adipisci"
          ]
        • Optionaloffer_if_user_has_role?: string[]
          [
          null
          ]
        • script: string

          Script will be executed on after the installation has been completed.

          touch /root/123
          
        • tags: string[]

          The script is linked to the operating systems via tags.

          [
          "kickstart"
          ]

      Returns Promise<PXEScript>

    • 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