Describe an agent version control
Describe an Agent Version Control by ID.
AgentVersionControlsApi.describeAgentVersionControl([param1, param2, ...])
AgentVersionControlsApi.describe_agent_version_control([param1, param2, ...])
AgentVersionControlsApi.describeAgentVersionControl([param1, param2, ...])
path Parameters
successful operation
The agent version control does not exist.
- Java
- Python
- JavaScript
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.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 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 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(); } } }
- 200
{- "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
}
List agent version controls
Lists all agent version controls.
AgentVersionControlsApi.listAgentVersionControls([param1, param2, ...])
AgentVersionControlsApi.list_agent_version_controls([param1, param2, ...])
AgentVersionControlsApi.listAgentVersionControls([param1, param2, ...])
successful operation
- Java
- Python
- JavaScript
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.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 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 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(); } } }
- 200
{- "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 agent version controls
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, ...])
path Parameters
header Parameters
Request Body schema: application/json
The agent version controls to modify.
Array of objects (agentVersionControl) |
successful operation
- Payload
- Java
- Python
- JavaScript
{- "agentVersionControls": [
- {
- "type": "latest",
- "version": "string",
- "ID": 0
}
]
}
- 200
{- "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
}
]
}
Search agent version controls
Search for agent version controls using optional filters.
AgentVersionControlsApi.searchAgentVersionControls([param1, param2, ...])
AgentVersionControlsApi.search_agent_version_controls([param1, param2, ...])
AgentVersionControlsApi.searchAgentVersionControls([param1, param2, ...])
path Parameters
header Parameters
Request Body schema: application/json
A collection of options used to filter the search results.
successful operation
- Payload
- Java
- Python
- JavaScript
{- "maxItems": 0,
- "searchCriteria": [
- {
- "fieldName": "string",
- "booleanTest": true,
- "numericTest": "less-than",
- "numericValue": 0,
- "numericValueList": [
- 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",
- "idValueList": [
- 0
]
}
], - "sortByObjectID": true
}
- 200
{- "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
}
]
}