Computer Log Inspection Rule Assignments & Recommendations

List Log Inspection Rule IDs

get/computers/{computerID}/loginspection/assignments

Lists all log inspection rule IDs assigned to a computer.

Related SDK Methods:
Java

ComputerLogInspectionRuleAssignmentsRecommendationsApi.listLogInspectionRuleIDsOnComputer([param1, param2, ...])

Python

ComputerLogInspectionRuleAssignmentsRecommendationsApi.list_log_inspection_rule_ids_on_computer([param1, param2, ...])

JavaScript

ComputerLogInspectionRuleAssignmentsRecommendationsApi.listLogInspectionRuleIDsOnComputer([param1, param2, ...])

SecurityTrend_Micro_Cloud_One_API_Key or Legacy_API_Key
Request
path Parameters
computerID
required
integer <int32> \d+

The ID number of the computer.

Example: 1
query Parameters
overrides
boolean

Return only rule IDs assigned directly to the current computer.

header Parameters
api-version
required
string

The version of the api being called.

Example: YOUR VERSION
Responses
200

successful operation

403

Not authorized to view the computer.

Request samples
import com.trendmicro.deepsecurity.ApiClient;
import com.trendmicro.deepsecurity.Configuration;
import com.trendmicro.deepsecurity.auth.ApiKeyAuth;
import com.trendmicro.deepsecurity.auth.ApiKeyAuth;
import com.trendmicro.deepsecurity.ApiException;
import com.trendmicro.deepsecurity.api.ComputerLogInspectionRuleAssignmentsRecommendationsApi;
import com.trendmicro.deepsecurity.model.LogInspectionAssignments;


public class ListLogInspectionRuleIDsOnComputerExample {
	
	public static void main(String[] args) {
		// Setup
		ApiClient defaultClient = Configuration.getDefaultApiClient();
		defaultClient.setBasePath("YOUR HOST");

		// Authentication
		ApiKeyAuth Legacy API Key = (ApiKeyAuth) defaultClient.getAuthentication("Legacy API Key");
		Legacy API Key.setApiKey("YOUR API KEY");
		try {
			defaultClient.trustAllCertificates(false);
		} catch (Exception e) {
			System.err.println("An exception occurred when calling ApiClient.trustAllCertificates");
			e.printStackTrace();
		}
		ApiKeyAuth Trend Micro Cloud One API Key = (ApiKeyAuth) defaultClient.getAuthentication("Trend Micro Cloud One API Key");
		Trend Micro Cloud One API Key.setApiKey("YOUR API KEY");
		try {
			defaultClient.trustAllCertificates(false);
		} catch (Exception e) {
			System.err.println("An exception occurred when calling ApiClient.trustAllCertificates");
			e.printStackTrace();
		}
		
		// Initialization
		// Set Any Required Values
		ComputerLogInspectionRuleAssignmentsRecommendationsApi instance = new ComputerLogInspectionRuleAssignmentsRecommendationsApi();
		Integer computerID = 1;
		Boolean overrides = false;
		String apiVersion = "YOUR VERSION";
		try {
			// Please replace the parameter values with yours
			LogInspectionAssignments result = instance.listLogInspectionRuleIDsOnComputer(computerID, overrides, apiVersion);
			System.out.println(result);
		} catch (ApiException e) {
			System.err.println("An exception occurred when calling ComputerLogInspectionRuleAssignmentsRecommendationsApi.listLogInspectionRuleIDsOnComputer");
			e.printStackTrace();
		}
	}
}

Response samples
application/json
{
  • "assignedRuleIDs": [
    ],
  • "recommendationScanStatus": "none",
  • "lastRecommendationScanDate": 0,
  • "recommendedToAssignRuleIDs": [
    ],
  • "recommendedToUnassignRuleIDs": [
    ]
}

Add Log Inspection Rule IDs

post/computers/{computerID}/loginspection/assignments

Assign log inspection rule IDs to a computer.

Related SDK Methods:
Java

ComputerLogInspectionRuleAssignmentsRecommendationsApi.addLogInspectionRuleIDsToComputer([param1, param2, ...])

Python

ComputerLogInspectionRuleAssignmentsRecommendationsApi.add_log_inspection_rule_ids_to_computer([param1, param2, ...])

JavaScript

ComputerLogInspectionRuleAssignmentsRecommendationsApi.addLogInspectionRuleIDsToComputer([param1, param2, ...])

SecurityTrend_Micro_Cloud_One_API_Key or Legacy_API_Key
Request
path Parameters
computerID
required
integer <int32> \d+

The ID number of the computer.

Example: 1
query Parameters
overrides
boolean

Return only rule IDs assigned directly to the current computer.

header Parameters
api-version
required
string

The version of the api being called.

Example: YOUR VERSION
Request Body schema: application/json

The ID numbers of the log inspection rules to add.

ruleIDs
Array of integers <int32>
Responses
200

successful operation

403

Not authorized to modify the computer or the requested modification is not permitted.

404

The computer does not exist.

Request samples
application/json
{
  • "ruleIDs": [
    ]
}
Response samples
application/json
{
  • "assignedRuleIDs": [
    ],
  • "recommendationScanStatus": "none",
  • "lastRecommendationScanDate": 0,
  • "recommendedToAssignRuleIDs": [
    ],
  • "recommendedToUnassignRuleIDs": [
    ]
}

Set Log Inspection Rule IDs

put/computers/{computerID}/loginspection/assignments

Set log inspection rule IDs assigned to a computer.

Related SDK Methods:
Java

ComputerLogInspectionRuleAssignmentsRecommendationsApi.setLogInspectionRuleIDsOnComputer([param1, param2, ...])

Python

ComputerLogInspectionRuleAssignmentsRecommendationsApi.set_log_inspection_rule_ids_on_computer([param1, param2, ...])

JavaScript

ComputerLogInspectionRuleAssignmentsRecommendationsApi.setLogInspectionRuleIDsOnComputer([param1, param2, ...])

SecurityTrend_Micro_Cloud_One_API_Key or Legacy_API_Key
Request
path Parameters
computerID
required
integer <int32> \d+

The ID number of the computer.

Example: 1
query Parameters
overrides
boolean

Return only rule IDs assigned directly to the current computer.

header Parameters
api-version
required
string

The version of the api being called.

Example: YOUR VERSION
Request Body schema: application/json

The ID numbers of the log inspection rules to set.

ruleIDs
Array of integers <int32>
Responses
200

successful operation

403

Not authorized to modify the computer or the requested modification is not permitted.

404

The computer does not exist.

Request samples
application/json
{
  • "ruleIDs": [
    ]
}
Response samples
application/json
{
  • "assignedRuleIDs": [
    ],
  • "recommendationScanStatus": "none",
  • "lastRecommendationScanDate": 0,
  • "recommendedToAssignRuleIDs": [
    ],
  • "recommendedToUnassignRuleIDs": [
    ]
}

Remove a Log Inspection Rule ID

delete/computers/{computerID}/loginspection/assignments/{logInspectionRuleID}

Unassign a log inspection rule ID from a computer.

Related SDK Methods:
Java

ComputerLogInspectionRuleAssignmentsRecommendationsApi.removeLogInspectionRuleIDFromComputer([param1, param2, ...])

Python

ComputerLogInspectionRuleAssignmentsRecommendationsApi.remove_log_inspection_rule_id_from_computer([param1, param2, ...])

JavaScript

ComputerLogInspectionRuleAssignmentsRecommendationsApi.removeLogInspectionRuleIDFromComputer([param1, param2, ...])

SecurityTrend_Micro_Cloud_One_API_Key or Legacy_API_Key
Request
path Parameters
computerID
required
integer <int32> \d+

The ID number of the computer.

Example: 1
logInspectionRuleID
required
integer <int32> \d+

The ID number of the log inspection rule to delete.

Example: 1
query Parameters
overrides
boolean

Return only rule IDs assigned directly to the current computer.

header Parameters
api-version
required
string

The version of the api being called.

Example: YOUR VERSION
Responses
200

successful operation

403

Not authorized to modify the computer or the requested modification is not permitted.

404

The computer does not exist.

Request samples
import com.trendmicro.deepsecurity.ApiClient;
import com.trendmicro.deepsecurity.Configuration;
import com.trendmicro.deepsecurity.auth.ApiKeyAuth;
import com.trendmicro.deepsecurity.auth.ApiKeyAuth;
import com.trendmicro.deepsecurity.ApiException;
import com.trendmicro.deepsecurity.api.ComputerLogInspectionRuleAssignmentsRecommendationsApi;
import com.trendmicro.deepsecurity.model.LogInspectionAssignments;


public class RemoveLogInspectionRuleIDFromComputerExample {
	
	public static void main(String[] args) {
		// Setup
		ApiClient defaultClient = Configuration.getDefaultApiClient();
		defaultClient.setBasePath("YOUR HOST");

		// Authentication
		ApiKeyAuth Legacy API Key = (ApiKeyAuth) defaultClient.getAuthentication("Legacy API Key");
		Legacy API Key.setApiKey("YOUR API KEY");
		try {
			defaultClient.trustAllCertificates(false);
		} catch (Exception e) {
			System.err.println("An exception occurred when calling ApiClient.trustAllCertificates");
			e.printStackTrace();
		}
		ApiKeyAuth Trend Micro Cloud One API Key = (ApiKeyAuth) defaultClient.getAuthentication("Trend Micro Cloud One API Key");
		Trend Micro Cloud One API Key.setApiKey("YOUR API KEY");
		try {
			defaultClient.trustAllCertificates(false);
		} catch (Exception e) {
			System.err.println("An exception occurred when calling ApiClient.trustAllCertificates");
			e.printStackTrace();
		}
		
		// Initialization
		// Set Any Required Values
		ComputerLogInspectionRuleAssignmentsRecommendationsApi instance = new ComputerLogInspectionRuleAssignmentsRecommendationsApi();
		Integer computerID = 1;
		Integer logInspectionRuleID = 1;
		Boolean overrides = false;
		String apiVersion = "YOUR VERSION";
		try {
			// Please replace the parameter values with yours
			LogInspectionAssignments result = instance.removeLogInspectionRuleIDFromComputer(computerID, logInspectionRuleID, overrides, apiVersion);
			System.out.println(result);
		} catch (ApiException e) {
			System.err.println("An exception occurred when calling ComputerLogInspectionRuleAssignmentsRecommendationsApi.removeLogInspectionRuleIDFromComputer");
			e.printStackTrace();
		}
	}
}

Response samples
application/json
{
  • "assignedRuleIDs": [
    ],
  • "recommendationScanStatus": "none",
  • "lastRecommendationScanDate": 0,
  • "recommendedToAssignRuleIDs": [
    ],
  • "recommendedToUnassignRuleIDs": [
    ]
}