List GCP Connectors
List all GCP connectors.
GcpConnectorsApi.listGCPConnectors([param1, param2, ...])
GCPConnectorsApi.list_gcp_connectors([param1, param2, ...])
GCPConnectorsApi.listGCPConnectors([param1, param2, ...])
successful operation
Not authorized to view GCP 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.GcpConnectorsApi; import com.trendmicro.deepsecurity.model.GCPConnectors; public class ListGCPConnectorsExample { 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 GcpConnectorsApi instance = new GcpConnectorsApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours GCPConnectors result = instance.listGCPConnectors(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling GcpConnectorsApi.listGCPConnectors"); e.printStackTrace(); } } }
- 200
{- "gcpconnectors": [
- {
- "name": "string",
- "serviceAccount": "string",
- "ownerProjectID": "string",
- "privateKeyID": "string",
- "clientEmail": "string",
- "ID": 0
}
]
}
Create a GCP Connector
Create a new GCP Connector.
GcpConnectorsApi.createGCPConnector([param1, param2, ...])
GCPConnectorsApi.create_gcp_connector([param1, param2, ...])
GCPConnectorsApi.createGCPConnector([param1, param2, ...])
header Parameters
Request Body schema: application/json
The settings of the new GCP connector.
successful operation
Not authorized to create GCP Connector.
- Payload
- Java
- Python
- JavaScript
{- "name": "string",
- "serviceAccount": "string"
}
- 200
{- "name": "string",
- "serviceAccount": "string",
- "ownerProjectID": "string",
- "privateKeyID": "string",
- "clientEmail": "string",
- "ID": 0
}
Search GCP Connectors
Search for GCP connectors using optional filters.
GcpConnectorsApi.searchGCPConnectors([param1, param2, ...])
GCPConnectorsApi.search_gcp_connectors([param1, param2, ...])
GCPConnectorsApi.searchGCPConnectors([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 GCP 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
{- "gcpconnectors": [
- {
- "name": "string",
- "serviceAccount": "string",
- "ownerProjectID": "string",
- "privateKeyID": "string",
- "clientEmail": "string",
- "ID": 0
}
]
}
Describe a GCP Connector
Describe a GCP connector by ID.
GcpConnectorsApi.describeGCPConnector([param1, param2, ...])
GCPConnectorsApi.describe_gcp_connector([param1, param2, ...])
GCPConnectorsApi.describeGCPConnector([param1, param2, ...])
successful operation
Not authorized to view GCP connectors.
The GCP 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.GcpConnectorsApi; import com.trendmicro.deepsecurity.model.GCPConnector; public class DescribeGCPConnectorExample { 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 GcpConnectorsApi instance = new GcpConnectorsApi(); Integer gcpConnectorID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours GCPConnector result = instance.describeGCPConnector(gcpConnectorID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling GcpConnectorsApi.describeGCPConnector"); e.printStackTrace(); } } }
- 200
{- "name": "string",
- "serviceAccount": "string",
- "ownerProjectID": "string",
- "privateKeyID": "string",
- "clientEmail": "string",
- "ID": 0
}
Modify a GCP Connector
Modify a GCP connector by ID.
GcpConnectorsApi.modifyGCPConnector([param1, param2, ...])
GCPConnectorsApi.modify_gcp_connector([param1, param2, ...])
GCPConnectorsApi.modifyGCPConnector([param1, param2, ...])
path Parameters
header Parameters
Request Body schema: application/json
The settings of the GCP connector to modify.
successful operation
Not authorized to modify the GCP Connector or the requested modification is not permitted.
The GCP Connector does not exist.
- Payload
- Java
- Python
- JavaScript
{- "name": "string",
- "serviceAccount": "string"
}
- 200
{- "name": "string",
- "serviceAccount": "string",
- "ownerProjectID": "string",
- "privateKeyID": "string",
- "clientEmail": "string",
- "ID": 0
}
Delete a GCP Connector
Delete a GCP connector by ID.
GcpConnectorsApi.deleteGCPConnector([param1, param2, ...])
GCPConnectorsApi.delete_gcp_connector([param1, param2, ...])
GCPConnectorsApi.deleteGCPConnector([param1, param2, ...])
Request is successful.
Not authorized to delete the GCP connector or the requested modification is not permitted.
- 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.GcpConnectorsApi; public class DeleteGCPConnectorExample { 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 GcpConnectorsApi instance = new GcpConnectorsApi(); Integer gcpConnectorID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours instance.deleteGCPConnector(gcpConnectorID, apiVersion); } catch (ApiException e) { System.err.println("An exception occurred when calling GcpConnectorsApi.deleteGCPConnector"); e.printStackTrace(); } } }