Fortinet white logo
Fortinet white logo

Rest API

7.2.0

Post /radius/radius-server-config/{id}

Post /radius/radius-server-config/{id}

Description

Update an existing RADIUS server configuration object.

Request Parameter

Id, the RADIUS server configuration object ID.

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

Sample Request

Request URL

POST https://10.106.94.152:8443/api/v2/radius/radius-server-config/1

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

{

"dbid": 0,

"name": "string",

"authPort": 0,

"tlsConfigID": 0,

"allowAnyWinbindConfig": true,

"winbindConfigurations": [

{

"dbid": 0,

"name": "string",

"workgroup": "string",

"localNetbios": "string",

"localNetbiosSecondary": "string",

"security": "string",

"realm": "string",

"logLevel": 0,

"passwordServer": "string",

"virtual": true,

"joined": true,

"logLevelStr": "string",

"valid": true,

"yamsEventTag": "string",

"auditObj": {

"user": "string",

"action": "string",

"timestamp": "2024-01-25T23:37:12.270Z",

"liveObj": {

"yamsEventTag": "string",

"auditObj": "string"

},

"auditDBID": 0,

"liveDBID": 0,

"yamsEventTag": "string",

"auditObj": "string"

}

}

],

"enabledEapTypes": [

"string"

],

"ocspEnabled": true,

"tlsEapTlsFragmentSize": 0,

"tlsCommonFragmentSize": 0,

"fastPacKey": "string",

"eapFastServerUnauthenticatedProvisioning": true,

"eapFastServerAuthenticatedProvisioning": true

}

Sample Response

{

"status": "success",

"errorMessage": null,

"results": [

{

"dbid": 1,

"name": "DefaultConfig",

"tlsServiceConfiguration": {

"id": 2,

"lastModifiedBy": "SYSTEM",

"lastModifiedDate": "2024-01-17T01:28:42.000+0000",

"name": "RADIUS EAP 9f8fbecb-7b6c-4403-b7f6-aae9595531ff",

"ciphers": "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",

"tlsProtocols": "TLSv1.2",

"certAlias": "radius",

"clientAuthMode": "OPTIONAL",

"clientAuthAliases": "radius_trust",

"autoUpdateCiphersAndProtocols": true,

"globalModifiedDate": "2023-08-25T17:40:36.000+0000",

"GUID": null

},

"winbindConfigurations": [],

"tlsEapTlsFragmentSize": 1002,

"tlsCommonFragmentSize": 1200,

"eapFastServerUnauthenticatedProvisioning": false,

"eapFastServerAuthenticatedProvisioning": false,

"tlsConfigID": 2,

"lastModifiedBy": "SYSTEM",

"lastModifiedDate": "2023-08-25T17:40:36.000+0000",

"allowAnyWinbindConfig": true,

"ocspEnabled": false,

"enabledEapTypes": [

"TTLS",

"PEAP",

"MD5",

"GTC",

"MSCHAPV2"

],

"winbindConfigStr": "All",

"tlsConfigName": "RADIUS EAP 9f8fbecb-7b6c-4403-b7f6-aae9595531ff",

"tlsCertificateAlias": "radius"

}

]

}

Post /radius/radius-server-config/{id}

Post /radius/radius-server-config/{id}

Description

Update an existing RADIUS server configuration object.

Request Parameter

Id, the RADIUS server configuration object ID.

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

Sample Request

Request URL

POST https://10.106.94.152:8443/api/v2/radius/radius-server-config/1

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

{

"dbid": 0,

"name": "string",

"authPort": 0,

"tlsConfigID": 0,

"allowAnyWinbindConfig": true,

"winbindConfigurations": [

{

"dbid": 0,

"name": "string",

"workgroup": "string",

"localNetbios": "string",

"localNetbiosSecondary": "string",

"security": "string",

"realm": "string",

"logLevel": 0,

"passwordServer": "string",

"virtual": true,

"joined": true,

"logLevelStr": "string",

"valid": true,

"yamsEventTag": "string",

"auditObj": {

"user": "string",

"action": "string",

"timestamp": "2024-01-25T23:37:12.270Z",

"liveObj": {

"yamsEventTag": "string",

"auditObj": "string"

},

"auditDBID": 0,

"liveDBID": 0,

"yamsEventTag": "string",

"auditObj": "string"

}

}

],

"enabledEapTypes": [

"string"

],

"ocspEnabled": true,

"tlsEapTlsFragmentSize": 0,

"tlsCommonFragmentSize": 0,

"fastPacKey": "string",

"eapFastServerUnauthenticatedProvisioning": true,

"eapFastServerAuthenticatedProvisioning": true

}

Sample Response

{

"status": "success",

"errorMessage": null,

"results": [

{

"dbid": 1,

"name": "DefaultConfig",

"tlsServiceConfiguration": {

"id": 2,

"lastModifiedBy": "SYSTEM",

"lastModifiedDate": "2024-01-17T01:28:42.000+0000",

"name": "RADIUS EAP 9f8fbecb-7b6c-4403-b7f6-aae9595531ff",

"ciphers": "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",

"tlsProtocols": "TLSv1.2",

"certAlias": "radius",

"clientAuthMode": "OPTIONAL",

"clientAuthAliases": "radius_trust",

"autoUpdateCiphersAndProtocols": true,

"globalModifiedDate": "2023-08-25T17:40:36.000+0000",

"GUID": null

},

"winbindConfigurations": [],

"tlsEapTlsFragmentSize": 1002,

"tlsCommonFragmentSize": 1200,

"eapFastServerUnauthenticatedProvisioning": false,

"eapFastServerAuthenticatedProvisioning": false,

"tlsConfigID": 2,

"lastModifiedBy": "SYSTEM",

"lastModifiedDate": "2023-08-25T17:40:36.000+0000",

"allowAnyWinbindConfig": true,

"ocspEnabled": false,

"enabledEapTypes": [

"TTLS",

"PEAP",

"MD5",

"GTC",

"MSCHAPV2"

],

"winbindConfigStr": "All",

"tlsConfigName": "RADIUS EAP 9f8fbecb-7b6c-4403-b7f6-aae9595531ff",

"tlsCertificateAlias": "radius"

}

]

}