(healthcarelistener)
- findHealthcareListener - Find all Healthcare Listeners
- findHealthcareListenersById - Finds healthcare listener by ID
- updateHealthCareListenerById - Updates an existing healthcare listener by ID
Find all Healthcare Listeners
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.healthcarelistener.findHealthcareListener();
if (res.statusCode == 200) {
// handle response
}
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
config |
AxiosRequestConfig | ➖ | Available config options for making requests. |
Promise<operations.FindHealthcareListenerResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |
Finds healthcare listener by ID
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.healthcarelistener.findHealthcareListenersById({
id: 309302,
});
if (res.statusCode == 200) {
// handle response
}
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.FindHealthcareListenersByIdRequest | ✔️ | The request object to use for the request. |
config |
AxiosRequestConfig | ➖ | Available config options for making requests. |
Promise<operations.FindHealthcareListenersByIdResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |
Updates an existing healthcare listener by ID
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.healthcarelistener.updateHealthCareListenerById({
id: 68635,
});
if (res.statusCode == 200) {
// handle response
}
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.UpdateHealthCareListenerByIdRequest | ✔️ | The request object to use for the request. |
config |
AxiosRequestConfig | ➖ | Available config options for making requests. |
Promise<operations.UpdateHealthCareListenerByIdResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |