hetzner-ts
    Preparing search index...

    Networks API

    Networks is a private networks feature. These Networks are optional and they coexist with the public network that every Server has by default. https://docs.hetzner.cloud/#networks

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    baseUrl: string
    token: string

    Accessors

    Methods

    • Delete a Network

      Parameters

      • id: number

        The Network ID

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

    • Get a specific Network by ID

      Parameters

      • id: number

        The Network ID

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

    • Type Parameters

      • T

      Parameters

      • endpoint: string
      • options: RequestInit = {}

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