Fortinet white logo
Fortinet white logo

Rest API

7.4.0

Get /policy/role-mapping

Get /policy/role-mapping

Description

Return a list of role mapping records matching the supplied filter.

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

filter Optional Array
start Optional Integer
count Optional Integer
sortKey Optional String
sortDir Optional String

Sample Request

Request URL

Get https://10.106.94.152:8443/api/v2/policy/role-mapping

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Sample Response

{

"status": "string",

"errorMessage": "string",

"results": [

{

"dbid": 0,

"rank": 0,

"version": 0,

"lastModifiedBy": "string",

"lastModifiedDate": "2024-01-27T00:37:19.510Z",

"roleID": 0,

"note": "string",

"logicalNetwork": {

"lastModifiedBy": "string",

"lastModifiedDate": "2024-01-27T00:37:19.510Z",

"id": 0,

"name": ":-GdWsVU->:aFcsuc+:Y&q}E;$&4VWh,Kzdv_Y~Md/F.*3JcK`tp8\\H/A(~fT,Wll7y+Z0l6xN+p.z0J\"",

"description": "string",

"guid": 0,

"globalModifiedDate": "2024-01-27T00:37:19.512Z",

"dbid": 0,

"yamsEventTag": "string",

"auditObj": {

"user": "string",

"action": "string",

"timestamp": "2024-01-27T00:37:19.512Z",

"liveObj": {

"yamsEventTag": "string",

"auditObj": "string"

},

"auditDBID": 0,

"liveDBID": 0,

"yamsEventTag": "string",

"auditObj": "string"

},

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

}

},

"groupIDs": [

0

],

"accessValue": "string",

"groupNames": [

"string"

],

"yamsEventTag": "string",

"auditObj": {

"user": "string",

"action": "string",

"timestamp": "2024-01-27T00:37:19.512Z",

"liveObj": {

"yamsEventTag": "string",

"auditObj": "string"

},

"auditDBID": 0,

"liveDBID": 0,

"yamsEventTag": "string",

"auditObj": "string"

},

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

},

"roleName": "string",

"cli": 0,

"roles": [

{

"dbid": 0,

"rank": 0,

"version": 0,

"lastModifiedBy": "string",

"lastModifiedDate": "2024-01-27T00:37:19.512Z",

"name": "string",

"note": "string",

"guid": 0,

"globalModifiedDate": "2024-01-27T00:37:19.512Z",

"groupIDs": [

0

],

"groupNames": [

"string"

],

"yamsEventTag": "string",

"auditObj": {

"user": "string",

"action": "string",

"timestamp": "2024-01-27T00:37:19.512Z",

"liveObj": {

"yamsEventTag": "string",

"auditObj": "string"

},

"auditDBID": 0,

"liveDBID": 0,

"yamsEventTag": "string",

"auditObj": "string"

},

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

}

}

],

"roleWildcard": true,

"cliobject": {

"eventTag": "string",

"taskType": "string",

"elementType": "string",

"nameTag": "string",

"scheduledObjectType": "string",

"state": "string",

"id": 0,

"landscape": 0,

"version": 0

},

"roleWildcarded": true,

"filterSet": [

"string"

],

"role": {

"dbid": 0,

"rank": 0,

"version": 0,

"lastModifiedBy": "string",

"lastModifiedDate": "2024-01-27T00:37:19.512Z",

"name": "string",

"note": "string",

"guid": 0,

"globalModifiedDate": "2024-01-27T00:37:19.512Z",

"groupIDs": [

0

],

"groupNames": [

"string"

],

"yamsEventTag": "string",

"auditObj": {

"user": "string",

"action": "string",

"timestamp": "2024-01-27T00:37:19.512Z",

"liveObj": {

"yamsEventTag": "string",

"auditObj": "string"

},

"auditDBID": 0,

"liveDBID": 0,

"yamsEventTag": "string",

"auditObj": "string"

},

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

}

},

"logicalNetworkID": 0

}

],

"filtered": 0,

"total": 0

}

Get /policy/role-mapping

Get /policy/role-mapping

Description

Return a list of role mapping records matching the supplied filter.

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

filter Optional Array
start Optional Integer
count Optional Integer
sortKey Optional String
sortDir Optional String

Sample Request

Request URL

Get https://10.106.94.152:8443/api/v2/policy/role-mapping

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Sample Response

{

"status": "string",

"errorMessage": "string",

"results": [

{

"dbid": 0,

"rank": 0,

"version": 0,

"lastModifiedBy": "string",

"lastModifiedDate": "2024-01-27T00:37:19.510Z",

"roleID": 0,

"note": "string",

"logicalNetwork": {

"lastModifiedBy": "string",

"lastModifiedDate": "2024-01-27T00:37:19.510Z",

"id": 0,

"name": ":-GdWsVU->:aFcsuc+:Y&q}E;$&4VWh,Kzdv_Y~Md/F.*3JcK`tp8\\H/A(~fT,Wll7y+Z0l6xN+p.z0J\"",

"description": "string",

"guid": 0,

"globalModifiedDate": "2024-01-27T00:37:19.512Z",

"dbid": 0,

"yamsEventTag": "string",

"auditObj": {

"user": "string",

"action": "string",

"timestamp": "2024-01-27T00:37:19.512Z",

"liveObj": {

"yamsEventTag": "string",

"auditObj": "string"

},

"auditDBID": 0,

"liveDBID": 0,

"yamsEventTag": "string",

"auditObj": "string"

},

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

}

},

"groupIDs": [

0

],

"accessValue": "string",

"groupNames": [

"string"

],

"yamsEventTag": "string",

"auditObj": {

"user": "string",

"action": "string",

"timestamp": "2024-01-27T00:37:19.512Z",

"liveObj": {

"yamsEventTag": "string",

"auditObj": "string"

},

"auditDBID": 0,

"liveDBID": 0,

"yamsEventTag": "string",

"auditObj": "string"

},

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

},

"roleName": "string",

"cli": 0,

"roles": [

{

"dbid": 0,

"rank": 0,

"version": 0,

"lastModifiedBy": "string",

"lastModifiedDate": "2024-01-27T00:37:19.512Z",

"name": "string",

"note": "string",

"guid": 0,

"globalModifiedDate": "2024-01-27T00:37:19.512Z",

"groupIDs": [

0

],

"groupNames": [

"string"

],

"yamsEventTag": "string",

"auditObj": {

"user": "string",

"action": "string",

"timestamp": "2024-01-27T00:37:19.512Z",

"liveObj": {

"yamsEventTag": "string",

"auditObj": "string"

},

"auditDBID": 0,

"liveDBID": 0,

"yamsEventTag": "string",

"auditObj": "string"

},

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

}

}

],

"roleWildcard": true,

"cliobject": {

"eventTag": "string",

"taskType": "string",

"elementType": "string",

"nameTag": "string",

"scheduledObjectType": "string",

"state": "string",

"id": 0,

"landscape": 0,

"version": 0

},

"roleWildcarded": true,

"filterSet": [

"string"

],

"role": {

"dbid": 0,

"rank": 0,

"version": 0,

"lastModifiedBy": "string",

"lastModifiedDate": "2024-01-27T00:37:19.512Z",

"name": "string",

"note": "string",

"guid": 0,

"globalModifiedDate": "2024-01-27T00:37:19.512Z",

"groupIDs": [

0

],

"groupNames": [

"string"

],

"yamsEventTag": "string",

"auditObj": {

"user": "string",

"action": "string",

"timestamp": "2024-01-27T00:37:19.512Z",

"liveObj": {

"yamsEventTag": "string",

"auditObj": "string"

},

"auditDBID": 0,

"liveDBID": 0,

"yamsEventTag": "string",

"auditObj": "string"

},

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

}

},

"logicalNetworkID": 0

}

],

"filtered": 0,

"total": 0

}