hetzner-ts
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    baseUrl: string
    token: string

    Methods

    • Get a specific action for Floating IPs

      Parameters

      • actionId: number

        The action ID

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

    • Get a specific action for a specific Floating IP

      Parameters

      • floatingIpId: number

        The Floating IP ID

      • actionId: number

        The action ID

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

    • Type Parameters

      • T

      Parameters

      • endpoint: string
      • options: RequestInit = {}

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

    • Unassign a Floating IP

      Parameters

      • floatingIpId: number

        The Floating IP ID

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