Skip to content

Latest commit

 

History

History
95 lines (65 loc) · 3.59 KB

File metadata and controls

95 lines (65 loc) · 3.59 KB

Gsxconnection

(gsxconnection)

Available Operations

findGSXConnection

Finds the Jamf Pro GSX connection information

Example Usage

import { Jamf } from "jamf-classic-sdk-nodejs";

async function run() {
  const sdk = new Jamf({
    security: {
      password: "<YOUR_PASSWORD_HERE>",
      username: "<YOUR_USERNAME_HERE>",
    },
  });

  const res = await sdk.gsxconnection.findGSXConnection();

  if (res.statusCode == 200) {
    // handle response
  }
}

run();

Parameters

Parameter Type Required Description
config AxiosRequestConfig Available config options for making requests.

Response

Promise<operations.FindGSXConnectionResponse>

Errors

Error Object Status Code Content Type
errors.SDKError 4xx-5xx /

updateGSXConnection

Updates the Jamf Pro GSX connection information

Example Usage

import { Jamf } from "jamf-classic-sdk-nodejs";
import { Region } from "jamf-classic-sdk-nodejs/dist/sdk/models/shared";

async function run() {
  const sdk = new Jamf({
    security: {
      password: "<YOUR_PASSWORD_HERE>",
      username: "<YOUR_USERNAME_HERE>",
    },
  });

  const res = await sdk.gsxconnection.updateGSXConnection(new TextEncoder().encode("0xf6280edaC8"));

  if (res.statusCode == 200) {
    // handle response
  }
}

run();

Parameters

Parameter Type Required Description
request Uint8Array ✔️ The request object to use for the request.
config AxiosRequestConfig Available config options for making requests.

Response

Promise<operations.UpdateGSXConnectionResponse>

Errors

Error Object Status Code Content Type
errors.SDKError 4xx-5xx /