RADIUS Attribute Groups
The following table lists the properties that can be used in the body of a RADIUS attribute groups-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: RadiusAttributeGroup
The following table lists the additional-attribute properties to apply to RADIUS configurations that can be used in the body of a DPSK-pool-related request and/or are provided in the response body.
Resource: Attribute
| Property Name | Type | Editable | Filter or Sort | Optional? | Description |
|---|---|---|---|---|---|
| name | String | Yes | No | No | The RADIUS attribute to use. |
| action | String <Enum> | Yes | No | No | The action to take must be one of the following: ADD, ADD_OR_REPLACE, or ADD_MULTIPLE. |
| value | String | Yes | No | No | The value to substitute. |
RADIUS Attribute Groups 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.
RADIUS Attribute Groups URIs and Actions
Example of Using POST to Create a RADIUS Attribute Group
This example demonstrates how to create a new RADIUS attribute group in your Cloudpath system by using the REST API POST call.
This example uses the following URI:
https://Jeff243.cloudpath.net/admin/publicApi/radiusAttributeGroups
where https://Jeff243.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 |
The following is an example of a request body for creating a RADIUS attribute group. You can refer to the preceding Resource tables for a list and descriptions of properties you can use to define your RADIUS attribute group. For instance, in this example, a RADIUS attribute group called "RadGroup22" is being created with the values provided in the body.
{
"name": "RadGroup22",
"description": "test group",
"vlanid": "10",
"filterid": 15,
"sessionTimeout": 333
}
Use the POST action to send the request.
Once the request is sent, you will receive a "Status: 201 Created" if the POST is successful. You can see that a "guid" (a unique identifier for the newly created RADIUS attribute group) is included in the response body.
{
"guid": "1",
"name": "RadGroup22",
"description": "test group",
"vlanid": "10",
"filterid": "15",
"classid": null,
"sessionTimeout": "333",
"policyCount": 0,
"additionalAttributes": [],
"links": [
{
"rel": "self",
"href": "https://jeff243.cloudpath.net/admin/publicApi/radiusAttributeGroups/1",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
}
]
}