Fortinet white logo
Fortinet white logo

Rest API

7.2.0

Post /policy/access-configuration/{id}

Post /policy/access-configuration/{id}

Description

Updates an Access Configuration record.

Request Parameter

Id, the Access Configuration record 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/policy/access-configuration/3

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

{

"name": "string",

"note": "string",

"taskID": 0,

"access": "string",

"accessAction": 0,

"alias": true,

"logicalNetwork": {

"id": 0,

"name": "@EreL010Vp'N~KJ_bJLAEQ(X1c3N-.+TI4U1t6x%HExRVTZ)ycU<\\d$JX(c;eH;{8IqY&CM",

"description": "string",

"guid": 0,

"globalModifiedDate": "2024-03-06T23:37:55.143Z",

"dbid": 0,

"auditObj": {

"auditDBID": 0,

"liveDBID": 0,

"liveObj": {

"auditObj": "string",

"yamsEventTag": "string"

},

"user": "string",

"action": "string",

"timestamp": "2024-03-06T23:37:55.143Z",

"auditObj": "string",

"yamsEventTag": "string"

},

"yamsEventTag": "string",

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

}

},

"sendGroupsToFirewall": true,

"firewallGroups": [

0

],

"radiusAttributeGroupId": 0,

"guid": 0,

"globalModifiedDate": "2024-03-06T23:37:55.143Z",

"yamsEventTag": "string",

"accessValue": "string",

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

},

"logicalNetworkID": 0,

"task": {

"elementType": "string",

"nameTag": "string",

"eventTag": "string",

"scheduledObjectType": "string",

"taskType": "string",

"landscape": 0,

"id": 0,

"state": "string",

"version": 0

},

"logicalNetworkName": "string",

"accessActionStr": "string",

"id": 0,

"requestedTags": [

"string"

],

"tags": [

"string"

]

}

Sample Response

{

"status": "string",

"errorMessage": "string"

}

Post /policy/access-configuration/{id}

Post /policy/access-configuration/{id}

Description

Updates an Access Configuration record.

Request Parameter

Id, the Access Configuration record 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/policy/access-configuration/3

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

{

"name": "string",

"note": "string",

"taskID": 0,

"access": "string",

"accessAction": 0,

"alias": true,

"logicalNetwork": {

"id": 0,

"name": "@EreL010Vp'N~KJ_bJLAEQ(X1c3N-.+TI4U1t6x%HExRVTZ)ycU<\\d$JX(c;eH;{8IqY&CM",

"description": "string",

"guid": 0,

"globalModifiedDate": "2024-03-06T23:37:55.143Z",

"dbid": 0,

"auditObj": {

"auditDBID": 0,

"liveDBID": 0,

"liveObj": {

"auditObj": "string",

"yamsEventTag": "string"

},

"user": "string",

"action": "string",

"timestamp": "2024-03-06T23:37:55.143Z",

"auditObj": "string",

"yamsEventTag": "string"

},

"yamsEventTag": "string",

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

}

},

"sendGroupsToFirewall": true,

"firewallGroups": [

0

],

"radiusAttributeGroupId": 0,

"guid": 0,

"globalModifiedDate": "2024-03-06T23:37:55.143Z",

"yamsEventTag": "string",

"accessValue": "string",

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

},

"logicalNetworkID": 0,

"task": {

"elementType": "string",

"nameTag": "string",

"eventTag": "string",

"scheduledObjectType": "string",

"taskType": "string",

"landscape": 0,

"id": 0,

"state": "string",

"version": 0

},

"logicalNetworkName": "string",

"accessActionStr": "string",

"id": 0,

"requestedTags": [

"string"

],

"tags": [

"string"

]

}

Sample Response

{

"status": "string",

"errorMessage": "string"

}