All URIs are relative to https://<sub_domain>.api.kandji.io
Method | HTTP request | Description |
---|---|---|
NotesCreateDeviceNote | Post /api/v1/devices/{device_id}/notes | Create Device Note |
NotesDeleteDeviceNote | Delete /api/v1/devices/{device_id}/notes/{note_id} | Delete Device Note |
NotesGetDeviceNotes | Get /api/v1/devices/{device_id}/notes | Get Device Notes |
NotesRetrieveDeviceNote | Get /api/v1/devices/{device_id}/notes/{note_id} | Retrieve Device Note |
NotesUpdateDeviceNote | Patch /api/v1/devices/{device_id}/notes/{note_id} | Update Device Note |
map[string]interface{} NotesCreateDeviceNote(ctx, deviceId).Body(body).Execute()
Create Device Note
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/MScottBlake/kandji-go-sdk"
)
func main() {
deviceId := "deviceId_example" // string |
body := "body_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NotesAPI.NotesCreateDeviceNote(context.Background(), deviceId).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NotesAPI.NotesCreateDeviceNote``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NotesCreateDeviceNote`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `NotesAPI.NotesCreateDeviceNote`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
deviceId | string |
Other parameters are passed through a pointer to a apiNotesCreateDeviceNoteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
body | string | |
map[string]interface{}
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} NotesDeleteDeviceNote(ctx, deviceId, noteId).Execute()
Delete Device Note
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/MScottBlake/kandji-go-sdk"
)
func main() {
deviceId := "deviceId_example" // string |
noteId := "noteId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NotesAPI.NotesDeleteDeviceNote(context.Background(), deviceId, noteId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NotesAPI.NotesDeleteDeviceNote``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NotesDeleteDeviceNote`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `NotesAPI.NotesDeleteDeviceNote`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
deviceId | string | ||
noteId | string |
Other parameters are passed through a pointer to a apiNotesDeleteDeviceNoteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
map[string]interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} NotesGetDeviceNotes(ctx, deviceId).Execute()
Get Device Notes
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/MScottBlake/kandji-go-sdk"
)
func main() {
deviceId := "deviceId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NotesAPI.NotesGetDeviceNotes(context.Background(), deviceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NotesAPI.NotesGetDeviceNotes``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NotesGetDeviceNotes`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `NotesAPI.NotesGetDeviceNotes`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
deviceId | string |
Other parameters are passed through a pointer to a apiNotesGetDeviceNotesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
map[string]interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} NotesRetrieveDeviceNote(ctx, deviceId, noteId).Execute()
Retrieve Device Note
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/MScottBlake/kandji-go-sdk"
)
func main() {
deviceId := "deviceId_example" // string |
noteId := "noteId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NotesAPI.NotesRetrieveDeviceNote(context.Background(), deviceId, noteId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NotesAPI.NotesRetrieveDeviceNote``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NotesRetrieveDeviceNote`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `NotesAPI.NotesRetrieveDeviceNote`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
deviceId | string | ||
noteId | string |
Other parameters are passed through a pointer to a apiNotesRetrieveDeviceNoteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
map[string]interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} NotesUpdateDeviceNote(ctx, deviceId, noteId).Body(body).Execute()
Update Device Note
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/MScottBlake/kandji-go-sdk"
)
func main() {
deviceId := "deviceId_example" // string |
noteId := "noteId_example" // string |
body := "body_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NotesAPI.NotesUpdateDeviceNote(context.Background(), deviceId, noteId).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NotesAPI.NotesUpdateDeviceNote``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NotesUpdateDeviceNote`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `NotesAPI.NotesUpdateDeviceNote`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
deviceId | string | ||
noteId | string |
Other parameters are passed through a pointer to a apiNotesUpdateDeviceNoteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
body | string | |
map[string]interface{}
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]