All URIs are relative to https://<sub_domain>.api.kandji.io
Method | HTTP request | Description |
---|---|---|
GetLibraryItemActivity | Get /api/v1/library/library-items/{library_item_id}/activity | Get Library Item Activity |
GetLibraryItemStatuses | Get /api/v1/library/library-items/{library_item_id}/status | Get Library Item Statuses |
AutomatedDeviceEnrollmentIntegrationsListAdeDevices200Response GetLibraryItemActivity(ctx, libraryItemId).ActivityType(activityType).UserId(userId).UserEmail(userEmail).Limit(limit).Offset(offset).Execute()
Get Library Item Activity
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/MScottBlake/kandji-go-sdk"
)
func main() {
libraryItemId := "libraryItemId_example" // string |
activityType := "library_item_assignment_changed" // string | Filter actions by this activity type. Choices are: library_item_created, library_item_edited, library_item_deleted, library_item_duplicated, library_item_assignment_changed (optional)
userId := "{user uuid}" // string | Filter actions by this user (id) (optional)
userEmail := "me@example.com" // string | Filter actions by this user (email) (optional)
limit := "10" // string | A hard upper <code>limit</code> is set at 300 device records returned per request. If more device records are expected, pagination should be used using the <code>limit</code> and <code>offset</code> parameters. Additionally, parameter queries can be added to a request to limit the results. (optional)
offset := "100" // string | Specify the starting record to return (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LibraryItemsAPI.GetLibraryItemActivity(context.Background(), libraryItemId).ActivityType(activityType).UserId(userId).UserEmail(userEmail).Limit(limit).Offset(offset).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LibraryItemsAPI.GetLibraryItemActivity``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetLibraryItemActivity`: AutomatedDeviceEnrollmentIntegrationsListAdeDevices200Response
fmt.Fprintf(os.Stdout, "Response from `LibraryItemsAPI.GetLibraryItemActivity`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
libraryItemId | string |
Other parameters are passed through a pointer to a apiGetLibraryItemActivityRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
activityType | string | Filter actions by this activity type. Choices are: library_item_created, library_item_edited, library_item_deleted, library_item_duplicated, library_item_assignment_changed | userId | string | Filter actions by this user (id) | userEmail | string | Filter actions by this user (email) | limit | string | A hard upper <code>limit</code> is set at 300 device records returned per request. If more device records are expected, pagination should be used using the <code>limit</code> and <code>offset</code> parameters. Additionally, parameter queries can be added to a request to limit the results. | offset | string | Specify the starting record to return |
AutomatedDeviceEnrollmentIntegrationsListAdeDevices200Response
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AutomatedDeviceEnrollmentIntegrationsListAdeDevices200Response GetLibraryItemStatuses(ctx, libraryItemId).ComputerId(computerId).Limit(limit).Offset(offset).Execute()
Get Library Item Statuses
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/MScottBlake/kandji-go-sdk"
)
func main() {
libraryItemId := "libraryItemId_example" // string |
computerId := "{device_id}" // string | Query for the status of one device. (optional)
limit := "300" // string | A hard upper <code>limit</code> is set at 300 device records returned per request. If more device records are expected, pagination should be used using the <code>limit</code> and <code>offset</code> parameters. Additionally, parameter queries can be added to a request to limit the results. (optional)
offset := "offset_example" // string | Specify the starting record to return (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LibraryItemsAPI.GetLibraryItemStatuses(context.Background(), libraryItemId).ComputerId(computerId).Limit(limit).Offset(offset).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LibraryItemsAPI.GetLibraryItemStatuses``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetLibraryItemStatuses`: AutomatedDeviceEnrollmentIntegrationsListAdeDevices200Response
fmt.Fprintf(os.Stdout, "Response from `LibraryItemsAPI.GetLibraryItemStatuses`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
libraryItemId | string |
Other parameters are passed through a pointer to a apiGetLibraryItemStatusesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
computerId | string | Query for the status of one device. | limit | string | A hard upper <code>limit</code> is set at 300 device records returned per request. If more device records are expected, pagination should be used using the <code>limit</code> and <code>offset</code> parameters. Additionally, parameter queries can be added to a request to limit the results. | offset | string | Specify the starting record to return |
AutomatedDeviceEnrollmentIntegrationsListAdeDevices200Response
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]