Post /policy/authentication
Description
Creates a new Authentication Policy record, updating instead if the supplied policy has a DBID of one that already exists.
Request Headers
Key |
Value |
Type |
Description |
---|---|---|---|
Authorization | Bearer <Authorization Token> | String | Authorization credential generated by FortiNAC |
Content-Type (option 1) | application/json | String | |
Content-Type (option 2) |
application/xml |
|
|
Request Body Parameters
Name |
Required |
Type |
---|---|---|
dbid | Yes | Integer |
name |
Yes |
String |
enabled |
Yes |
boolean |
rank |
Yes |
Integer |
profile |
Yes |
Array |
configuration |
Yes |
Array |
Sample Request
Request URL |
POST https://10.106.94.152:8443/api/v2/policy/authentication |
Request Header |
Authorization: Bearer <Authorization_Token> Content-Type: application/json
|
Request Body (Raw) |
{ "dbid": 1, "name": "Global Authentication Conversion", "note": "Converted from Global Authentication Policy - Fri Aug 25 13:40:35 EDT 2023", "enabled": true, "rank": 1, "version": 0, "profile": { "DBID": 1 }, "configuration": { "id": "1" } } |
Sample Response
{
"status": "success",
"errorMessage": null
}