Direct Connection Support in CM10
My OPSWAT Central Management (MOCM) supports initiating a direct connection to MetaDefender (MD) product instances, enabling the execution of product-specific APIs and supported commands. The following OPSWAT products currently support this feature:
- MetaDefender CORE (version 5.15.0 and above)
- MetaDefender ICAP (version 5.9.0 and above)
How it works
MD Core/ICAP must first be registered with the MOCM. Once enrolled, MOCM can effectively manage MD Core/ICAP instances.
When an administrator invokes MOCM APIs, MOCM authenticates the request and then forwards it to the appropriate Product Instance APIs.
Administrators do not need to enable inbound traffic from users to MD instances. All requests are securely routed from MOCM directly to the MD instances.
Steps to make API requests
Once the product instance is enrolled in CM10, adminstrator can follow these steps to make an api request to the instance
-
Get
OAuth API Access tokenfrom MOCM
Go to MOCM console page and setup application to get an access token: -
Obtain the
connectionID
Retrieve theconnectionIDfrom the relevant product instance. -
Construct the API Request
-
Build the URL: Combine the MOCM endpoint URL with the retrieved
connectionID. - Prepare the Request Body: Include the required data exactly as specified in the product support documentation.
-
Set the Required Headers:
X-App-Method: Specify the original HTTP method (e.g.,GET,POST).X-App-Url: Provide the original request path.- Include any optional headers from the original request using the format:
X-App-Header-{headerKey}.
-
Build the URL: Combine the MOCM endpoint URL with the retrieved
For detailed examples, please refer to the documentation: View Documentation
MyOpswat Central Management US tenant
MyOpswat Central Management EU tenant
Authentication
Users authenticate using a Client ID and Client Secret, which can be obtained from My OPSWAT Central Management.
Get Oauth API Token
To retrieve your Client ID and Client Secret, please follow this link: https://www.opswat.com/docs/cm/developer-guidelines/how-to-work-with-apis
Required information to generate token
response
Connection_management
Manage direct connection from product instances to MyOpswat Central Management
GetConnection status
Get Connection status by Connection ID
Get Connection Status successfully
Invalid ConnectionId
Close connection
Close a direct connection
desc
Initiate Direct Instance Connection
Initiate a direct communication channel from CM10 to the product instance.
Init Connection successfull
Incorrect DeploymentId
Sending_requests
Sending requests directly from My OPSWAT Central Management to product instances.
Sending Requests/Commands
Sending Requests or Commands to Product Instances
To view the list of supported APIs for each product, please refer to the following link: Supported Product APIs
Get PMP Report Details
Retrieve the details of a PMP report - including MetaDefender Kiosk, MetaDefender Drive - using the report's session ID. This API returns data as a stream.
Successful response
Get PMP Reports
Retrieve reports of PMP devices - including MetaDefender Kiosk, MetaDefender Endpoint - in the cursor fashion, sorted by reported time in ascending order.
Successful response
Update Yara rules and file hashes for MetaDefender Kiosk
Update Yara rules and file hashes for MetaDefender Kiosk
Successful response
Meta Defender Drive
MetaDefender Drive.
Get MetaDefender Drive Reports
Receive MetaDefender Drive's reports in the cursor fashion, sorted by reported time in ascending order.
Successful response
Get MetaDefender Drive Report Details
Retrieve the MetaDefender Drive report details by using the report ID and device ID. This API returns data as a stream.
Successful response
Meta Defender Core
Get MetaDefender Core Reports
Retrieve MetaDefender Core's processing history reports using cursor-based pagination, sorted by report time in ascending order.
Successful response
Get MetaDefender Core Instances
Retrieve MetaDefender Core instances.
Successful response
Retrieve account inventory or a specific product inventory
Retrieve account inventory or a specific product inventory based on filter criteria. productTypes: MDD (MetaDefender Drive), KIOSK (MetaDefender Kiosk K-Series), MK5 (MetaDefender Kiosk L-Series), MDCORE (MetaDefender Core), MDICAP (MetaDefender ICAP Server)
OK
Processing Overview from MetaDefender Kiosk instances
Retrieve processing overview from MetaDefender Kiosk K-Series and L-Series instances based on filter criteria over a specified time period
