Globus SDK for JavaScript
    Preparing search index...
    • Get a list of tunnels.

      Parameters

      • Optionaloptions: {
            payload?: undefined;
            query?: {
                "filter[id][eq]"?: string;
                "filter[id][in]"?: string[];
                "filter[initiator][eq]"?: string;
                "filter[initiator][in]"?: string[];
                "filter[listener][eq]"?: string;
                "filter[listener][in]"?: string[];
                "filter[state][eq]"?:
                    | "STOPPING"
                    | "UNINITIALIZED"
                    | "AWAITING_LISTENER"
                    | "ACTIVATING"
                    | "ACTIVE"
                    | "STOPPED"
                    | "DELETING"
                    | "DELETED";
                "filter[state][in]"?: (
                    | "STOPPING"
                    | "UNINITIALIZED"
                    | "AWAITING_LISTENER"
                    | "ACTIVATING"
                    | "ACTIVE"
                    | "STOPPED"
                    | "DELETING"
                    | "DELETED"
                )[];
                "filter[stream_access_point][eq]"?: string;
                "filter[stream_access_point][in]"?: string[];
                "page[limit]"?: number;
                "page[marker]"?: string;
                sort?: ("created_time" | "-created_time")[];
            };
        } & BaseServiceMethodOptions
      • OptionalsdkOptions: SDKOptions

      Returns Promise<
          JSONFetchResponse<
              {
                  data: {
                      attributes: {
                          created_time: string;
                          initiator_ip_address?: string
                          | null;
                          initiator_port?: number | null;
                          label?: string | null;
                          lifetime_mins: number;
                          listener_ip_address?: string | null;
                          listener_port?: number | null;
                          restartable: boolean;
                          state:
                              | "STOPPING"
                              | "UNINITIALIZED"
                              | "AWAITING_LISTENER"
                              | "ACTIVATING"
                              | "ACTIVE"
                              | "STOPPED"
                              | "DELETING"
                              | "DELETED";
                          status: string;
                          stopped_by_admin?: "LISTENER"
                          | "INITIATOR"
                          | "BOTH"
                          | null;
                          stopped_by_admin_message?: string | null;
                          submission_id?: string | null;
                      };
                      id: string;
                      meta: {
                          permissions: { delete: boolean; stop: boolean; update: boolean };
                      };
                      relationships?: | {
                          initiator: { data: { id: string; type: "StreamAccessPoint" } };
                          listener: { data: { id: string; type: "StreamAccessPoint" } };
                          owner: { data: { id: string; type: "Identity" } };
                      }
                      | null;
                      type: "Tunnel";
                  }[];
                  links?: { next?: string | { href: string } | null }
                  | null;
                  meta: { request_id: string };
              },
          >,
      >