Search for agent version controls using optional filters.
AgentVersionControlsApi.searchAgentVersionControls([param1, param2, ...])
AgentVersionControlsApi.search_agent_version_controls([param1, param2, ...])
AgentVersionControlsApi.searchAgentVersionControls([param1, param2, ...])
A collection of options used to filter the search results.
successful operation
{- "maxItems": 0,
- "searchCriteria": [
- {
- "fieldName": "string",
- "booleanTest": true,
- "numericTest": "less-than",
- "numericValue": 0,
- "stringTest": "equal",
- "stringValue": "string",
- "stringWildcards": true,
- "choiceTest": "equal",
- "choiceValue": "string",
- "firstDateValue": 0,
- "firstDateInclusive": true,
- "lastDateValue": 0,
- "lastDateInclusive": true,
- "nullTest": true,
- "versionTest": "less-than",
- "versionValue": "string",
- "idValue": 0,
- "idTest": "less-than"
}
], - "sortByObjectID": true
}
{- "agentVersionControls": [
- {
- "os": "Windows",
- "distro": "Red Hat",
- "platform": "Microsoft Windows 2000 Server",
- "architecture": "32-bit",
- "type": "latest",
- "version": "string",
- "availableVersions": [
- {
- "version": "string",
- "isLatest": true,
- "isLatestLTS": true
}
], - "ID": 0
}
]
}
Lists all agent version controls.
AgentVersionControlsApi.listAgentVersionControls([param1, param2, ...])
AgentVersionControlsApi.list_agent_version_controls([param1, param2, ...])
AgentVersionControlsApi.listAgentVersionControls([param1, param2, ...])
successful operation
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.AgentVersionControlsApi; import com.trendmicro.deepsecurity.model.AgentVersionControls; public class ListAgentVersionControlsExample { 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 AgentVersionControlsApi instance = new AgentVersionControlsApi(); Integer agentVersionControlProfileID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours AgentVersionControls result = instance.listAgentVersionControls(agentVersionControlProfileID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling AgentVersionControlsApi.listAgentVersionControls"); e.printStackTrace(); } } }
{- "agentVersionControls": [
- {
- "os": "Windows",
- "distro": "Red Hat",
- "platform": "Microsoft Windows 2000 Server",
- "architecture": "32-bit",
- "type": "latest",
- "version": "string",
- "availableVersions": [
- {
- "version": "string",
- "isLatest": true,
- "isLatestLTS": true
}
], - "ID": 0
}
]
}
Modify the agent version controls. Any unset elements will be left unchanged.
AgentVersionControlsApi.modifyAgentVersionControls([param1, param2, ...])
AgentVersionControlsApi.modify_agent_version_controls([param1, param2, ...])
AgentVersionControlsApi.modifyAgentVersionControls([param1, param2, ...])
The agent version controls to modify.
Array of objects (agentVersionControl) |
successful operation
{- "agentVersionControls": [
- {
- "type": "latest",
- "version": "string",
- "ID": 0
}
]
}
{- "agentVersionControls": [
- {
- "os": "Windows",
- "distro": "Red Hat",
- "platform": "Microsoft Windows 2000 Server",
- "architecture": "32-bit",
- "type": "latest",
- "version": "string",
- "availableVersions": [
- {
- "version": "string",
- "isLatest": true,
- "isLatestLTS": true
}
], - "ID": 0
}
]
}
Describe an Agent Version Control by ID.
AgentVersionControlsApi.describeAgentVersionControl([param1, param2, ...])
AgentVersionControlsApi.describe_agent_version_control([param1, param2, ...])
AgentVersionControlsApi.describeAgentVersionControl([param1, param2, ...])
successful operation
The agent version control does not exist.
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.AgentVersionControlsApi; import com.trendmicro.deepsecurity.model.AgentVersionControl; public class DescribeAgentVersionControlExample { 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 AgentVersionControlsApi instance = new AgentVersionControlsApi(); Integer agentVersionControlProfileID = 1; Integer agentVersionControlID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours AgentVersionControl result = instance.describeAgentVersionControl(agentVersionControlProfileID, agentVersionControlID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling AgentVersionControlsApi.describeAgentVersionControl"); e.printStackTrace(); } } }
{- "os": "Windows",
- "distro": "Red Hat",
- "platform": "Microsoft Windows 2000 Server",
- "architecture": "32-bit",
- "type": "latest",
- "version": "string",
- "availableVersions": [
- {
- "version": "string",
- "isLatest": true,
- "isLatestLTS": true
}
], - "ID": 0
}