Post /adapter
Description
Adds a new Adapter record to the database.
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/adapter |
Request Header |
Authorization: Bearer <Authorization_Token> Content-Type: application/json
|
Request Body |
{ "landscape": 0, "id": 0, "identification": "string", "state": "string", "type": "string", "vendorName": "string", "parent": "string", "lastSuccessfulPoll": "2024-02-22T22:42:58.075Z", "status": 0, "version": 0, "user": { "landscape": 0, "id": 0, "role": "string", "directoryPolicyValue": "string", "firstName": "string", "lastName": "string", "dn": "string", "position": "string", "email": "string", "state": "string", "userID": "string", "password": "string", "status": 0, "notes": "string", "language": "string", "country": "string", "version": 0, "packedVersion": 0, "creationTime": "2024-02-22T22:42:58.075Z", "validForTime": "2024-02-22T22:42:58.075Z", "validForInactivityDays": 0, "validForInactivityAgeTime": 0, "lastActivityTime": 0, "address": "string", "city": "string", "mailState": "string", "zipCode": "string", "phone": "string", "organization": "string", "organizationalUnit": "string", "type": "string", "attributes": [ { "version": 0, "name": "string", "value": {} } ], "adminProfileId": 0, "guestId": 0, "mobileNumber": "string", "mobileProvider": "string", "ncmPropagateHosts": true, "lastModifiedBy": "string", "lastModifiedDate": "2024-02-22T22:42:58.075Z", "isApiAdmin": true, "apiAccessToken": "string", "trustedHosts": "string", "guestContractor": true, "locale": { "script": "string", "country": "string", "variant": "string", "extensionKeys": [ "string" ], "unicodeLocaleAttributes": [ "string" ], "unicodeLocaleKeys": [ "string" ], "iso3Language": "string", "iso3Country": "string", "displayLanguage": "string", "displayScript": "string", "displayCountry": "string", "displayVariant": "string", "displayName": "string", "language": "string" }, "adminUser": true, "validTime": 0, "auditObjectName": "string", "auditObjectType": { "auditTableName": "string", "mysqlTableName": "string", "idnameQuery": "string" }, "addAuditSummary": "string", "currentEnvironment": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" }, "deleteHostsUponExpiration": true, "iconType": "string", "disabled": true, "directoryDisabled": true, "apiAdmin": true, "superUser": true, "validForTimeMS": 0, "passwordFromRaw": "string", "userAdministrator": true, "userOperator": true, "userHelpDesk": true, "userAdministrative": true, "hashedPassword": "string", "maxAllowedHosts": 0, "creationEvent": { "landscape": 0, "id": 0, "state": "string", "name": "string", "elementType": "string", "elementID": 0, "elementName": "string", "message": "string", "timeOfEvent": "2024-02-22T22:42:58.075Z", "version": 0, "log": true, "time": 0, "eventFormatString": "string", "empty": true }, "destroyEvent": { "landscape": 0, "id": 0, "state": "string", "name": "string", "elementType": "string", "elementID": 0, "elementName": "string", "message": "string", "timeOfEvent": "2024-02-22T22:42:58.075Z", "version": 0, "log": true, "time": 0, "eventFormatString": "string", "empty": true }, "establishedEvent": { "landscape": 0, "id": 0, "state": "string", "name": "string", "elementType": "string", "elementID": 0, "elementName": "string", "message": "string", "timeOfEvent": "2024-02-22T22:42:58.075Z", "version": 0, "log": true, "time": 0, "eventFormatString": "string", "empty": true }, "lostEvent": { "landscape": 0, "id": 0, "state": "string", "name": "string", "elementType": "string", "elementID": 0, "elementName": "string", "message": "string", "timeOfEvent": "2024-02-22T22:42:58.075Z", "version": 0, "log": true, "time": 0, "eventFormatString": "string", "empty": true }, "name": "string" }, "host": { "landscape": 0, "id": 0, "state": "string", "notes": "string", "version": 0, "creationTime": "2024-02-22T22:42:58.075Z", "validForTime": "2024-02-22T22:42:58.075Z", "lastSuccessfulPoll": 0, "applications": "string", "hostName": "string", "owner": "string", "policy": "string", "hardwareType": "string", "status": 0, "patchManagementVendor": "string", "patchManagementID": "string", "attributes": [ { "version": 0, "name": "string", "value": {} } ], "adapters": [ "string" ], "role": "string", "type": "string", "directoryPolicyValue": "string", "agentVersion": "string", "agentID": "string", "agentSN": "string", "agentTag": "string", "agentPlatform": "string", "iconType": "string", "reValidation": true, "criticality": "string", "reValidationInterval": 0, "lastReValidation": 0, "openPorts": "string", "reValidationAction": { "disable": true, "version": 0 }, "domainId": 0, "loggedOnUserId": "string", "policyHints": { "devId": 0, "clientId": 0, "portId": 0, "edgeId": 0, "userId": 0, "userIdent": "string", "dummyUser": { "landscape": 0, "id": 0, "role": "string", "directoryPolicyValue": "string", "firstName": "string", "lastName": "string", "dn": "string", "position": "string", "email": "string", "state": "string", "userID": "string", "password": "string", "status": 0, "notes": "string", "language": "string", "country": "string", "version": 0, "packedVersion": 0, "creationTime": "2024-02-22T22:42:58.075Z", "validForTime": "2024-02-22T22:42:58.075Z", "validForInactivityDays": 0, "validForInactivityAgeTime": 0, "lastActivityTime": 0, "address": "string", "city": "string", "mailState": "string", "zipCode": "string", "phone": "string", "organization": "string", "organizationalUnit": "string", "type": "string", "attributes": [ { "version": 0, "name": "string", "value": {} } ], "adminProfileId": 0, "guestId": 0, "mobileNumber": "string", "mobileProvider": "string", "ncmPropagateHosts": true, "lastModifiedBy": "string", "lastModifiedDate": "2024-02-22T22:42:58.075Z", "isApiAdmin": true, "apiAccessToken": "string", "trustedHosts": "string", "guestContractor": true, "locale": { "script": "string", "country": "string", "variant": "string", "extensionKeys": [ "string" ], "unicodeLocaleAttributes": [ "string" ], "unicodeLocaleKeys": [ "string" ], "iso3Language": "string", "iso3Country": "string", "displayLanguage": "string", "displayScript": "string", "displayCountry": "string", "displayVariant": "string", "displayName": "string", "language": "string" }, "adminUser": true, "validTime": 0, "auditObjectName": "string", "auditObjectType": { "auditTableName": "string", "mysqlTableName": "string", "idnameQuery": "string" }, "addAuditSummary": "string", "currentEnvironment": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" }, "deleteHostsUponExpiration": true, "iconType": "string", "disabled": true, "directoryDisabled": true, "apiAdmin": true, "superUser": true, "validForTimeMS": 0, "passwordFromRaw": "string", "userAdministrator": true, "userOperator": true, "userHelpDesk": true, "userAdministrative": true, "hashedPassword": "string", "maxAllowedHosts": 0, "creationEvent": { "landscape": 0, "id": 0, "state": "string", "name": "string", "elementType": "string", "elementID": 0, "elementName": "string", "message": "string", "timeOfEvent": "2024-02-22T22:42:58.075Z", "version": 0, "log": true, "time": 0, "eventFormatString": "string", "empty": true }, "destroyEvent": { "landscape": 0, "id": 0, "state": "string", "name": "string", "elementType": "string", "elementID": 0, "elementName": "string", "message": "string", "timeOfEvent": "2024-02-22T22:42:58.075Z", "version": 0, "log": true, "time": 0, "eventFormatString": "string", "empty": true }, "establishedEvent": { "landscape": 0, "id": 0, "state": "string", "name": "string", "elementType": "string", "elementID": 0, "elementName": "string", "message": "string", "timeOfEvent": "2024-02-22T22:42:58.075Z", "version": 0, "log": true, "time": 0, "eventFormatString": "string", "empty": true }, "lostEvent": { "landscape": 0, "id": 0, "state": "string", "name": "string", "elementType": "string", "elementID": 0, "elementName": "string", "message": "string", "timeOfEvent": "2024-02-22T22:42:58.075Z", "version": 0, "log": true, "time": 0, "eventFormatString": "string", "empty": true }, "name": "string" }, "dummyClient": "string", "dummyDate": "2024-02-22T22:42:58.075Z", "dummyApplications": [ { "dbid": 0, "name": "string", "packageName": "string", "appVersion": "string", "vendor": "string", "os": "string", "md5": "string", "sha1": "string", "sha256": "string", "threatScore": 0, "threatOverride": 0, "submitDate": "2024-02-22T22:42:58.075Z", "source": "string", "verificationEngine": 0, "osversion": "string", "checksum": "string", "checksumMethod": "string", "yamsEventTag": "string", "auditObj": { "user": "string", "action": "string", "timestamp": "2024-02-22T22:42:58.075Z", "liveObj": { "yamsEventTag": "string", "auditObj": "string" }, "auditDBID": 0, "liveDBID": 0, "yamsEventTag": "string", "auditObj": "string" } } ], "useKnownAdapters": true, "groupId": 0, "groupIds": [ 0 ], "ssidid": 0, "radiusfingerprint": { "dbid": 0, "source": "string", "physAddress": "string", "ipAddress": "string", "hostName": "string", "entityTag": "string", "os": "string", "createTime": "2024-02-22T22:42:58.075Z", "lastHeardTime": "2024-02-22T22:42:58.075Z", "attributes": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" }, "entity": { "name": "string", "tag": "string", "imageFile": "string", "id": 0 } } }, "managedByMDM": true, "mdmCompromised": true, "mdmCompliance": true, "mdmDataProtection": true, "mdmPasscodePresent": true, "inTopology": true, "adaptersAsString": "string", "ip": "string", "validForTimeOffline": 0, "atRisk": true, "notCommunicatingPersistentAgent": true, "persistentAgent": true, "notAuthenticated": true, "userLoggedOn": true, "vpnclient": true, "typeLabel": "string", "primaryMac": "string", "adapterObjects": [ "string" ], "auditObjectName": "string", "auditObjectType": { "auditTableName": "string", "mysqlTableName": "string", "idnameQuery": "string" }, "addAuditSummary": "string", "currentEnvironment": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" }, "operatingSystem": "string", "offlineAgeTime": 0, "pcserialNumber": "string", "vulnerabilityScanStatus": 0, "vulnerabilityScanDate": 0, "connectedAdapter": "string", "adapterIpAsString": "string", "adapterLocation": "string", "adapterContainerAsString": "string", "pendingAtRisk": true, "disabled": true, "agentPlatformEnum": "Windows", "validTime": 0, "expired": true, "directoryDisabled": true, "scanOnConnect": true, "scanned": true, "dialUpClient": true, "messageReceiver": true, "connected": true, "creationEvent": { "landscape": 0, "id": 0, "state": "string", "name": "string", "elementType": "string", "elementID": 0, "elementName": "string", "message": "string", "timeOfEvent": "2024-02-22T22:42:58.075Z", "version": 0, "log": true, "time": 0, "eventFormatString": "string", "empty": true }, "destroyEvent": { "landscape": 0, "id": 0, "state": "string", "name": "string", "elementType": "string", "elementID": 0, "elementName": "string", "message": "string", "timeOfEvent": "2024-02-22T22:42:58.075Z", "version": 0, "log": true, "time": 0, "eventFormatString": "string", "empty": true }, "establishedEvent": { "landscape": 0, "id": 0, "state": "string", "name": "string", "elementType": "string", "elementID": 0, "elementName": "string", "message": "string", "timeOfEvent": "2024-02-22T22:42:58.075Z", "version": 0, "log": true, "time": 0, "eventFormatString": "string", "empty": true }, "lostEvent": { "landscape": 0, "id": 0, "state": "string", "name": "string", "elementType": "string", "elementID": 0, "elementName": "string", "message": "string", "timeOfEvent": "2024-02-22T22:42:58.075Z", "version": 0, "log": true, "time": 0, "eventFormatString": "string", "empty": true }, "name": "string" }, "clientState": "string", "creationTime": "2024-02-22T22:42:58.075Z", "mediumType": "string", "location": "string", "container": "string", "dpcRuleId": 0, "dpcRuleName": "string", "accessValue": "string", "authType": 0, "innerEapType": 0, "outerEapType": 0, "ips": [ { "ip": "string", "type": "string", "adapterID": 0 } ], "hostID": 0, "attributes": [ { "version": 0, "name": "string", "value": {} } ], "device": true, "ipaddress": "string", "userID": "string", "physicalAddress": "string", "auditObjectName": "string", "auditObjectType": { "auditTableName": "string", "mysqlTableName": "string", "idnameQuery": "string" }, "addAuditSummary": "string", "currentEnvironment": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" }, "pctype": "string", "operatingSystem": "string", "hardwareType": "string", "directoryPolicyValue": "string", "firstName": "string", "lastName": "string", "iconType": "string", "allIPsString": "string", "authTypeStr": "string", "innerEapTypeStr": "string", "outerEapTypeStr": "string", "creationEvent": { "landscape": 0, "id": 0, "state": "string", "name": "string", "elementType": "string", "elementID": 0, "elementName": "string", "message": "string", "timeOfEvent": "2024-02-22T22:42:58.075Z", "version": 0, "log": true, "time": 0, "eventFormatString": "string", "empty": true }, "destroyEvent": { "landscape": 0, "id": 0, "state": "string", "name": "string", "elementType": "string", "elementID": 0, "elementName": "string", "message": "string", "timeOfEvent": "2024-02-22T22:42:58.075Z", "version": 0, "log": true, "time": 0, "eventFormatString": "string", "empty": true }, "establishedEvent": { "landscape": 0, "id": 0, "state": "string", "name": "string", "elementType": "string", "elementID": 0, "elementName": "string", "message": "string", "timeOfEvent": "2024-02-22T22:42:58.075Z", "version": 0, "log": true, "time": 0, "eventFormatString": "string", "empty": true }, "lostEvent": { "landscape": 0, "id": 0, "state": "string", "name": "string", "elementType": "string", "elementID": 0, "elementName": "string", "message": "string", "timeOfEvent": "2024-02-22T22:42:58.075Z", "version": 0, "log": true, "time": 0, "eventFormatString": "string", "empty": true }, "name": "string", "hostName": "string" } |
Sample Response
{
"status": "success",
"errorMessage": null,
"results": []
}