Radius Accounting profiles API

create new entry

POST /api/rest/admin/radius-accounting-profiles

Parameters

Name Description
data[type] Resource type (radius-accounting-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

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjE0LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzY3MzU4NTU5fQ.f3MsR9UKbjYno4x-CjRgnQQU-7jvdT2W4bKgdxk2INI
Host: example.org
Cookie: 

Route

POST /api/rest/admin/radius-accounting-profiles

Body

{"data":{"type":"radius-accounting-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-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/vnd.api+json
location: http://example.org/api/rest/admin/radius-accounting-profiles/4
vary: Accept
etag: W/"fb0d9ea108110cdea91a3d8ca7232e65"
cache-control: max-age=0, private, must-revalidate
x-request-id: 21c23bf5-de93-42fa-b9a3-a9265863c868
x-runtime: 0.016609
content-length: 367

Status

201 Created

Body

{
  "data": {
    "id": "4",
    "type": "radius-accounting-profiles",
    "links": {
      "self": "http://example.org/api/rest/admin/radius-accounting-profiles/4"
    },
    "attributes": {
      "name": "name",
      "server": "server",
      "port": 1,
      "secret": "secret",
      "timeout": 100,
      "attempts": 2,
      "enable-start-accounting": false,
      "enable-interim-accounting": false,
      "interim-accounting-interval": 30,
      "enable-stop-accounting": true
    }
  }
}