Developer Guide
This is the API documentation for MetaDefender Distributed Cluster Control Center Public API. If you would like to evaluate or have any questions about this documentation, please contact us via our Contact Us form.
How to Interact with MetaDefender Distributed Cluster Control Center using REST API
The MetaDefender Distributed Cluster Control Center empowers administrators and system engineers to efficiently manage system operations, including:
- Establishing and maintaining essential service connections.
- Deploying and managing MetaDefender Core, MetaDefender Distributed Cluster API Gateway instances.
- Managing licenses.
- Administering user accounts and access controls.
- Configuring and enforcing security protocols.
- Monitoring the overall system health and system performance.
OPSWAT recommends using the JSON-based REST API. The available methods are documented below.
OPSWAT provides some sample codes on GitHub to make it easier to understand how the MetaDefender REST API works.
Auth
Authentication APIs
User authentication is done via username & password.
Login
Initiate a new session. Required for using protected REST APIs.
OK
Invalid credentials
Unexpected event on server
Logout
Destroy session for not using protected REST APIs.
OK
Bad Request.
Invalid user information.
Unexpected event on server
User Management
User management APIs
The APIs for manage users and user directories.
Create user
Request processed successfully.
Bad Request (e.g. invalid header, invalid request body).
Invalid user information or Not Allowed
The user has no rights for this operation.
Unexpected event on server
List all users
Returns a list of all users in the server.
List of users retrieved successfully.
Invalid user information or Not Allowed
The user has no rights for this operation.
Unexpected event on server
Delete a user
Delete a user by id from the system.
Request processed successfully.
Invalid user information or Not Allowed
Requests resource was not found.
The user has no rights for this operation.
Unexpected event on server
Change Password for local user
Modify the current password for the user identified by apikey
Request processed successfully
Bad Request (e.g. invalid header, invalid request body).
Invalid user information or Not Allowed
The user has no rights for this operation.
Unexpected event on server
Admin
Admin specific API requests.
List all user directories
Retrieve a list of all user directories configured in the system.
List of user directories retrieved successfully.
Invalid user information or Not Allowed
The user has no rights for this operation.
Unexpected event on server
Create new role
Add a new user role to the system.
Request processed successfully
Bad Request (e.g. invalid header, apikey is missing or invalid).
Invalid user information or Not Allowed
The user has no rights for this operation.
Unexpected event on server
Delete a role
Delete a role by id from the system.
Request processed successfully.
Bad Request (e.g. invalid header, apikey is missing or invalid).
Invalid user information or Not Allowed
Requests resource was not found.
The user has no rights for this operation.
Unexpected event on server
Config
Configure the product through APIs (especially the Settings). Will require admin apikey..
Audit clean up
Setting audit record cleanup time ( cleanup records older than).
Note: The cleanup range is defined in
hours
.
Request processed successfully
Invalid user information or Not Allowed
The user has no rights for this operation.
Unexpected event on server
File storage clean up
Setting file storage clean up time (clean up records older than).
Note:The clean up range is defined in
hours
.
Request processed successfully
Invalid user information or Not Allowed
The user has no rights for this operation.
Unexpected event on server
Executive report clean up
Setting executive report clean up time (clean up records older than).
Note:The clean up range is defined in
hours
.
Request processed successfully
Invalid user information or Not Allowed
The user has no rights for this operation.
Unexpected event on server
Processing history clean up
Setting processing history clean up time (clean up records older than).
Note:The clean up range is defined in
hours
.
Request processed successfully
Invalid user information or Not Allowed
The user has no rights for this operation.
Unexpected event on server
Session settings
Configure settings for session generated upon a successful login See more at Login
Request processed successfully
Invalid user information or Not Allowed
The user has no rights for this operation.
Unexpected event on server
Get session cookie attributes
Getting session cookie attributes
Request processed successfully.
Invalid user information or Not Allowed
The user has no rights for this operation.
Unexpected event on server
Update session cookie attributes
Modifying session cookie attributes
Request processed successfully.
Invalid user information or Not Allowed
Requests resource was not found.
Unexpected event on server
Workers
Connect, deploy, undeploy and manage workers.
Connect to workers
Connect to MetaDefender Distributed Cluster Worker services.
Request to add service was successful
Bad Request (e.g. invalid header, apikey is missing or invalid).
Invalid user information or Not Allowed
The user has no rights for this operation.
Unexpected event on server
List connected workers
Retrieve a list of currently connected MetaDefender Distributed Cluster Worker services.
A list of connected workers.
Bad Request (e.g. invalid header, apikey is missing or invalid).
Invalid user information or Not Allowed
The user has no rights for this operation.
Unexpected event on server
Disconnect from workers
Disconnect from specified MetaDefender Distributed Cluster Worker services.
Request to disconnect workers was successful
Bad Request (e.g. invalid header, apikey is missing or invalid).
Invalid user information or Not Allowed
The user has no rights for this operation.
Unexpected event on server
Get available workers by installer_id.
Retrieve the list of available workers eligible for deployment for the specified installer ID.
Request to get available workers was successful
Bad Request (e.g. invalid header, apikey is missing or invalid).
Invalid user information or Not Allowed
Requests resource was not found.
The user has no rights for this operation.
Unexpected event on server
Deploy workers
Deploy the selected installer on one or more selected workers.
Request to add service was successful
Bad Request (e.g. invalid header, apikey is missing or invalid).
Invalid user information or Not Allowed
The user has no rights for this operation.
Unexpected event on server
Undeploy workers
Undeploy the specified workers.
Request to undeploy workers was successful
Bad Request (e.g. invalid header, apikey is missing or invalid).
Invalid user information or Not Allowed
The user has no rights for this operation.
Unexpected event on server
Upgrade deployed instances
Upgrade the deployed instances managed by the worker to a newer version
Request to upgrade workers was successful
Bad Request (e.g. invalid header, apikey is missing or invalid).
Invalid user information or Not Allowed
The user has no rights for this operation.
Unexpected event on server
Get upgradable instance version
Retrieve a list of available versions of MetaDefender Core and MetaDefender Distributed Cluster API Gateway for upgrading.
A list of available versions for upgrading.
Bad Request (e.g. invalid header, apikey is missing or invalid).
Invalid user information or Not Allowed
The user has no rights for this operation.
Unexpected event on server
Services
Add essential services and view connection status.
Connect and check essential services status.
Establish connections and retrieve the status of essential services within the MetaDefender Distributed Cluster system.
Request to add service was successful
Bad Request (e.g. invalid header, apikey is missing or invalid).
Invalid user information or Not Allowed
The user has no rights for this operation.
Unexpected event on server
Get the status of all essential services.
Retrieve the status of all added services within the MetaDefender Distributed Cluster system.
Details of all added services and their status.
Bad Request (e.g. invalid header, apikey is missing or invalid).
Invalid user information or Not Allowed
The user has no rights for this operation.
Unexpected event on server
Edit service details.
Update the display name and/or configuration details for a specific service. Note: Service configuration cannot be modified after instances have been deployed.
Request to add service was successful
Bad Request (e.g. invalid header, apikey is missing or invalid).
Invalid user information or Not Allowed
Requests resource was not found.
The user has no rights for this operation.
Unexpected event on server
Disconnect to service and remove their configurations.
Remove the connection and configuration details for a specific service. Note: Service configuration cannot be deleted after instances have been deployed.
Request to remove service was successful
Bad Request (e.g. invalid header, apikey is missing or invalid).
Invalid user information or Not Allowed
Requests resource was not found.
The user has no rights for this operation.
Unexpected event on server
Get status for a specific service.
Retrieve the current status of a specific service, including all instance details.
Note: The service_type
must be one of: datalake
, warehouse
, caching
, broker
, filestorage
.
Request to get service type was successful
Bad Request (e.g. invalid header, apikey is missing or invalid).
Invalid user information or Not Allowed
Requests resource was not found.
The user has no rights for this operation.
Unexpected event on server
Edit setting of service
Update the configuration settings for a specific service.
Note: Supported only for the filestorage
service type.
Request to add service was successful
Bad Request (e.g. invalid header, apikey is missing or invalid).
Invalid user information or Not Allowed
Requests resource was not found.
The user has no rights for this operation.
Unexpected event on server
Get service settings
Retrieve the current configuration settings for a specific service.
Note: Supported only for the filestorage
service type.
Request to retrieve service settings was successful
Bad Request (e.g. invalid header, apikey is missing or invalid).
Invalid user information or Not Allowed
Requests resource was not found.
The user has no rights for this operation.
Unexpected event on server
Installers
Upload and manage installers for the MetaDefender Core and MetaDefender Distributed Cluster API Gateway.
Upload installer
Upload installers for the MetaDefender Core and MetaDefender Distributed Cluster API Gateway.
Request processed successfully
Bad Request (e.g. invalid header, apikey is missing or invalid).
Invalid user information or Not Allowed
The user has no rights for this operation.
Unexpected event on server
Get uploaded installers
Retrieve information about an uploaded installer.
Request processed successfully
Bad Request (e.g. invalid header, apikey is missing or invalid).
Invalid user information or Not Allowed
Requests resource was not found.
Unexpected event on server
Delete an uploaded installer
Delete an uploaded installer.
Request processed successfully
Bad Request (e.g. invalid header, apikey is missing or invalid).
Invalid user information or Not Allowed
Requests resource was not found.
The user has no rights for this operation.
Unexpected event on server