hetzner-ts
    Preparing search index...

    Isos API

    Isos are used to create servers. https://docs.hetzner.cloud/#isos

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    baseUrl: string
    token: string

    Methods

    • Get an iso by id

      Parameters

      • id: number

        The id of the iso

      Returns Promise<
          | { response: { iso: Isos }; success: true }
          | { response: APIError; success: false },
      >

    • Type Parameters

      • T

      Parameters

      • endpoint: string
      • options: RequestInit = {}

      Returns Promise<{ response: T; success: true } | { response: APIError; success: false }>