Describe an existing AWS Connector
Describe an AWS Connector by ID.
AwsConnectorsApi.describeAWSConnector([param1, param2, ...])
AWSConnectorsApi.describe_aws_connector([param1, param2, ...])
AWSConnectorsApi.describeAWSConnector([param1, param2, ...])
successful operation
Not authorized to view AWS Connectors.
The AWS Connector 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.AwsConnectorsApi; import com.trendmicro.deepsecurity.model.AWSConnector; public class DescribeAWSConnectorExample { 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 AwsConnectorsApi instance = new AwsConnectorsApi(); Integer awsConnectorID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours AWSConnector result = instance.describeAWSConnector(awsConnectorID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling AwsConnectorsApi.describeAWSConnector"); e.printStackTrace(); } } }
- 200
{- "displayName": "string",
- "accountId": "string",
- "accountAlias": "string",
- "accessKey": "string",
- "secretKey": "string",
- "seedRegion": "string",
- "useInstanceRole": true,
- "crossAccountRoleArn": "string",
- "lastSyncTime": 0,
- "syncedRegions": [
- {
- "region": "string",
- "computersSynced": 0,
- "workspacesSynced": 0
}
], - "workspacesEnabled": true,
- "parentGroupID": 0,
- "ID": 0
}
Modify an AWS Connector
Modify the specified AWS Connector by ID. Any unset elements will be left unchanged.
AwsConnectorsApi.modifyAWSConnector([param1, param2, ...])
AWSConnectorsApi.modify_aws_connector([param1, param2, ...])
AWSConnectorsApi.modifyAWSConnector([param1, param2, ...])
path Parameters
header Parameters
Request Body schema: application/json
The settings of the AWS Connector to modify.
successful operation
Not authorized to modify AWS Connectors or the requested modification is not permitted.
The AWS account does not exist.
- Payload
- Java
- Python
- JavaScript
{- "displayName": "string",
- "accountId": "string",
- "accountAlias": "string",
- "accessKey": "string",
- "secretKey": "string",
- "seedRegion": "string",
- "useInstanceRole": true,
- "crossAccountRoleArn": "string",
- "lastSyncTime": 0,
- "syncedRegions": [
- {
- "region": "string",
- "computersSynced": 0,
- "workspacesSynced": 0
}
], - "workspacesEnabled": true,
- "parentGroupID": 0
}
- 200
{- "displayName": "string",
- "accountId": "string",
- "accountAlias": "string",
- "accessKey": "string",
- "secretKey": "string",
- "seedRegion": "string",
- "useInstanceRole": true,
- "crossAccountRoleArn": "string",
- "lastSyncTime": 0,
- "syncedRegions": [
- {
- "region": "string",
- "computersSynced": 0,
- "workspacesSynced": 0
}
], - "workspacesEnabled": true,
- "parentGroupID": 0,
- "ID": 0
}
Delete an AWS Connector
Delete an existing AWS Connector by ID.
AwsConnectorsApi.deleteAWSConnector([param1, param2, ...])
AWSConnectorsApi.delete_aws_connector([param1, param2, ...])
AWSConnectorsApi.deleteAWSConnector([param1, param2, ...])
Request is successful.
No Content
Not authorized to delete AWS Connectors.
The AWS Connector 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.AwsConnectorsApi; public class DeleteAWSConnectorExample { 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 AwsConnectorsApi instance = new AwsConnectorsApi(); Integer awsConnectorID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours instance.deleteAWSConnector(awsConnectorID, apiVersion); } catch (ApiException e) { System.err.println("An exception occurred when calling AwsConnectorsApi.deleteAWSConnector"); e.printStackTrace(); } } }
List AWS Connectors
Lists all AWS Connectors.
AwsConnectorsApi.listAWSConnectors([param1, param2, ...])
AWSConnectorsApi.list_aws_connectors([param1, param2, ...])
AWSConnectorsApi.listAWSConnectors([param1, param2, ...])
successful operation
Not authorized to view AWS Connectors.
- 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.AwsConnectorsApi; import com.trendmicro.deepsecurity.model.AWSConnectors; public class ListAWSConnectorsExample { 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 AwsConnectorsApi instance = new AwsConnectorsApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours AWSConnectors result = instance.listAWSConnectors(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling AwsConnectorsApi.listAWSConnectors"); e.printStackTrace(); } } }
- 200
{- "awsConnectors": [
- {
- "displayName": "string",
- "accountId": "string",
- "accountAlias": "string",
- "accessKey": "string",
- "secretKey": "string",
- "seedRegion": "string",
- "useInstanceRole": true,
- "crossAccountRoleArn": "string",
- "lastSyncTime": 0,
- "syncedRegions": [
- {
- "region": "string",
- "computersSynced": 0,
- "workspacesSynced": 0
}
], - "workspacesEnabled": true,
- "parentGroupID": 0,
- "ID": 0
}
]
}
Create an AWS Connector
Create a new AWS Connector.
AwsConnectorsApi.createAWSConnector([param1, param2, ...])
AWSConnectorsApi.create_aws_connector([param1, param2, ...])
AWSConnectorsApi.createAWSConnector([param1, param2, ...])
header Parameters
Request Body schema: application/json
The settings of the new AWS Connector.
successful operation
The AWS Connector already exists.
Not authorized to create AWS Connectors.
- Payload
- Java
- Python
- JavaScript
{- "displayName": "string",
- "accountId": "string",
- "accountAlias": "string",
- "accessKey": "string",
- "secretKey": "string",
- "seedRegion": "string",
- "useInstanceRole": true,
- "crossAccountRoleArn": "string",
- "lastSyncTime": 0,
- "syncedRegions": [
- {
- "region": "string",
- "computersSynced": 0,
- "workspacesSynced": 0
}
], - "workspacesEnabled": true,
- "parentGroupID": 0
}
- 200
{- "displayName": "string",
- "accountId": "string",
- "accountAlias": "string",
- "accessKey": "string",
- "secretKey": "string",
- "seedRegion": "string",
- "useInstanceRole": true,
- "crossAccountRoleArn": "string",
- "lastSyncTime": 0,
- "syncedRegions": [
- {
- "region": "string",
- "computersSynced": 0,
- "workspacesSynced": 0
}
], - "workspacesEnabled": true,
- "parentGroupID": 0,
- "ID": 0
}
Search AWS Connectors
Search for AWS Connectors using optional filters.
AwsConnectorsApi.searchAWSConnectors([param1, param2, ...])
AWSConnectorsApi.search_aws_connectors([param1, param2, ...])
AWSConnectorsApi.searchAWSConnectors([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 AWS Connectors.
- 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
{- "awsConnectors": [
- {
- "displayName": "string",
- "accountId": "string",
- "accountAlias": "string",
- "accessKey": "string",
- "secretKey": "string",
- "seedRegion": "string",
- "useInstanceRole": true,
- "crossAccountRoleArn": "string",
- "lastSyncTime": 0,
- "syncedRegions": [
- {
- "region": "string",
- "computersSynced": 0,
- "workspacesSynced": 0
}
], - "workspacesEnabled": true,
- "parentGroupID": 0,
- "ID": 0
}
]
}
Move an AWS Connector
Move the specified AWS Connector by ID to target computer group.
AwsConnectorsApi.moveAWSConnector([param1, param2, ...])
AWSConnectorsApi.move_aws_connector([param1, param2, ...])
AWSConnectorsApi.moveAWSConnector([param1, param2, ...])
path Parameters
query Parameters
successful operation
Bad request to move AWS Connectors.
Not authorized to move AWS Connectors.
The AWS account 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.AwsConnectorsApi; import com.trendmicro.deepsecurity.model.AWSConnector; public class MoveAWSConnectorExample { 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 AwsConnectorsApi instance = new AwsConnectorsApi(); Integer awsConnectorID = 1; Integer moveToHostGroupID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours AWSConnector result = instance.moveAWSConnector(awsConnectorID, moveToHostGroupID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling AwsConnectorsApi.moveAWSConnector"); e.printStackTrace(); } } }
- 200
{- "displayName": "string",
- "accountId": "string",
- "accountAlias": "string",
- "accessKey": "string",
- "secretKey": "string",
- "seedRegion": "string",
- "useInstanceRole": true,
- "crossAccountRoleArn": "string",
- "lastSyncTime": 0,
- "syncedRegions": [
- {
- "region": "string",
- "computersSynced": 0,
- "workspacesSynced": 0
}
], - "workspacesEnabled": true,
- "parentGroupID": 0,
- "ID": 0
}