(commandflush)
- commandFlush - Flushes commands based on information specified in an XML file
- createCommandFlushWithIdAndStatus - Flushes commands for devices
Flushes commands based on information specified in an XML file
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();
Parameter | Type | Required | Description |
---|---|---|---|
request |
Uint8Array | ✔️ | The request object to use for the request. |
config |
AxiosRequestConfig | ➖ | Available config options for making requests. |
Promise<operations.CommandFlushResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |
Flushes commands for devices
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();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.CreateCommandFlushWithIdAndStatusRequest | ✔️ | The request object to use for the request. |
config |
AxiosRequestConfig | ➖ | Available config options for making requests. |
Promise<operations.CreateCommandFlushWithIdAndStatusResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |