Fortinet white logo
Fortinet white logo

Rest API

7.2.0

Post /policy/logical-network-configuration/batch-upsert

Post /policy/logical-network-configuration/batch-upsert

Description

Performs add or modify requests for a series of logical network configurations at once.

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/logical-network-configuration/batch-upsert

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": "]4%.c/'Xe06z$j",

"description": "string",

"guid": 0,

"globalModifiedDate": "2023-11-23T01:25:43.473Z",

"dbid": 0,

"yamsEventTag": "string",

"auditObj": {

"user": "string",

"action": "string",

"timestamp": "2023-11-23T01:25:43.473Z",

"liveObj": {

"yamsEventTag": "string",

"auditObj": "string"

},

"auditDBID": 0,

"liveDBID": 0,

"yamsEventTag": "string",

"auditObj": "string"

},

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

}

},

"sendGroupsToFirewall": true,

"firewallGroups": [

0

],

"radiusAttributeGroupId": 0,

"guid": 0,

"globalModifiedDate": "2023-11-23T01:25:43.473Z",

"elementId": 0,

"logicalNetworkID": 0,

"elementID": 0,

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

},

"networkID": 0,

"task": {

"eventTag": "string",

"taskType": "string",

"elementType": "string",

"nameTag": "string",

"scheduledObjectType": "string",

"state": "string",

"id": 0,

"landscape": 0,

"version": 0

},

"accessValue": "string",

"yamsEventTag": "string",

"accessActionStr": "string",

"logicalNetworkName": "string",

"id": 0,

"requestedTags": [

"string"

],

"tags": [

"string"

]

}

Sample Response

{

"status": "success",

"errorMessage": null

}

Post /policy/logical-network-configuration/batch-upsert

Post /policy/logical-network-configuration/batch-upsert

Description

Performs add or modify requests for a series of logical network configurations at once.

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/logical-network-configuration/batch-upsert

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": "]4%.c/'Xe06z$j",

"description": "string",

"guid": 0,

"globalModifiedDate": "2023-11-23T01:25:43.473Z",

"dbid": 0,

"yamsEventTag": "string",

"auditObj": {

"user": "string",

"action": "string",

"timestamp": "2023-11-23T01:25:43.473Z",

"liveObj": {

"yamsEventTag": "string",

"auditObj": "string"

},

"auditDBID": 0,

"liveDBID": 0,

"yamsEventTag": "string",

"auditObj": "string"

},

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

}

},

"sendGroupsToFirewall": true,

"firewallGroups": [

0

],

"radiusAttributeGroupId": 0,

"guid": 0,

"globalModifiedDate": "2023-11-23T01:25:43.473Z",

"elementId": 0,

"logicalNetworkID": 0,

"elementID": 0,

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

},

"networkID": 0,

"task": {

"eventTag": "string",

"taskType": "string",

"elementType": "string",

"nameTag": "string",

"scheduledObjectType": "string",

"state": "string",

"id": 0,

"landscape": 0,

"version": 0

},

"accessValue": "string",

"yamsEventTag": "string",

"accessActionStr": "string",

"logicalNetworkName": "string",

"id": 0,

"requestedTags": [

"string"

],

"tags": [

"string"

]

}

Sample Response

{

"status": "success",

"errorMessage": null

}