Skip to content

Latest commit

 

History

History
597 lines (419 loc) · 23.2 KB

AutomatedDeviceEnrollmentIntegrationsAPI.md

File metadata and controls

597 lines (419 loc) · 23.2 KB

AutomatedDeviceEnrollmentIntegrationsAPI

All URIs are relative to https://<sub_domain>.api.kandji.io

Method HTTP request Description
createAdeIntegration POST /api/v1/integrations/apple/ade/ Create ADE integration
deleteAdeIntegration DELETE /api/v1/integrations/apple/ade/{ade_token_id} Delete ADE integration
downloadAdePublicKey GET /api/v1/integrations/apple/ade/public_key/ Download ADE public key
getAdeDevice GET /api/v1/integrations/apple/ade/devices/{device_id} Get ADE device
getAdeIntegration GET /api/v1/integrations/apple/ade/{ade_token_id} Get ADE integration
listAdeDevices GET /api/v1/integrations/apple/ade/devices List ADE devices
listAdeIntegrations GET /api/v1/integrations/apple/ade List ADE integrations
listDevicesAssociatedToAdeToken GET /api/v1/integrations/apple/ade/{ade_token_id}/devices List devices associated to ADE token
renewAdeIntegration POST /api/v1/integrations/apple/ade/{ade_token_id}/renew Renew ADE integration
updateAdeDevice PATCH /api/v1/integrations/apple/ade/devices/{device_id} Update ADE device
updateAdeIntegration PATCH /api/v1/integrations/apple/ade/{ade_token_id} Update ADE integration

createAdeIntegration

    open class func createAdeIntegration(blueprintId: String, phone: String, email: String, file: URL, completion: @escaping (_ data: AutomatedDeviceEnrollmentIntegrationsCreateAdeIntegration200Response?, _ error: Error?) -> Void)

Create ADE integration

This request will create a new ADE integration.

The default blueprint_id, phone number, email address, and MDM server token file downloaded from ABM are required and must be sent in the request.

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import kandji_sdk

let blueprintId = "blueprintId_example" // String | 
let phone = "phone_example" // String | 
let email = "email_example" // String | 
let file = URL(string: "https://example.com")! // URL | This is the MDM server token file(.p7m) download from ABM. Once downloaded from ABM, the file can be uploaded via API.

// Create ADE integration
AutomatedDeviceEnrollmentIntegrationsAPI.createAdeIntegration(blueprintId: blueprintId, phone: phone, email: email, file: file) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

Name Type Description Notes
blueprintId String
phone String
email String
file URL This is the MDM server token file(.p7m) download from ABM. Once downloaded from ABM, the file can be uploaded via API.

Return type

AutomatedDeviceEnrollmentIntegrationsCreateAdeIntegration200Response

Authorization

bearer

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

deleteAdeIntegration

    open class func deleteAdeIntegration(adeTokenId: String, completion: @escaping (_ data: Void?, _ error: Error?) -> Void)

Delete ADE integration

WARNING!

This is a HIGHLY destructive action.

Deleting an ADE token will unassign the associated device records from Kandji. For currently enrolled devices that were assigned to Kandji via the delete ADE integration will not be impacted until they are wiped and reprovisioned. This action is essentially the same as removing an ADE token from MDM and then adding it back.

If applicable, be sure to reassign the device records in ABM.

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import kandji_sdk

let adeTokenId = "adeTokenId_example" // String | 

// Delete ADE integration
AutomatedDeviceEnrollmentIntegrationsAPI.deleteAdeIntegration(adeTokenId: adeTokenId) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

Name Type Description Notes
adeTokenId String

Return type

Void (empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

downloadAdePublicKey

    open class func downloadAdePublicKey(completion: @escaping (_ data: String?, _ error: Error?) -> Void)

Download ADE public key

This request returns the public key used to create an MDM server connection in Apple Business Manager.

The encoded information needs to be saved to a file with the .pem format and then uploaded to ABM.

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import kandji_sdk


// Download ADE public key
AutomatedDeviceEnrollmentIntegrationsAPI.downloadAdePublicKey() { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

This endpoint does not need any parameter.

Return type

String

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/x-x509-ca-cert

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getAdeDevice

    open class func getAdeDevice(deviceId: String, completion: @escaping (_ data: AutomatedDeviceEnrollmentIntegrationsGetAdeDevice200Response?, _ error: Error?) -> Void)

Get ADE device

Get information about a specific Automated Device Enrollment device.

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import kandji_sdk

let deviceId = "deviceId_example" // String | 

// Get ADE device
AutomatedDeviceEnrollmentIntegrationsAPI.getAdeDevice(deviceId: deviceId) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

Name Type Description Notes
deviceId String

Return type

AutomatedDeviceEnrollmentIntegrationsGetAdeDevice200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getAdeIntegration

    open class func getAdeIntegration(adeTokenId: String, completion: @escaping (_ data: Void?, _ error: Error?) -> Void)

Get ADE integration

This request returns a specific ADE integration based on the ade_token_id passed.

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import kandji_sdk

let adeTokenId = "adeTokenId_example" // String | 

// Get ADE integration
AutomatedDeviceEnrollmentIntegrationsAPI.getAdeIntegration(adeTokenId: adeTokenId) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

Name Type Description Notes
adeTokenId String

Return type

Void (empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

listAdeDevices

    open class func listAdeDevices(blueprintId: String? = nil, userId: String? = nil, depAccount: String? = nil, deviceFamily: String? = nil, model: String? = nil, os: String? = nil, profileStatus: String? = nil, serialNumber: String? = nil, page: String? = nil, completion: @escaping (_ data: AutomatedDeviceEnrollmentIntegrationsListAdeDevices200Response?, _ error: Error?) -> Void)

List ADE devices

Get a list of Automated Device Enrollment devices.

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import kandji_sdk

let blueprintId = "blueprintId_example" // String | Return results &quot;containing&quot; the specified blueprint id (optional)
let userId = "userId_example" // String | &quot;exact&quot; match on kandji user ID number (optional)
let depAccount = "" // String | The ADE token UUID (optional)
let deviceFamily = "" // String | Mac, iPhone, iPad, AppleTV, iPod (optional)
let model = "model_example" // String | Return model results &quot;containing&quot; the specified model string. - &quot;iPad (8th Generation)&quot;, &quot;MacBook Air&quot; (optional)
let os = "" // String | OSX, iOS, tvOS (optional)
let profileStatus = "" // String | The automated device enrollment profile assignment status - assigned, empty, pushed, removed (optional)
let serialNumber = "" // String | Search for a specific device by Serial Number. If partial serial number is provided in the query, all device containing the partial string will be returned. (optional)
let page = "page_example" // String | Use the <code>page</code> parameter to page through results or to request a specific page. By default, if a page is not specified, page 1 is returned. Note: 300 device records are returned per page of results. Alternatively, the <code>next</code> and <code>previous</code> key attributes in the response can be used to request the next page of results or return to the previous page. (optional)

// List ADE devices
AutomatedDeviceEnrollmentIntegrationsAPI.listAdeDevices(blueprintId: blueprintId, userId: userId, depAccount: depAccount, deviceFamily: deviceFamily, model: model, os: os, profileStatus: profileStatus, serialNumber: serialNumber, page: page) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

Name Type Description Notes
blueprintId String Return results &quot;containing&quot; the specified blueprint id [optional]
userId String &quot;exact&quot; match on kandji user ID number [optional]
depAccount String The ADE token UUID [optional]
deviceFamily String Mac, iPhone, iPad, AppleTV, iPod [optional]
model String Return model results &quot;containing&quot; the specified model string. - &quot;iPad (8th Generation)&quot;, &quot;MacBook Air&quot; [optional]
os String OSX, iOS, tvOS [optional]
profileStatus String The automated device enrollment profile assignment status - assigned, empty, pushed, removed [optional]
serialNumber String Search for a specific device by Serial Number. If partial serial number is provided in the query, all device containing the partial string will be returned. [optional]
page String Use the <code>page</code> parameter to page through results or to request a specific page. By default, if a page is not specified, page 1 is returned. Note: 300 device records are returned per page of results. Alternatively, the <code>next</code> and <code>previous</code> key attributes in the response can be used to request the next page of results or return to the previous page. [optional]

Return type

AutomatedDeviceEnrollmentIntegrationsListAdeDevices200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

listAdeIntegrations

    open class func listAdeIntegrations(completion: @escaping (_ data: Void?, _ error: Error?) -> Void)

List ADE integrations

This request returns a list of configured ADE integrations.

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import kandji_sdk


// List ADE integrations
AutomatedDeviceEnrollmentIntegrationsAPI.listAdeIntegrations() { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

This endpoint does not need any parameter.

Return type

Void (empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

listDevicesAssociatedToAdeToken

    open class func listDevicesAssociatedToAdeToken(adeTokenId: String, page: String? = nil, completion: @escaping (_ data: AutomatedDeviceEnrollmentIntegrationsListDevicesAssociatedToAdeToken200Response?, _ error: Error?) -> Void)

List devices associated to ADE token

This request returns a list of devices associated with a specified ade_token_id as well as their enrollment status.

When the mdm_device key value is null, this can be taken as an indication that the device is awaiting enrollment into Kandji.

When data is present within the mdm_device dictionary, you can reference the device_id as the ID of the enrolled device record.

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import kandji_sdk

let adeTokenId = "adeTokenId_example" // String | 
let page = "page_example" // String | Use the <code>page</code> parameter to page through results or to request a specific page. By default, if a page is not specified, page 1 is returned. Note: 300 device records are returned per page of results. Alternatively, the <code>next</code> and <code>previous</code> key attributes in the response can be used to request the next page of results or return to the previous page. (optional)

// List devices associated to ADE token
AutomatedDeviceEnrollmentIntegrationsAPI.listDevicesAssociatedToAdeToken(adeTokenId: adeTokenId, page: page) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

Name Type Description Notes
adeTokenId String
page String Use the <code>page</code> parameter to page through results or to request a specific page. By default, if a page is not specified, page 1 is returned. Note: 300 device records are returned per page of results. Alternatively, the <code>next</code> and <code>previous</code> key attributes in the response can be used to request the next page of results or return to the previous page. [optional]

Return type

AutomatedDeviceEnrollmentIntegrationsListDevicesAssociatedToAdeToken200Response

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

renewAdeIntegration

    open class func renewAdeIntegration(adeTokenId: String, blueprintId: String, phone: String, email: String, file: URL, completion: @escaping (_ data: Void?, _ error: Error?) -> Void)

Renew ADE integration

This request will renew an existing ADE integration.

The default blueprint_id, phone number, email address, and MDM server token file from the associated MDM server in ABM are required and must be sent in the request.

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import kandji_sdk

let adeTokenId = "adeTokenId_example" // String | 
let blueprintId = "blueprintId_example" // String | 
let phone = "phone_example" // String | 
let email = "email_example" // String | 
let file = URL(string: "https://example.com")! // URL | This is the MDM server token file(.p7m) download from ABM. Once downloaded from ABM, the file can be uploaded via API.

// Renew ADE integration
AutomatedDeviceEnrollmentIntegrationsAPI.renewAdeIntegration(adeTokenId: adeTokenId, blueprintId: blueprintId, phone: phone, email: email, file: file) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

Name Type Description Notes
adeTokenId String
blueprintId String
phone String
email String
file URL This is the MDM server token file(.p7m) download from ABM. Once downloaded from ABM, the file can be uploaded via API.

Return type

Void (empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateAdeDevice

    open class func updateAdeDevice(deviceId: String, body: String? = nil, completion: @escaping (_ data: AutomatedDeviceEnrollmentIntegrationsGetAdeDevice200Response?, _ error: Error?) -> Void)

Update ADE device

Update a specific Automated Device Enrollment device's blueprint assignment, user assignment, and asset tag.

Request Parameters

device_id (path parameter): The unique identifier of the device.

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import kandji_sdk

let deviceId = "deviceId_example" // String | 
let body = "body_example" // String |  (optional)

// Update ADE device
AutomatedDeviceEnrollmentIntegrationsAPI.updateAdeDevice(deviceId: deviceId, body: body) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

Name Type Description Notes
deviceId String
body String [optional]

Return type

AutomatedDeviceEnrollmentIntegrationsGetAdeDevice200Response

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateAdeIntegration

    open class func updateAdeIntegration(adeTokenId: String, body: String? = nil, completion: @escaping (_ data: Void?, _ error: Error?) -> Void)

Update ADE integration

This request will update the default blueprint, phone number, and email address in an existing ADE integration.

The default blueprint_id, phone number, and email address must be sent in the request.

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import kandji_sdk

let adeTokenId = "adeTokenId_example" // String | 
let body = "body_example" // String |  (optional)

// Update ADE integration
AutomatedDeviceEnrollmentIntegrationsAPI.updateAdeIntegration(adeTokenId: adeTokenId, body: body) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

Name Type Description Notes
adeTokenId String
body String [optional]

Return type

Void (empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]