Skip to main content
Module

x/arubaos_cx/mod.ts>fetchOnce

Authenticate and interact with the ArubaOS-CX REST API using Deno.
Go to Latest
function fetchOnce
import { fetchOnce } from "https://deno.land/x/arubaos_cx@v0.0.7/mod.ts";

Creates a client and performs a request inbetween automatic login/logout. Recommended for single requests.

Example:

const response = await fetchOnce({ host: "10.20.30.40" }, "/system");

Parameters

clientInit: ClientInit
path: string
optional
init: RequestInit