(licensedsoftware)
- createLicensedSoftwareById - Creates new licensed software by ID
- deleteLicensedSoftwareById - Deletes licensed software by ID
- deleteLicensedSoftwareByName - Deletes licensed software by name
- findLicensedSoftware - Finds all licensed software
- findLicensedSoftwareById - Finds licensed software by ID
- findLicensedSoftwareByName - Finds licensed software by name
- updateLicensedSoftwareById - Updates existing licensed software by ID
- updateLicensedSoftwareByName - Updates an existing licensed software by name
Matching computers are derived from software definitions, therefore they cannot be set with this operation.
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.licensedsoftware.createLicensedSoftwareById({
id: 186021,
});
if (res.statusCode == 200) {
// handle response
}
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.CreateLicensedSoftwareByIdRequest | ✔️ | The request object to use for the request. |
config |
AxiosRequestConfig | ➖ | Available config options for making requests. |
Promise<operations.CreateLicensedSoftwareByIdResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |
Deletes licensed software 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.licensedsoftware.deleteLicensedSoftwareById({
id: 61769,
});
if (res.statusCode == 200) {
// handle response
}
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.DeleteLicensedSoftwareByIdRequest | ✔️ | The request object to use for the request. |
config |
AxiosRequestConfig | ➖ | Available config options for making requests. |
Promise<operations.DeleteLicensedSoftwareByIdResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |
Deletes licensed software by name
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.licensedsoftware.deleteLicensedSoftwareByName({
name: "<value>",
});
if (res.statusCode == 200) {
// handle response
}
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.DeleteLicensedSoftwareByNameRequest | ✔️ | The request object to use for the request. |
config |
AxiosRequestConfig | ➖ | Available config options for making requests. |
Promise<operations.DeleteLicensedSoftwareByNameResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |
Finds all licensed software
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.licensedsoftware.findLicensedSoftware();
if (res.statusCode == 200) {
// handle response
}
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
config |
AxiosRequestConfig | ➖ | Available config options for making requests. |
Promise<operations.FindLicensedSoftwareResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |
Finds licensed software 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.licensedsoftware.findLicensedSoftwareById({
id: 987654,
});
if (res.statusCode == 200) {
// handle response
}
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.FindLicensedSoftwareByIdRequest | ✔️ | The request object to use for the request. |
config |
AxiosRequestConfig | ➖ | Available config options for making requests. |
Promise<operations.FindLicensedSoftwareByIdResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |
Finds licensed software by name
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.licensedsoftware.findLicensedSoftwareByName({
name: "<value>",
});
if (res.statusCode == 200) {
// handle response
}
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.FindLicensedSoftwareByNameRequest | ✔️ | The request object to use for the request. |
config |
AxiosRequestConfig | ➖ | Available config options for making requests. |
Promise<operations.FindLicensedSoftwareByNameResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |
Matching computers are derived from software definitions, therefore they cannot be set with this operation.
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.licensedsoftware.updateLicensedSoftwareById({
id: 345542,
});
if (res.statusCode == 200) {
// handle response
}
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.UpdateLicensedSoftwareByIdRequest | ✔️ | The request object to use for the request. |
config |
AxiosRequestConfig | ➖ | Available config options for making requests. |
Promise<operations.UpdateLicensedSoftwareByIdResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |
Matching computers are derived from software definitions, therefore they cannot be set with this operation.
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.licensedsoftware.updateLicensedSoftwareByName({
name: "<value>",
});
if (res.statusCode == 200) {
// handle response
}
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.UpdateLicensedSoftwareByNameRequest | ✔️ | The request object to use for the request. |
config |
AxiosRequestConfig | ➖ | Available config options for making requests. |
Promise<operations.UpdateLicensedSoftwareByNameResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |