Integrations
Kandji
APIs
Get Kandji Library Item Statuses

Get Library Item Statuses

This endpoint retrieves the statuses related to a specific library item.

For more information on the API, see Get Library Item Statuses (opens in a new tab).

Required permissions:

  • View Library Item Status

SDK Import:

from admyral.actions import get_kandji_library_item_statuses

Arguments:

Argument NameDescriptionRequired
Library Item ID, library_item_idThe ID of the library item.Yes

Returns

A list of JSON objects.

Required Secrets

Secret PlaceholderDescription
KANDJI_SECRETKandji secret. See Kandji setup

SDK Example

apps = get_kandji_library_item_statuses(
    library_item_id="46e31b6e-6d9e-35b8-bvd1-9034f94d507f",
	secrets={"KANDJI_SECRET": "my_kandji_secret"}
)

Example Output:

[
	{
		"id": 13908,
		"blueprint": {
			"id": "ab102b9d-8e9c-420d-a498-f2a1123091c7",
			"name": "_test_something"
		},
		"computer": {
			"id": "2f25e13e-3b1c-4717-bf7e-7d23e61bb68c",
			"name": "Mac mini"
		},
		"status": "PENDING",
		"reported_at": null,
		"log": null,
		"last_audit_run": null,
		"last_audit_log": null,
		"control_log": null,
		"control_reported_at": null
	},
	{
		"id": 13907,
		"blueprint": {
			"id": "ab102b9d-8e9c-420d-a498-f2a1123091c7",
			"name": "_test_something"
		},
		"computer": {
			"id": "912bc505-a7ee-4d0b-906d-2102f332a4b3",
			"name": "testuser’s MacBook Air"
		},
		"status": "PENDING",
		"reported_at": null,
		"log": null,
		"last_audit_run": null,
		"last_audit_log": null,
		"control_log": null,
		"control_reported_at": null
	}
]