Fortinet white logo
Fortinet white logo

Rest API

7.4.0

Post /policy/access/{id}

Post /policy/access/{id}

Description

Updates an Access Policy record.

Request Parameter

Id, the Access Policy 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/1

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

{

"dbid": 0,

"rank": 0,

"version": 0,

"lastModifiedBy": "string",

"lastModifiedDate": "2024-03-07T19:40:08.791Z",

"name": "string",

"note": "string",

"profile": {

"name": "string",

"note": "string",

"guid": 0,

"globalModifiedDate": "2024-03-07T19:40:08.791Z",

"groupIDs": [

0

],

"filterSet": [

"string"

],

"weeklySchedule": {

"version": 0,

"startTimeOfDay": 0,

"endTimeOfDay": 0,

"daysOfWeek": 0,

"validTime": true,

"alwaysOn": true,

"startTimeOfDayAM": true,

"endTimeOfDayAM": true,

"startTimeOfDayHours": 0,

"endTimeOfDayHours": 0,

"startTimeOfDayMinutes": 0,

"endTimeOfDayMinutes": 0

},

"catchAll": true,

"locationIDs": [

0

],

"dbid": 0,

"locationOperator": "OR",

"groupOperator": "OR",

"groupNames": [

"string"

],

"radiusFilterSet": [

{

"enabled": true,

"methodType": {

"id": 0,

"name": "string",

"shortName": "string"

},

"version": 0,

"encrypted": true,

"priority": 0,

"attributeFilters": {

"additionalProp1": "string",

"additionalProp2": "string",

"additionalProp3": "string"

},

"methodTypeString": "string"

}

],

"locationNames": [

"string"

]

},

"configuration": {

"name": "string",

"note": "string",

"taskID": 0,

"access": "string",

"accessAction": 0,

"alias": true,

"logicalNetwork": {

"id": 0,

"name": "G~ry|qYEtd(@3peM;o8UD'sQ@O>+XIb>r\\D}VKKbh@sBCHrOuPc>4h*0M!)cxdC71vwRK?QSS'[4sl-0aQd{[96;=H,>s8",

"description": "string",

"guid": 0,

"globalModifiedDate": "2024-03-07T19:40:08.792Z",

"dbid": 0,

"auditObj": {

"auditDBID": 0,

"liveDBID": 0,

"liveObj": {

"auditObj": "string",

"yamsEventTag": "string"

},

"user": "string",

"action": "string",

"timestamp": "2024-03-07T19:40:08.792Z",

"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-07T19:40:08.792Z",

"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"

]

},

"enabled": true,

"guid": 0,

"globalModifiedDate": "2024-03-07T19:40:08.792Z",

"auditObj": {

"auditDBID": 0,

"liveDBID": 0,

"liveObj": {

"auditObj": "string",

"yamsEventTag": "string"

},

"user": "string",

"action": "string",

"timestamp": "2024-03-07T19:40:08.792Z",

"auditObj": "string",

"yamsEventTag": "string"

},

"yamsEventTag": "string",

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

},

"filterSet": [

"string"

],

"weeklySchedule": {

"version": 0,

"startTimeOfDay": 0,

"endTimeOfDay": 0,

"daysOfWeek": 0,

"validTime": true,

"alwaysOn": true,

"startTimeOfDayAM": true,

"endTimeOfDayAM": true,

"startTimeOfDayHours": 0,

"endTimeOfDayHours": 0,

"startTimeOfDayMinutes": 0,

"endTimeOfDayMinutes": 0

},

"configurationName": "string"

}

Sample Response

{

"status": "string",

"errorMessage": "string"

}

Post /policy/access/{id}

Post /policy/access/{id}

Description

Updates an Access Policy record.

Request Parameter

Id, the Access Policy 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/1

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

{

"dbid": 0,

"rank": 0,

"version": 0,

"lastModifiedBy": "string",

"lastModifiedDate": "2024-03-07T19:40:08.791Z",

"name": "string",

"note": "string",

"profile": {

"name": "string",

"note": "string",

"guid": 0,

"globalModifiedDate": "2024-03-07T19:40:08.791Z",

"groupIDs": [

0

],

"filterSet": [

"string"

],

"weeklySchedule": {

"version": 0,

"startTimeOfDay": 0,

"endTimeOfDay": 0,

"daysOfWeek": 0,

"validTime": true,

"alwaysOn": true,

"startTimeOfDayAM": true,

"endTimeOfDayAM": true,

"startTimeOfDayHours": 0,

"endTimeOfDayHours": 0,

"startTimeOfDayMinutes": 0,

"endTimeOfDayMinutes": 0

},

"catchAll": true,

"locationIDs": [

0

],

"dbid": 0,

"locationOperator": "OR",

"groupOperator": "OR",

"groupNames": [

"string"

],

"radiusFilterSet": [

{

"enabled": true,

"methodType": {

"id": 0,

"name": "string",

"shortName": "string"

},

"version": 0,

"encrypted": true,

"priority": 0,

"attributeFilters": {

"additionalProp1": "string",

"additionalProp2": "string",

"additionalProp3": "string"

},

"methodTypeString": "string"

}

],

"locationNames": [

"string"

]

},

"configuration": {

"name": "string",

"note": "string",

"taskID": 0,

"access": "string",

"accessAction": 0,

"alias": true,

"logicalNetwork": {

"id": 0,

"name": "G~ry|qYEtd(@3peM;o8UD'sQ@O>+XIb>r\\D}VKKbh@sBCHrOuPc>4h*0M!)cxdC71vwRK?QSS'[4sl-0aQd{[96;=H,>s8",

"description": "string",

"guid": 0,

"globalModifiedDate": "2024-03-07T19:40:08.792Z",

"dbid": 0,

"auditObj": {

"auditDBID": 0,

"liveDBID": 0,

"liveObj": {

"auditObj": "string",

"yamsEventTag": "string"

},

"user": "string",

"action": "string",

"timestamp": "2024-03-07T19:40:08.792Z",

"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-07T19:40:08.792Z",

"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"

]

},

"enabled": true,

"guid": 0,

"globalModifiedDate": "2024-03-07T19:40:08.792Z",

"auditObj": {

"auditDBID": 0,

"liveDBID": 0,

"liveObj": {

"auditObj": "string",

"yamsEventTag": "string"

},

"user": "string",

"action": "string",

"timestamp": "2024-03-07T19:40:08.792Z",

"auditObj": "string",

"yamsEventTag": "string"

},

"yamsEventTag": "string",

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

},

"filterSet": [

"string"

],

"weeklySchedule": {

"version": 0,

"startTimeOfDay": 0,

"endTimeOfDay": 0,

"daysOfWeek": 0,

"validTime": true,

"alwaysOn": true,

"startTimeOfDayAM": true,

"endTimeOfDayAM": true,

"startTimeOfDayHours": 0,

"endTimeOfDayHours": 0,

"startTimeOfDayMinutes": 0,

"endTimeOfDayMinutes": 0

},

"configurationName": "string"

}

Sample Response

{

"status": "string",

"errorMessage": "string"

}