Computer Intrusion Prevention Rule Assignments & Recommendations

List Intrusion Prevention Rule IDs

get/computers/{computerID}/intrusionprevention/assignments

Lists all intrusion prevention rule IDs assigned to a computer.

Related SDK Methods:
Java

ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.listIntrusionPreventionRuleIDsOnComputer([param1, param2, ...])

Python

ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.list_intrusion_prevention_rule_ids_on_computer([param1, param2, ...])

JavaScript

ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.listIntrusionPreventionRuleIDsOnComputer([param1, param2, ...])

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.ApiException;
import com.trendmicro.deepsecurity.api.ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi;
import com.trendmicro.deepsecurity.model.IntrusionPreventionAssignments;


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

		// Authentication
		ApiKeyAuth DefaultAuthentication = (ApiKeyAuth) defaultClient.getAuthentication("DefaultAuthentication");
		DefaultAuthentication.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
		ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi instance = new ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi();
		Integer computerID = 1;
		Boolean overrides = false;
		String apiVersion = "YOUR VERSION";
		try {
			// Please replace the parameter values with yours
			IntrusionPreventionAssignments result = instance.listIntrusionPreventionRuleIDsOnComputer(computerID, overrides, apiVersion);
			System.out.println(result);
		} catch (ApiException e) {
			System.err.println("An exception occurred when calling ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.listIntrusionPreventionRuleIDsOnComputer");
			e.printStackTrace();
		}
	}
}

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

Add Intrusion Prevention Rule IDs

post/computers/{computerID}/intrusionprevention/assignments

Assign intrusion prevention rule IDs to a computer.

Related SDK Methods:
Java

ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.addIntrusionPreventionRuleIDsToComputer([param1, param2, ...])

Python

ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.add_intrusion_prevention_rule_ids_to_computer([param1, param2, ...])

JavaScript

ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.addIntrusionPreventionRuleIDsToComputer([param1, param2, ...])

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 intrusion prevention 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": [
    ],
  • "assignedApplicationTypeIDs": [
    ],
  • "recommendationScanStatus": "none",
  • "lastRecommendationScanDate": 0,
  • "recommendedToAssignRuleIDs": [
    ],
  • "recommendedToUnassignRuleIDs": [
    ]
}

Set Intrusion Prevention Rule IDs

put/computers/{computerID}/intrusionprevention/assignments

Set intrusion prevention rule IDs assigned to a computer.

Related SDK Methods:
Java

ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.setIntrusionPreventionRuleIDsOnComputer([param1, param2, ...])

Python

ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.set_intrusion_prevention_rule_ids_on_computer([param1, param2, ...])

JavaScript

ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.setIntrusionPreventionRuleIDsOnComputer([param1, param2, ...])

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 intrusion prevention 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": [
    ],
  • "assignedApplicationTypeIDs": [
    ],
  • "recommendationScanStatus": "none",
  • "lastRecommendationScanDate": 0,
  • "recommendedToAssignRuleIDs": [
    ],
  • "recommendedToUnassignRuleIDs": [
    ]
}

Remove an Intrusion Prevention Rule ID

delete/computers/{computerID}/intrusionprevention/assignments/{intrusionPreventionRuleID}

Unassign an intrusion prevention rule ID from a computer.

Related SDK Methods:
Java

ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.removeIntrusionPreventionRuleIDFromComputer([param1, param2, ...])

Python

ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.remove_intrusion_prevention_rule_id_from_computer([param1, param2, ...])

JavaScript

ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.removeIntrusionPreventionRuleIDFromComputer([param1, param2, ...])

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

The ID number of the computer.

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

The ID number of the intrusion prevention 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.ApiException;
import com.trendmicro.deepsecurity.api.ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi;
import com.trendmicro.deepsecurity.model.IntrusionPreventionAssignments;


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

		// Authentication
		ApiKeyAuth DefaultAuthentication = (ApiKeyAuth) defaultClient.getAuthentication("DefaultAuthentication");
		DefaultAuthentication.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
		ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi instance = new ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi();
		Integer computerID = 1;
		Integer intrusionPreventionRuleID = 1;
		Boolean overrides = false;
		String apiVersion = "YOUR VERSION";
		try {
			// Please replace the parameter values with yours
			IntrusionPreventionAssignments result = instance.removeIntrusionPreventionRuleIDFromComputer(computerID, intrusionPreventionRuleID, overrides, apiVersion);
			System.out.println(result);
		} catch (ApiException e) {
			System.err.println("An exception occurred when calling ComputerIntrusionPreventionRuleAssignmentsRecommendationsApi.removeIntrusionPreventionRuleIDFromComputer");
			e.printStackTrace();
		}
	}
}

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