Enrollments
The following table lists the properties that can be used in the body of an enrollment-related request and/or are provided in the response body. (In the "Optional" column, if a default value is applicable, it is listed in angle brackets (< >).)
Resource: Enrollment
Enrollment URIs and Actions
The following table indicates the URIs that you can append to the root URI, along with the actions you can take, and possible return codes you can receive.
Enrollment URIs and Actions
Example of Using GET for Enrollments
This example demonstrates how to obtain information about all enrollments.
This example uses the following URI:
https://Jeff245.cloudpath.net/admin/publicApi/enrollments
where https://Jeff245.cloudpath.net/admin/publicApi is the root URI of the Cloudpath system being used (must include https, as shown).
The following table shows the required request headers for this URI example, with an example value of an active token that must be pasted into the Authorization header value:
Request Headers
| Key | Value |
|---|---|
| Content-type | application/json |
| Authorization | eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJqZWZmLnJob2RpZUBjb21tc2NvcGUuY29tIiwicm9sZVBrIjoiMjEwMDAiLCJhY2NvdW50QWRtaW5QayI6IjIiLCJhcGlLZXkiOiJaV2NjTGpQZUdZMGUiLCJpYXQiOjE1NzU1NzUxNTcsImV4cCI6MTU3NTU3NTQ1N30.2q4KTyDUevkAAz7mJyp529Be1-ip3EC8P06Xarmz5ao |
None required.
Use the GET action to send the request.Once the request is sent, you will receive a "Status: 200 OK" if the GET is successful. The response body provides information about all existing enrollments, including any abandoned ones (included in the example below).
{
"page": {
"page": 1,
"pageSize": 5,
"totalCount": 5
},
"contents": [
{
"guid": "Enrollment-4718fcaa-d04f-43c3-a3f0-6ef3af6b9d59",
"status": "ACTIVE",
"ipAddress": "10.45.245.129",
"macAddress": "",
"location": "",
"operatingSystem": "Windows 10",
"browser": "Chrome 8",
"formFactor": "",
"expirationDate": "2021-02-18T04:45:11Z",
"voucherApprovalDate": "2021-02-18T04:15:11Z",
"outputType": "NONE",
"createdDate": "2021-02-18T04:15:05Z",
"links": [
{
"rel": "self",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-4718fcaa-d04f-43c3-a3f0-6ef3af6b9d59",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "device",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-4718fcaa-d04f-43c3-a3f0-6ef3af6b9d59/device",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "dpsks",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-4718fcaa-d04f-43c3-a3f0-6ef3af6b9d59/dpsks",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "macRegistrations",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-4718fcaa-d04f-43c3-a3f0-6ef3af6b9d59/macRegistrations",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "variables",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-4718fcaa-d04f-43c3-a3f0-6ef3af6b9d59/variables",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
}
]
},
{
"guid": "Enrollment-6178b32e-94c2-47ec-a9c4-5942b016cb19",
"status": "ACTIVE",
"ipAddress": "10.45.245.129",
"macAddress": "",
"location": "",
"operatingSystem": "Windows 10",
"browser": "Chrome 8",
"formFactor": "",
"expirationDate": "2021-02-18T04:45:02Z",
"voucherApprovalDate": "2021-02-18T04:15:02Z",
"outputType": "NONE",
"createdDate": "2021-02-18T04:14:53Z",
"links": [
{
"rel": "self",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-6178b32e-94c2-47ec-a9c4-5942b016cb19",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "device",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-6178b32e-94c2-47ec-a9c4-5942b016cb19/device",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "dpsks",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-6178b32e-94c2-47ec-a9c4-5942b016cb19/dpsks",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "macRegistrations",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-6178b32e-94c2-47ec-a9c4-5942b016cb19/macRegistrations",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "variables",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-6178b32e-94c2-47ec-a9c4-5942b016cb19/variables",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
}
]
},
{
"guid": "Enrollment-4ef63fa5-4429-40c0-a57e-43bb1eac1f65",
"status": "ACTIVE",
"ipAddress": "10.45.245.129",
"macAddress": "",
"location": "",
"operatingSystem": "Windows 10",
"browser": "Chrome 8",
"formFactor": "",
"expirationDate": "2021-02-18T04:44:45Z",
"voucherApprovalDate": "2021-02-18T04:14:45Z",
"outputType": "NONE",
"createdDate": "2021-02-18T04:14:29Z",
"links": [
{
"rel": "self",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-4ef63fa5-4429-40c0-a57e-43bb1eac1f65",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "device",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-4ef63fa5-4429-40c0-a57e-43bb1eac1f65/device",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "dpsks",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-4ef63fa5-4429-40c0-a57e-43bb1eac1f65/dpsks",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "macRegistrations",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-4ef63fa5-4429-40c0-a57e-43bb1eac1f65/macRegistrations",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "variables",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-4ef63fa5-4429-40c0-a57e-43bb1eac1f65/variables",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
}
]
},
{
"guid": "Enrollment-73ca7a79-8f34-4735-b6e8-ac416580e417",
"status": "ACTIVE",
"ipAddress": "10.45.245.129",
"macAddress": "",
"location": "",
"operatingSystem": "Windows 10",
"browser": "Chrome 8",
"formFactor": "",
"expirationDate": "2021-02-18T04:41:34Z",
"voucherApprovalDate": "2021-02-18T04:11:34Z",
"outputType": "NONE",
"createdDate": "2021-02-18T04:11:26Z",
"links": [
{
"rel": "self",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-73ca7a79-8f34-4735-b6e8-ac416580e417",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "device",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-73ca7a79-8f34-4735-b6e8-ac416580e417/device",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "dpsks",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-73ca7a79-8f34-4735-b6e8-ac416580e417/dpsks",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "macRegistrations",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-73ca7a79-8f34-4735-b6e8-ac416580e417/macRegistrations",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "variables",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-73ca7a79-8f34-4735-b6e8-ac416580e417/variables",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
}
]
},
{
"guid": "Enrollment-7084b41a-ed46-48bd-97fb-3b5247f637b0",
"status": "ABANDONED",
"ipAddress": "10.45.245.129",
"macAddress": "",
"location": "",
"operatingSystem": "Windows 10",
"browser": "Chrome 8",
"formFactor": "",
"outputType": "NONE",
"createdDate": "2021-02-18T04:06:44Z",
"links": [
{
"rel": "self",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-7084b41a-ed46-48bd-97fb-3b5247f637b0",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "device",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-7084b41a-ed46-48bd-97fb-3b5247f637b0/device",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "dpsks",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-7084b41a-ed46-48bd-97fb-3b5247f637b0/dpsks",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "macRegistrations",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-7084b41a-ed46-48bd-97fb-3b5247f637b0/macRegistrations",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "variables",
"href": "https://jeff245.cloudpath.net/admin/publicApi/enrollments/Enrollment-7084b41a-ed46-48bd-97fb-3b5247f637b0/variables",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
}
]
}
]
}