Post /policy/role-mapping
Description
Creates a new role mapping record, updating instead if the supplied profile has a DBID of one that already exists.
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/role-mapping |
Request Header |
Authorization: Bearer <Authorization_Token> Content-Type: application/json
|
Request Body |
{ "dbid": 0, "rank": 0, "version": 0, "lastModifiedBy": "string", "lastModifiedDate": "2024-01-30T00:45:01.017Z", "roleID": 0, "note": "string", "logicalNetwork": { "id": 0, "name": "oZl**~s[nr\"[Zs9|H[5LkgD5;ZKgo4f:rRV)%YMUJ%fvEts%Qys\"s2H1!\\dZ_ %NVsG`iQ", "description": "string", "guid": 0, "globalModifiedDate": "2024-01-30T00:45:01.018Z", "dbid": 0, "yamsEventTag": "string", "auditObj": { "user": "string", "action": "string", "timestamp": "2024-01-30T00:45:01.018Z", "liveObj": { "yamsEventTag": "string", "auditObj": "string" }, "auditDBID": 0, "liveDBID": 0, "yamsEventTag": "string", "auditObj": "string" }, "auditObjectName": "string", "auditObjectType": { "auditTableName": "string", "mysqlTableName": "string", "idnameQuery": "string" } }, "filters": [ { "dbid": 0, "parent": "string", "value": "string" } ], "groups": [ { "dbid": 0, "parent": "string", "value": 0 } ], "groupIDs": [ 0 ], "accessValue": "string", "yamsEventTag": "string", "auditObj": { "user": "string", "action": "string", "timestamp": "2024-01-30T00:45:01.018Z", "liveObj": { "yamsEventTag": "string", "auditObj": "string" }, "auditDBID": 0, "liveDBID": 0, "yamsEventTag": "string", "auditObj": "string" }, "auditObjectName": "string", "auditObjectType": { "auditTableName": "string", "mysqlTableName": "string", "idnameQuery": "string" }, "cli": 0, "roles": [ { "dbid": 0, "rank": 0, "version": 0, "lastModifiedBy": "string", "lastModifiedDate": "2024-01-30T00:45:01.018Z", "name": "string", "groups": [ { "dbid": 0, "parent": "string", "value": 0 } ], "note": "string", "guid": 0, "globalModifiedDate": "2024-01-30T00:45:01.018Z", "yamsEventTag": "string", "auditObj": { "user": "string", "action": "string", "timestamp": "2024-01-30T00:45:01.018Z", "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, "role": { "dbid": 0, "rank": 0, "version": 0, "lastModifiedBy": "string", "lastModifiedDate": "2024-01-30T00:45:01.018Z", "name": "string", "groups": [ { "dbid": 0, "parent": "string", "value": 0 } ], "note": "string", "guid": 0, "globalModifiedDate": "2024-01-30T00:45:01.018Z", "yamsEventTag": "string", "auditObj": { "user": "string", "action": "string", "timestamp": "2024-01-30T00:45:01.018Z", "liveObj": { "yamsEventTag": "string", "auditObj": "string" }, "auditDBID": 0, "liveDBID": 0, "yamsEventTag": "string", "auditObj": "string" }, "auditObjectName": "string", "auditObjectType": { "auditTableName": "string", "mysqlTableName": "string", "idnameQuery": "string" } }, "logicalNetworkID": 0 } |
Sample Response
{
"status": "success",
"errorMessage": null,
}