Registration Lists
The following table lists the properties that can be used in the body of a registration lists-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: RegistrationList
Resource: redirectInfo
| Property Name | Type | Editable | Filter/Sort | Optional in Request/Response Body? | Description |
|---|---|---|---|---|---|
| redirectUrl | String | No | Neither | Yes | The URL where the user is redirected. |
| usePost | Boolean | No | Neither | Yes (default is false) | If the value is set to true, a POST will be used for the redirect; if the value is set to false, a GET will be used. |
| postParameters | List <string> | No | Neither | Yes | If the value of the "usePost" poperty is true, this contains a list of string POST parameters that are supplied with the redirect request. The parameters are provided in the format: key=value |
| allowContinuation | Boolean | No | Neither | Yes (default is true) | If true, the submit-redirect call is processed; if false, the submit-redirect call is ignored. |
| killSession | Boolean | No | Neither | Yes (default is false) | If true, the user's session ends and they are redirected. If they return, they are forced to start over. |
Resource: promptInfo
| Property Name | Type | Editable | Filter/Sort | Optional in Request/Response Body? | Description |
|---|---|---|---|---|---|
| title | String | No | Neither | Yes | The title of the prompt content. |
| promptText | String | No | Neither | Yes | The message that appears in the prompt. |
| macAddressLabel | String | No | Neither | Yes | The label next to the MAC address text box. |
| helpLinkCaption | String | No | Neither | Yes | The text used as the help link. |
| helpLinkUrl | String | No | Neither | Yes | The URL for the help link. |
| continueButtonLabel | String | No | Neither | Yes | The label displayed on the Continue button. |
| invalidMacErrorMessage | String | No | Neither | Yes | The error message displayed to the user if the MAC address is not properly formatted. |
Resource: expirationDateRule
Registration Lists 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.
Example of Using GET to Obtain All Registration Lists
This example demonstrates how to obtain all registration lists in your Cloudpath system by using the REST API GET call.
This example uses the following URI:
https://Jeff243.cloudpath.net/admin/apiv2/5XcTc6SjkHDL/registrationLists
- https://Jeff243.cloudpath.net/admin/apiv2 is the root URI of the Cloudpath system being used (must include https, as shown)
- 5XcTc6SjkHDL is an example of an API key generated from the Configuration > API Keys section of the Cloudpath UI
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 needed.
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": 2,
"totalCount": 2
},
"contents": [
{
"guid": "WorkflowRegistration-2de79119-f1da-4b7e-84b8-b0482911cae1",
"name": "Mac reg 12",
"description": "",
"sequence": 1,
"ssidRegex": "ssid12",
"expirationDateRule": {
"type": "DAYS_AFTER_TIME",
"offset": 1
},
"behavior": "ALWAYS_REDIRECT",
"redirectInfo": {
"redirectUrl": "https://wlan.cloudpath.net",
"usePost": true,
"postParameters": [
"username=bob"
],
"allowContinuation": true,
"killSession": false
},
"autoCleanup": false,
"links": [
{
"rel": "self",
"href": "https://jeff243.cloudpath.net/admin/apiv2/5XcTc6SjkHDL/registrationLists/WorkflowRegistration-2de79119-f1da-4b7e-84b8-b0482911cae1",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "macRegistrations",
"href": "https://jeff243.cloudpath.net/admin/apiv2/5XcTc6SjkHDL/registrationLists/WorkflowRegistration-2de79119-f1da-4b7e-84b8-b0482911cae1/macRegistrations?page=1&pageSize=10{&filter,orderBy}",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
}
]
},
{
"guid": "WorkflowRegistration-3802eb98-7c97-4949-80b4-6ec9901e1a4a",
"name": "Mac reg 13",
"description": "",
"sequence": 2,
"ssidRegex": "ssid13",
"expirationDateRule": {
"type": "DAYS_AFTER_TIME",
"offset": 1
},
"behavior": "ALWAYS_REDIRECT",
"redirectInfo": {
"redirectUrl": "https://cloudpath.com.net",
"usePost": false,
"allowContinuation": true,
"killSession": false
},
"autoCleanup": false,
"links": [
{
"rel": "self",
"href": "https://jeff243.cloudpath.net/admin/apiv2/5XcTc6SjkHDL/registrationLists/WorkflowRegistration-3802eb98-7c97-4949-80b4-6ec9901e1a4a",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "macRegistrations",
"href": "https://jeff243.cloudpath.net/admin/apiv2/5XcTc6SjkHDL/registrationLists/WorkflowRegistration-3802eb98-7c97-4949-80b4-6ec9901e1a4a/macRegistrations?page=1&pageSize=10{&filter,orderBy}",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
}
]
}
]
}