(gsxconnection)
- findGSXConnection - Finds the Jamf Pro GSX connection information
- updateGSXConnection - Updates the Jamf Pro GSX connection information
Finds the Jamf Pro GSX connection information
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();
Parameter | Type | Required | Description |
---|---|---|---|
config |
AxiosRequestConfig | ➖ | Available config options for making requests. |
Promise<operations.FindGSXConnectionResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |
Updates the Jamf Pro GSX connection information
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();
Parameter | Type | Required | Description |
---|---|---|---|
request |
Uint8Array | ✔️ | The request object to use for the request. |
config |
AxiosRequestConfig | ➖ | Available config options for making requests. |
Promise<operations.UpdateGSXConnectionResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |