Describe a Computer Group
Describe a computer group by ID.
ComputerGroupsApi.describeComputerGroup([param1, param2, ...])
ComputerGroupsApi.describe_computer_group([param1, param2, ...])
ComputerGroupsApi.describeComputerGroup([param1, param2, ...])
successful operation
Not authorized to view computer groups.
The computer group 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.ComputerGroupsApi; import com.trendmicro.deepsecurity.model.ComputerGroup; public class DescribeComputerGroupExample { 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 ComputerGroupsApi instance = new ComputerGroupsApi(); Integer computerGroupID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours ComputerGroup result = instance.describeComputerGroup(computerGroupID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ComputerGroupsApi.describeComputerGroup"); e.printStackTrace(); } } }
- 200
{- "type": "alicloud-account",
- "name": "string",
- "description": "string",
- "parentGroupID": 0,
- "directoryID": 0,
- "externalID": "string",
- "virtualID": 0,
- "virtualType": 0,
- "virtualName": "string",
- "cloudType": "amazon",
- "cloudResourceType": "physical",
- "cloudID": 0,
- "amazonAccountID": 0,
- "amazonRegionID": 0,
- "amazonVPCID": 0,
- "amazonSubnetID": 0,
- "amazonWorkspacesID": 0,
- "amazonDirectoryID": 0,
- "ID": 0
}
Modify a Computer Group
Modify a computer group by ID. Any unset elements will be left unchanged.
ComputerGroupsApi.modifyComputerGroup([param1, param2, ...])
ComputerGroupsApi.modify_computer_group([param1, param2, ...])
ComputerGroupsApi.modifyComputerGroup([param1, param2, ...])
path Parameters
header Parameters
Request Body schema: application/json
The settings of the computer group to modify.
successful operation
Not authorized to modify computer groups or the requested modification is not permitted.
The computer group does not exist.
- Payload
- Java
- Python
- JavaScript
{- "name": "string",
- "description": "string",
- "parentGroupID": 0
}
- 200
{- "type": "alicloud-account",
- "name": "string",
- "description": "string",
- "parentGroupID": 0,
- "directoryID": 0,
- "externalID": "string",
- "virtualID": 0,
- "virtualType": 0,
- "virtualName": "string",
- "cloudType": "amazon",
- "cloudResourceType": "physical",
- "cloudID": 0,
- "amazonAccountID": 0,
- "amazonRegionID": 0,
- "amazonVPCID": 0,
- "amazonSubnetID": 0,
- "amazonWorkspacesID": 0,
- "amazonDirectoryID": 0,
- "ID": 0
}
Delete a Computer Group
Delete a computer group by ID.
ComputerGroupsApi.deleteComputerGroup([param1, param2, ...])
ComputerGroupsApi.delete_computer_group([param1, param2, ...])
ComputerGroupsApi.deleteComputerGroup([param1, param2, ...])
Request is successful.
Not authorized to delete computer groups.
- 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.ComputerGroupsApi; public class DeleteComputerGroupExample { 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 ComputerGroupsApi instance = new ComputerGroupsApi(); Integer computerGroupID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours instance.deleteComputerGroup(computerGroupID, apiVersion); } catch (ApiException e) { System.err.println("An exception occurred when calling ComputerGroupsApi.deleteComputerGroup"); e.printStackTrace(); } } }
List Computer Groups
Lists all computer groups.
ComputerGroupsApi.listComputerGroups([param1, param2, ...])
ComputerGroupsApi.list_computer_groups([param1, param2, ...])
ComputerGroupsApi.listComputerGroups([param1, param2, ...])
successful operation
Not authorized to view computer groups.
- 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.ComputerGroupsApi; import com.trendmicro.deepsecurity.model.ComputerGroups; public class ListComputerGroupsExample { 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 ComputerGroupsApi instance = new ComputerGroupsApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours ComputerGroups result = instance.listComputerGroups(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ComputerGroupsApi.listComputerGroups"); e.printStackTrace(); } } }
- 200
{- "computerGroups": [
- {
- "type": "alicloud-account",
- "name": "string",
- "description": "string",
- "parentGroupID": 0,
- "directoryID": 0,
- "externalID": "string",
- "virtualID": 0,
- "virtualType": 0,
- "virtualName": "string",
- "cloudType": "amazon",
- "cloudResourceType": "physical",
- "cloudID": 0,
- "amazonAccountID": 0,
- "amazonRegionID": 0,
- "amazonVPCID": 0,
- "amazonSubnetID": 0,
- "amazonWorkspacesID": 0,
- "amazonDirectoryID": 0,
- "ID": 0
}
]
}
Create a Computer Group
Create a new computer group.
ComputerGroupsApi.createComputerGroup([param1, param2, ...])
ComputerGroupsApi.create_computer_group([param1, param2, ...])
ComputerGroupsApi.createComputerGroup([param1, param2, ...])
header Parameters
Request Body schema: application/json
The settings of the new computer group.
successful operation
Not authorized to create computer groups.
- Payload
- Java
- Python
- JavaScript
{- "name": "string",
- "description": "string",
- "parentGroupID": 0
}
- 200
{- "type": "alicloud-account",
- "name": "string",
- "description": "string",
- "parentGroupID": 0,
- "directoryID": 0,
- "externalID": "string",
- "virtualID": 0,
- "virtualType": 0,
- "virtualName": "string",
- "cloudType": "amazon",
- "cloudResourceType": "physical",
- "cloudID": 0,
- "amazonAccountID": 0,
- "amazonRegionID": 0,
- "amazonVPCID": 0,
- "amazonSubnetID": 0,
- "amazonWorkspacesID": 0,
- "amazonDirectoryID": 0,
- "ID": 0
}
Search Computer Groups
Search for computer groups using optional filters.
ComputerGroupsApi.searchComputerGroups([param1, param2, ...])
ComputerGroupsApi.search_computer_groups([param1, param2, ...])
ComputerGroupsApi.searchComputerGroups([param1, param2, ...])
header Parameters
Request Body schema: application/json
A collection of options used to filter the search results.
successful operation
Not authorized to view computer groups.
- 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
{- "computerGroups": [
- {
- "type": "alicloud-account",
- "name": "string",
- "description": "string",
- "parentGroupID": 0,
- "directoryID": 0,
- "externalID": "string",
- "virtualID": 0,
- "virtualType": 0,
- "virtualName": "string",
- "cloudType": "amazon",
- "cloudResourceType": "physical",
- "cloudID": 0,
- "amazonAccountID": 0,
- "amazonRegionID": 0,
- "amazonVPCID": 0,
- "amazonSubnetID": 0,
- "amazonWorkspacesID": 0,
- "amazonDirectoryID": 0,
- "ID": 0
}
]
}