Constructors

Properties

httpRequest: NetApi.BaseHttpRequest

Methods

  • AddAddress - Assigns a new IP address to the Requestor in a Network.

    Parameters

    • networkId: string
    • requestBody: {
          ip: string;
      }
      • ip: string

    Returns NetApi.CancelablePromise<any>

    any Address assigned.

    Throws

    ApiError

  • AddNode - Advertises and adds a new Node to a Network.

    Parameters

    • networkId: string
    • requestBody: {
          id: string;
          ip: string;
      }
      • id: string
      • ip: string

    Returns NetApi.CancelablePromise<any>

    any Node added.

    Throws

    ApiError

  • CreateNetwork - Creates a new Network.

    Parameters

    • requestBody: {
          gateway?: string;
          ip: string;
          mask?: string;
      }
      • Optional gateway?: string
      • ip: string
      • Optional mask?: string

    Returns NetApi.CancelablePromise<{
        gateway: string;
        id: string;
        ip: string;
        mask: string;
    }>

    any Network information.

    Throws

    ApiError

  • GetAddresses - Fetches Requestor's IP addresses in a Network.

    Parameters

    • networkId: string

    Returns NetApi.CancelablePromise<{
        ip: string;
    }[]>

    any List of Requestor's Addresses in a Virtual Private Network.

    Throws

    ApiError

  • GetConnections - Fetches Requestor's TCP connections in a Network.

    Parameters

    • networkId: string

    Returns NetApi.CancelablePromise<{
        localIp: string;
        localPort: number;
        protocol: number;
        remoteIp: string;
        remotePort: number;
    }[]>

    any List of established connections within a Virtual Private Network.

    Throws

    ApiError

  • GetNetwork - Fetches a Network created by the Requestor.

    Parameters

    • networkId: string

    Returns NetApi.CancelablePromise<{
        gateway: string;
        id: string;
        ip: string;
        mask: string;
    }>

    any Network information.

    Throws

    ApiError

  • GetNetworks - Fetches Networks created by the Requestor.

    Returns NetApi.CancelablePromise<{
        gateway: string;
        id: string;
        ip: string;
        mask: string;
    }[]>

    any List of Networks created by the Requestor.

    Throws

    ApiError

  • GetNodes - Fetches Nodes added to a Network.

    Parameters

    • networkId: string

    Returns NetApi.CancelablePromise<{
        id: string;
        ip: string;
    }[]>

    any List of nodes in a Virtual Private Network.

    Throws

    ApiError

  • RemoveNode - Advertises and removes a Node from a Network.

    Parameters

    • networkId: string
    • nodeId: string

    Returns NetApi.CancelablePromise<any>

    any Node removed.

    Throws

    ApiError