MAC Registrations
The following table lists the properties that can be used in the body of a MAC-registration 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: MacRegistration
Resource: revokeInfo
| Property Name | Type | Editable | Filter/Sort | Optional in Request/Response Body? | Description |
|---|---|---|---|---|---|
| date | String <date> | Yes | orderBy, like | No | The ISO 8601 date time that this registration was revoked. |
| reason | String | No | orderBy, like | No | The reason that the registration was revoked. |
| status | Enum | Yes | orderBy, like | No | Status of the registration, either ACTIVE, REVOKED or EXPIRED. If not provided, the status defaults to "Active". The status can only be set to REVOKED or ACTIVE. EXPIRED is dependent on the expired date of this registration. |
MAC Registration 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.
MAC Registration URIs and Actions
Example of Using GET to Obtain Information About a Specific MAC-Registration List
This example demonstrates how to obtain information about a specific MAC-registration list in your Cloudpath system by using the REST API GET call.
This example uses the following URI:
https://Jeff243.cloudpath.net/admin/publicApi/registrationLists/WorkflowRegistration-2de79119-f1da-4b7e-84b8-b0482911cae1/macRegistrations
- https://Jeff243.cloudpath.net/admin/publicApi is the root URI of the Cloudpath system being used (must include https, as shown)
- WorkflowRegistration-2de79119-f1da-4b7e-84b8-b0482911cae1 is the GUID of the MAC registration list. This GUID can be found by doing a GET request on all the registration lists in the Cloudpath system. For more information, refer to Registration Lists URIs and Actions.
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 |
No request body is 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.
{
"page": {
"page": 1,
"pageSize": 3,
"totalCount": 3
},
"contents": [
{
"guid": "5",
"macAddress": "AB:BC:DD:EE:FF:DC",
"status": "ACTIVE",
"username": "",
"deviceName": "",
"location": "",
"email": "",
"expirationDate": "2020-07-28T22:07:52Z",
"links": [
{
"rel": "self",
"href": "https://jeff243.cloudpath.net/admin/publicApi/registrationLists/WorkflowRegistration-2de79119-f1da-4b7e-84b8-b0482911cae1/macRegistrations/5",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "parent",
"href": "https://jeff243.cloudpath.net/admin/publicApi/registrationLists/WorkflowRegistration-2de79119-f1da-4b7e-84b8-b0482911cae1",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
}
]
},
{
"guid": "2",
"macAddress": "AA:BB:CC:DD:EE:FF",
"status": "REVOKED",
"username": "",
"deviceName": "",
"location": "",
"email": "",
"expirationDate": "2020-07-28T22:05:39Z",
"revokeInfo": {
"date": "2020-07-27T22:06:54Z",
"reason": "Updated MAC registration for same MAC address was imported",
"user": null
},
"links": [
{
"rel": "self",
"href": "https://jeff243.cloudpath.net/admin/publicApi/registrationLists/WorkflowRegistration-2de79119-f1da-4b7e-84b8-b0482911cae1/macRegistrations/2",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "parent",
"href": "https://jeff243.cloudpath.net/admin/publicApi/registrationLists/WorkflowRegistration-2de79119-f1da-4b7e-84b8-b0482911cae1",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
}
]
},
{
"guid": "1",
"macAddress": "AA:BB:CC:DD:EE:FF",
"status": "REVOKED",
"username": "",
"deviceName": "",
"location": "",
"email": "",
"expirationDate": "2020-07-28T21:33:06Z",
"revokeInfo": {
"date": "2020-07-27T22:05:46Z",
"reason": "Updated MAC registration for same MAC address was imported",
"user": null
},
"links": [
{
"rel": "self",
"href": "https://jeff243.cloudpath.net/admin/publicApi/registrationLists/WorkflowRegistration-2de79119-f1da-4b7e-84b8-b0482911cae1/macRegistrations/1",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "parent",
"href": "https://jeff243.cloudpath.net/admin/publicApi/registrationLists/WorkflowRegistration-2de79119-f1da-4b7e-84b8-b0482911cae1",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
}
]
}
]
}