サポートと今すぐチャット
サポートとのチャット

KACE Systems Management Appliance 14.1 Common Documents - API Reference Guide

API Reference

API Reference

KACE SMA API

Overview

Version information

Version : 14.0

URI scheme

BasePath : /

Consumes

Produces

Paths

POST /ams/shared/api/kkmp/login

Description

Logs the user into the linked device account

Parameters

Responses

POST /ams/shared/api/kkmp/login_user

Description

Logs the user into the linked device

Responses

GET /ams/shared/api/organizations

Description

Returns a list of all organizations

Parameters

Responses

GET /ams/shared/api/security/authResult

Description

Fetches result for last authentication attempt for SAML mobile logins

Responses

POST /ams/shared/api/security/login

Description

Logs the user in

Parameters

Responses

GET /ams/shared/api/security/logout

Description

Logs out the currently logged in user

Parameters

Responses

POST /ams/shared/api/security/organization/switch

Description

Changes the organization the user is logged into

Parameters

Responses

POST /ams/shared/api/security/organization/{id}/switchto

Description

Changes the organization the user is logged into

Parameters

Responses

GET /ams/shared/api/security/refreshcontext

Description

Refreshes the current security context

Responses

GET /ams/shared/api/security/samlLogin

Description

Logs the user in through SAML

Parameters

Responses

GET /ams/shared/api/security/supportedAuthTypes

Description

Returns supported authentication types (right now, local and/or SAML)

Responses

Response 200

Name
Schema

AuthTypes optional

< auth_type > array

POST /ams/shared/api/security/verify_2factor

Description

Accepts 2factor token from accounts that require one. Call immediately after login.

Parameters

verificationData

Responses

Definitions

ApiCredentials

AuthStorage

AuthStorageExpiration

Name
Schema

expires optional

integer

key optional

string

Notification

Organization

auth_type

Asset API Reference

Asset API Reference

KACE SMA Asset API Reference

Overview

Version information

Version : 14.0

URI scheme

BasePath : /api/asset

Consumes

Produces

Paths

GET /api/asset/archived_devices/{id}

Description

Returns the archived asset associated with the id

Parameters

Responses

GET /api/asset/asset_status

Description

Returns all asset statuses

Parameters

Responses

Response 200

GET /api/asset/asset_status/{id}

Description

Returns the asset status associated with the id

Parameters

Responses

Response 200

POST /api/asset/assets

Description

Creates a new asset

Parameters

assetData

Name
Schema

Assets optional

< asset > array

Responses

GET /api/asset/assets

Description

Returns a list of all assets

Parameters

Responses

Response 200

Name
Schema

Assets optional

< asset > array

GET /api/asset/assets/types

Description

Returns a list of all asset types

Responses

Response 200

GET /api/asset/assets/{assetID}/attachment/{fieldName}

Description

Returns an attachment

Parameters

Responses

POST /api/asset/assets/{id}

Description

Updates an asset

Parameters

assetData

Name
Schema

Assets optional

< asset > array

Responses

GET /api/asset/assets/{id}

Description

Returns the asset associated with the id

Parameters

Responses

Response 200

Name
Schema

Assets optional

< asset > array

PUT /api/asset/assets/{id}

Description

Updates an asset

Parameters

assetData

Name
Schema

Assets optional

< asset > array

Responses

DELETE /api/asset/assets/{id}

Description

Removes an asset

Parameters

Responses

POST /api/asset/assets/{id}/archive

Parameters

Responses

GET /api/asset/assets/{id}/barcodes

Description

Returns all barcodes associated with the specified asset.

Parameters

Responses

Response 200

Name
Schema

Barcodes optional

< barcode > array

POST /api/asset/assets/{id}/cancel_archive

Parameters

Responses

POST /api/asset/barcodes

Description

Creates a new barcode

Parameters

barcodeData

Responses

GET /api/asset/barcodes

Description

Returns all barcodes

Parameters

Responses

GET /api/asset/barcodes/{id}

Description

Returns the barcode associated with the id

Parameters

Responses

PUT /api/asset/barcodes/{id}

Description

Updates the selected barcode

Parameters

barcodeData

Responses

DELETE /api/asset/barcodes/{id}

Description

Removes the selected barcode

Parameters

Responses

GET /api/asset/licenses

Description

Returns a list of all license assets

Parameters

Responses

Response 200

Name
Schema

Licenses optional

< asset > array

Definitions

archive_asset_device

Name
Schema

asset_id optional

integer

id optional

integer

name optional

string

asset

asset_property

asset_status

Name
Schema

description optional

string

id optional

integer

is_system optional

integer

name optional

string

asset_type

barcode

barcode_update

machine

Name
Schema

asset_tag optional

string

bios_description optional

string

bios_identification_code optional

string

bios_manufacturer optional

string

bios_name optional

string

bios_serial_number optional

string

bios_version optional

string

cdrom_devices optional

string

chassis_type optional

string

client_version optional

string

cpu_name optional

string

cs_domain optional

string

cs_manufacturer optional

string

cs_model optional

string

csp_id_number optional

string

custom_field_value0 optional

string

custom_field_value1 optional

string

custom_field_value2 optional

string

custom_field_value3 optional

string

custom_field_value4 optional

string

custom_field_value5 optional

string

domain optional

string

dot_net_versions optional

string

edge_version optional

string

force_inventory optional

integer

gateway_ip optional

string

gateway_ipv6 optional

string

id optional

integer

ie_version optional

string

ip optional

string

ipv6 optional

string

kpatch_language_id optional

string

kuid optional

string

last_reboot optional

string

last_shutdown optional

string

last_user optional

string

mac optional

string

manual_entry optional

integer

manufacturer_product_number optional

string

monitor optional

string

motherboard_primary_bus optional

string

motherboard_secondary_bus optional

string

name optional

string

netmask optional

string

notes optional

string

os_arch optional

string

os_build optional

string

os_family optional

string

os_id optional

integer

os_installed_date optional

string

os_major optional

string

os_minor optional

string

os_minor2 optional

string

os_name optional

string

os_number optional

string

os_release optional

string

os_version optional

string

ownership optional

string

pagefile_max_size optional

string

pagefile_size optional

string

physical_cores optional

integer

physical_processors optional

integer

prefix_len optional

integer

printers optional

string

processors optional

string

ram_max optional

string

registry_max_size optional

string

registry_size optional

string

sda_deployment_name optional

string

sda_deployment_type optional

string

sda_deployment_url optional

string

sda_installation_id optional

string

sda_name optional

string

sda_url optional

string

service_pack optional

string

sound_devices optional

string

sys_arch optional

string

system_description optional

string

system_directory optional

string

tz_agent optional

string

uptime optional

string

user optional

string

user_domain optional

string

user_fullname optional

string

user_logged optional

string

user_name optional

string

video_controllers optional

string

virtual optional

string

wmi_status optional

string

software

KACE SMA Asset API Examples

KACE SMA Asset API Examples

This section provides examples for adding attachments to assets using the KACE SMA API.

Each example uses the following assumptions:

Create an asset and upload attachments to both custom fields at the same time:

Update an asset by uploading a single custom field:

Update an asset by removing an attachment from a custom field:

Retrieve an attachment from a specified custom field:

Inventory API Reference

Inventory API Reference

KACE SMA Inventory API Reference

Overview

Version information

Version : 14.0

URI scheme

BasePath : /api/inventory

Consumes

Produces

Paths

POST /api/inventory/machines/

Description

Creates or updates inventory data. The only way to send new inventory data is via this Machine entity. It is suggested that POST be used for new machines and PUT for machine updates. However, as a convenience for clients, the POST route can be used to update the inventory for existing machines. See Appendix B for an example of the request body format. Multiple machines can be sent in a single request. If no KUID is given for a machine, one will be auto-generated. The ID(s) of the impacted machines will be included in the response.

Responses

GET /api/inventory/machines/

Description

Retrieves the data for any matching machines.

Parameters

Responses

Response 200

Name
Schema

Machines optional

< Machine > array

GET /api/inventory/machines/{id}/

Description

Retrieves the data for the specific ID given. All query parameters are available.

Parameters

Responses

PUT /api/inventory/machines/{id}/

Description

Updates machine inventory data for the given ID. If a KUID is sent in the request body, it must match the KUID for the machine with the given ID. See Appendix B for an example of the request body format.

Responses

GET /api/inventory/machines/{id}/custom_inventory/

Description

Retrieves the custom inventory for the specific machine ID.

Parameters

Responses

Response 200

POST /api/inventory/machines/{id}/force/

Parameters

Responses

GET /api/inventory/machines/{machineID}/custom_inventory

Description

Retrieves custom inventory fields associated with a machine

Parameters

Responses

Response 200

GET /api/inventory/machines/{machineID}/uploaded_files

Description

Retrieves uploaded files associated with a machine

Parameters

Responses

Response 200

GET /api/inventory/machines/{machineID}/uploaded_files/{fileID}

Description

Retrieves uploaded file associated with a machine

Parameters

Responses

POST /api/inventory/nodes/

Responses

GET /api/inventory/nodes/

Description

Retrieves the data for any matching agentless nodes.

Parameters

Responses

GET /api/inventory/nodes/{id}/

Description

Retrieves the data for the specific ID given. All query parameters are available.

Parameters

Responses

POST /api/inventory/operating_systems/

Responses

GET /api/inventory/operating_systems/

Description

Retrieves the data for any matching operating systems. The operating system for a machine are reported during inventory.

Parameters

Responses

GET /api/inventory/operating_systems/{id}/

Description

Retrieves the data for the specific ID given. All query parameters are available.

Parameters

Responses

POST /api/inventory/processes/

Responses

GET /api/inventory/processes/

Description

Retrieves the data for any matching processes. The running processes for a machine are reported during inventory.

Parameters

Responses

GET /api/inventory/processes/{id}/

Description

Retrieves the data for the specific ID given. All query parameters are available.

Parameters

Responses

POST /api/inventory/services/

Responses

GET /api/inventory/services/

Description

Retrieves the data for any matching NT services. The list of services for a Windows machine are reported during inventory.

Parameters

Responses

GET /api/inventory/services/{id}/

Description

Retrieves the data for the specific ID given. All query parameters are available.

Parameters

Responses

POST /api/inventory/softwares/

Responses

GET /api/inventory/softwares/

Description

Retrieves the data for any matching software. The installed software titles for a machine are reported during inventory.

Parameters

Responses

GET /api/inventory/softwares/{id}/

Description

Retrieves the data for the specific ID given. All query parameters are available.

Parameters

Responses

POST /api/inventory/startup_programs/

Responses

GET /api/inventory/startup_programs/

Description

Retrieves the data for any matching startup programs. The list of startup programs for a machine are reported during inventory.

Parameters

Responses

GET /api/inventory/startup_programs/{id}/

Description

Retrieves the data for the specific ID given. All query parameters are available.

Parameters

Responses

Definitions

Catalog.Sam_Catalog

Fs

Kbsys.Patch

Label

Machine

Name
Schema

Asset_Tag optional

string

Bios_Description optional

string

Bios_Identification_Code optional

string

Bios_Manufacturer optional

string

Bios_Name optional

string

Bios_Serial_Number optional

string

Bios_Version optional

string

Cdrom_Devices optional

string

Chassis_Type optional

string

Client_Version optional

string

Cpu_Name optional

string

Cs_Domain optional

string

Cs_Manufacturer optional

string

Cs_Model optional

string

Csp_Id_Number optional

string

Custom_Field_Value0 optional

string

Custom_Field_Value1 optional

string

Custom_Field_Value2 optional

string

Custom_Field_Value3 optional

string

Custom_Field_Value4 optional

string

Custom_Field_Value5 optional

string

Domain optional

string

Dot_Net_Versions optional

string

Force_Inventory optional

integer

Id optional

integer

Ie_Version optional

string

Ip optional

string

Ipv6 optional

string

Kpatch_Language_Id optional

string

Kuid optional

string

Last_Reboot optional

string

Last_Shutdown optional

string

Last_User optional

string

Mac optional

string

Manual_Entry optional

integer

Manufacturer_Product_Number optional

string

Monitor optional

string

Motherboard_Primary_Bus optional

string

Motherboard_Secondary_Bus optional

string

Name optional

string

Netmask optional

string

Notes optional

string

Os_Arch optional

string

Os_Build optional

string

Os_Family optional

string

Os_Id optional

integer

Os_Installed_Date optional

string

Os_Major optional

string

Os_Minor optional

string

Os_Minor2 optional

string

Os_Name optional

string

Os_Number optional

string

Os_Release optional

string

Os_Version optional

string

Ownership optional

string

Pagefile_Max_Size optional

string

Pagefile_Size optional

string

Physical_Cores optional

integer

Physical_Processors optional

integer

Prefix_Len optional

integer

Printers optional

string

Processors optional

string

Ram_Max optional

string

Registry_Max_Size optional

string

Registry_Size optional

string

Sda_Deployment_Name optional

string

Sda_Deployment_Time optional

string

Sda_Deployment_Type optional

string

Sda_Deployment_Url optional

string

Sda_Installation_Id optional

string

Sda_Name optional

string

Sda_Url optional

string

Service_Pack optional

string

Sound_Devices optional

string

Sys_Arch optional

string

System_Description optional

string

System_Directory optional

string

Tz_Agent optional

string

Uptime optional

string

User optional

string

User_Domain optional

string

User_Fullname optional

string

User_Logged optional

string

User_Name optional

string

Video_Controllers optional

string

Virtual optional

string

Wmi_Status optional

string

Machine_Bitlocker_Volume

Machine_Chromeos_Details

Machine_Daily_Uptime

Name
Schema

Id optional

integer

Machine_Id optional

integer

Machine_Ddpe

Machine_Ddpe_Volume

Machine_Disks

Name
Schema

Id optional

integer

Name optional

string

Machine_Drive_Encryption_Summary

Machine_Filevault_Volume

Machine_Intel_Amt

Machine_Location

Machine_Mobile

Machine_Nics

Name
Schema

Dhcp_Enabled optional

string

Dnsdoman optional

string

Dnshostname optional

string

Id optional

integer

Ip optional

string

Ipv6_Config optional

string

Mac optional

string

Netmask optional

string

Nic optional

string

Nic_Id optional

integer

Machine_Replitem

Name
Schema

Checksum optional

string

Error optional

integer

File_Name optional

string

File_Size optional

integer

Machine_Id optional

integer

Ordinal optional

integer

Path optional

string

Type optional

string

Type_Id optional

string

Zip_Package optional

string

Machine_Snmp_Data

Machine_Tpm

Mi_Attempt

Node

Node_Snmp_If

Name
Schema

Admin_Status optional

string

Descr optional

string

Id optional

integer

Ifindex optional

integer

In_Discards optional

integer

In_Errors optional

integer

In_Nucastpkts optional

integer

In_Octets optional

integer

In_Ucastpkts optional

integer

In_Unknownprotos optional

integer

Last_Change optional

string

Mtu optional

integer

Oper_Status optional

string

Out_Discards optional

integer

Out_Errors optional

integer

Out_Nucastpkts optional

integer

Out_Octets optional

integer

Out_Ucastpkts optional

integer

Phys_Address optional

string

Specific optional

string

Speed optional

integer

Type optional

string

Node_Snmp_System

Name
Schema

Contact optional

string

Description optional

string

Full_Walk optional

string

Id optional

integer

Location optional

string

Name optional

string

Object_Id optional

string

Uptime optional

string

Ntservice

Operating_Systems

Name
Schema

Arch optional

string

Build optional

string

Common_Name optional

string

Description optional

string

Family optional

string

Id optional

integer

Major_Version optional

integer

Managed optional

integer

Minor2_Version optional

integer

Minor_Version optional

integer

Name optional

string

Os_Family_Id optional

integer

Os_Product_Id optional

integer

Patch_Package_Code optional

string

Sp optional

integer

Patch_Machine_Status

Patch_Schedule_Run_Machine

Process

Name
Schema

Category optional

string

Command_Args optional

string

Command_Exe optional

string

Company_Name optional

string

File_Description optional

string

File_Name optional

string

File_Version optional

string

Id optional

integer

Name optional

string

Notes optional

string

Product_Name optional

string

Product_Version optional

string

Threat optional

integer

Sam_Meter

Sam_Meter_Data

Software

Startupprogram

Name
Schema

Category optional

string

Command_Args optional

string

Command_Exe optional

string

Company_Name optional

string

File_Description optional

string

File_Name optional

string

File_Version optional

string

Id optional

integer

Name optional

string

Notes optional

string

Product_Name optional

string

Product_Version optional

string

Threat optional

integer

machine_custom_inventory

Name
Schema

name optional

string

type optional

string

value optional

string

machine_uploaded_file

Name
Schema

id optional

integer

name optional

string

size optional

integer

The document was helpful.

評価を選択

I easily found the information I needed.

評価を選択