Describe a Data Center Gateway
Describe a data center gateway by ID.
DataCenterGatewaysApi.describeDataCenterGateway([param1, param2, ...])
DataCenterGatewaysApi.describe_data_center_gateway([param1, param2, ...])
DataCenterGatewaysApi.describeDataCenterGateway([param1, param2, ...])
successful operation
Not authorized to view data center gateways.
The data center gateway 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.DataCenterGatewaysApi; import com.trendmicro.deepsecurity.model.DataCenterGateway; public class DescribeDataCenterGatewayExample { 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 DataCenterGatewaysApi instance = new DataCenterGatewaysApi(); Integer dataCenterGatewayID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours DataCenterGateway result = instance.describeDataCenterGateway(dataCenterGatewayID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling DataCenterGatewaysApi.describeDataCenterGateway"); e.printStackTrace(); } } }
- 200
{- "name": "string",
- "publicKey": "string",
- "gatewayResource": "string",
- "endpoint": "string",
- "cloudOneAccountID": "string",
- "created": 0,
- "lastModified": 0,
- "certificate": "string",
- "privateKey": "string",
- "rootCA": "string",
- "ID": 0
}
Modify a Data Center Gateway
Modify a data center gateway by ID.
DataCenterGatewaysApi.modifyDataCenterGateway([param1, param2, ...])
DataCenterGatewaysApi.modify_data_center_gateway([param1, param2, ...])
DataCenterGatewaysApi.modifyDataCenterGateway([param1, param2, ...])
path Parameters
header Parameters
Request Body schema: application/json
The name of the data center gateway to modify.
successful operation
Not authorized to view data center gateways.
The data center gateway does not exist.
- Payload
- Java
- Python
- JavaScript
{- "name": "string"
}
- 200
{- "name": "string",
- "publicKey": "string",
- "gatewayResource": "string",
- "endpoint": "string",
- "cloudOneAccountID": "string",
- "created": 0,
- "lastModified": 0,
- "certificate": "string",
- "privateKey": "string",
- "rootCA": "string",
- "ID": 0
}
Delete a Data Center Gateway
Delete a data center gateway by ID.
DataCenterGatewaysApi.deleteDataCenterGateway([param1, param2, ...])
DataCenterGatewaysApi.delete_data_center_gateway([param1, param2, ...])
DataCenterGatewaysApi.deleteDataCenterGateway([param1, param2, ...])
No Content
- 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.DataCenterGatewaysApi; public class DeleteDataCenterGatewayExample { 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 DataCenterGatewaysApi instance = new DataCenterGatewaysApi(); Integer dataCenterGatewayID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours instance.deleteDataCenterGateway(dataCenterGatewayID, apiVersion); } catch (ApiException e) { System.err.println("An exception occurred when calling DataCenterGatewaysApi.deleteDataCenterGateway"); e.printStackTrace(); } } }
List Data Center Gateways
List all data center gateways.
DataCenterGatewaysApi.listDataCenterGateways([param1, param2, ...])
DataCenterGatewaysApi.list_data_center_gateways([param1, param2, ...])
DataCenterGatewaysApi.listDataCenterGateways([param1, param2, ...])
successful operation
Invalid query parameters.
Not authorized to view data center gateways.
- 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.DataCenterGatewaysApi; import com.trendmicro.deepsecurity.model.DataCenterGateways; public class ListDataCenterGatewaysExample { 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 DataCenterGatewaysApi instance = new DataCenterGatewaysApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours DataCenterGateways result = instance.listDataCenterGateways(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling DataCenterGatewaysApi.listDataCenterGateways"); e.printStackTrace(); } } }
- 200
{- "dataCenterGateways": [
- {
- "name": "string",
- "publicKey": "string",
- "gatewayResource": "string",
- "endpoint": "string",
- "cloudOneAccountID": "string",
- "created": 0,
- "lastModified": 0,
- "certificate": "string",
- "privateKey": "string",
- "rootCA": "string",
- "ID": 0
}
]
}
Create a Data Center Gateway
Create a new data center gateway.
DataCenterGatewaysApi.createDataCenterGateway([param1, param2, ...])
DataCenterGatewaysApi.create_data_center_gateway([param1, param2, ...])
DataCenterGatewaysApi.createDataCenterGateway([param1, param2, ...])
Created
Not authorized to add data center gateways.
- Payload
- Java
- Python
- JavaScript
{- "name": "string"
}
- 201
{- "name": "string",
- "publicKey": "string",
- "gatewayResource": "string",
- "endpoint": "string",
- "cloudOneAccountID": "string",
- "created": 0,
- "lastModified": 0,
- "certificate": "string",
- "privateKey": "string",
- "rootCA": "string",
- "ID": 0
}
Search Data Center Gateways
Search for data center gateways using optional filters.
DataCenterGatewaysApi.searchDataCenterGateways([param1, param2, ...])
DataCenterGatewaysApi.search_data_center_gateways([param1, param2, ...])
DataCenterGatewaysApi.searchDataCenterGateways([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 data center gateways.
- 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
{- "dataCenterGateways": [
- {
- "name": "string",
- "publicKey": "string",
- "gatewayResource": "string",
- "endpoint": "string",
- "cloudOneAccountID": "string",
- "created": 0,
- "lastModified": 0,
- "certificate": "string",
- "privateKey": "string",
- "rootCA": "string",
- "ID": 0
}
]
}