Auth profiles API

create new entry

POST /api/rest/admin/equipment/radius/auth-profiles

Parameters

Name Description
data[type] Resource type (auth-profiles)
data[attributes][name] Name
data[attributes][server] Server
data[attributes][port] Port
data[attributes][secret] Secret
data[attributes][timeout] Timeout
data[attributes][attempts] Attempts
data[attributes][enable-start-accounting] Enable start accounting
data[attributes][enable-interim-accounting] Enable interim accounting
data[attributes][interim-accounting-interval] Interim accounting interval
data[attributes][enable-stop-accounting] Enable stop accounting

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MTAyNTQ3MzEsInN1YiI6OTJ9.lyWUI4nzpGpVEsGtYmvrM6zMn9I9vdK1nG8QJFQgSCM
Host: example.org
Cookie: 

Route

POST /api/rest/admin/equipment/radius/auth-profiles

Body

{"data":{"type":"auth-profiles","attributes":{"name":"name","server":"server","port":"1","secret":"secret","timeout":100,"attempts":2}}}

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/vnd.api+json
Vary: Accept
ETag: W/"2218368405c41dc026e7767ddbaff589"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 20f3a91a-c977-496f-a78b-177d86561b70
X-Runtime: 0.015364
Content-Length: 252

Status

201 Created

Body

{
  "data": {
    "id": "4",
    "type": "auth-profiles",
    "links": {
      "self": "http://example.org/api/rest/admin/equipment/radius/auth-profiles/4"
    },
    "attributes": {
      "name": "name",
      "server": "server",
      "port": 1,
      "secret": "secret",
      "reject-on-error": true,
      "timeout": 100,
      "attempts": 2
    }
  }
}