Skip to content

Latest commit

 

History

History
101 lines (71 loc) · 5.08 KB

File metadata and controls

101 lines (71 loc) · 5.08 KB

Commandflush

(commandflush)

Available Operations

commandFlush

Flushes commands based on information specified in an XML file

Example Usage

import { Jamf } from "jamf-classic-sdk-nodejs";
import { Status } 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.commandflush.commandFlush(new TextEncoder().encode("0x3FC75fbae2"));

  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.CommandFlushResponse>

Errors

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

createCommandFlushWithIdAndStatus

Flushes commands for devices

Example Usage

import { Jamf } from "jamf-classic-sdk-nodejs";
import { Idtype, Status } from "jamf-classic-sdk-nodejs/dist/sdk/models/operations";

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

  const res = await sdk.commandflush.createCommandFlushWithIdAndStatus({
    id: 873570,
    idtype: Idtype.Computergroups,
    status: Status.Failed,
  });

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

run();

Parameters

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

Response

Promise<operations.CreateCommandFlushWithIdAndStatusResponse>

Errors

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