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.
import com.trendmicro.deepsecurity.ApiClient; import com.trendmicro.deepsecurity.Configuration; 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 DefaultAuthentication = (ApiKeyAuth) defaultClient.getAuthentication("DefaultAuthentication"); DefaultAuthentication.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(); } } }
{- "gcpconnectors": [
- {
- "name": "string",
- "serviceAccount": "string",
- "ownerProjectID": "string",
- "privateKeyID": "string",
- "clientEmail": "string",
- "ID": 0
}
]
}
Create a new GCP Connector.
GcpConnectorsApi.createGCPConnector([param1, param2, ...])
GCPConnectorsApi.create_gcp_connector([param1, param2, ...])
GCPConnectorsApi.createGCPConnector([param1, param2, ...])
The settings of the new GCP connector.
successful operation
Not authorized to create GCP Connector.
{- "name": "string",
- "serviceAccount": "string"
}
{- "name": "string",
- "serviceAccount": "string",
- "ownerProjectID": "string",
- "privateKeyID": "string",
- "clientEmail": "string",
- "ID": 0
}
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.
import com.trendmicro.deepsecurity.ApiClient; import com.trendmicro.deepsecurity.Configuration; 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 DefaultAuthentication = (ApiKeyAuth) defaultClient.getAuthentication("DefaultAuthentication"); DefaultAuthentication.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(); } } }
{- "name": "string",
- "serviceAccount": "string",
- "ownerProjectID": "string",
- "privateKeyID": "string",
- "clientEmail": "string",
- "ID": 0
}
Modify a GCP connector by ID.
GcpConnectorsApi.modifyGCPConnector([param1, param2, ...])
GCPConnectorsApi.modify_gcp_connector([param1, param2, ...])
GCPConnectorsApi.modifyGCPConnector([param1, param2, ...])
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.
{- "name": "string",
- "serviceAccount": "string"
}
{- "name": "string",
- "serviceAccount": "string",
- "ownerProjectID": "string",
- "privateKeyID": "string",
- "clientEmail": "string",
- "ID": 0
}
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.
import com.trendmicro.deepsecurity.ApiClient; import com.trendmicro.deepsecurity.Configuration; 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 DefaultAuthentication = (ApiKeyAuth) defaultClient.getAuthentication("DefaultAuthentication"); DefaultAuthentication.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(); } } }
Search for GCP connectors using optional filters.
GcpConnectorsApi.searchGCPConnectors([param1, param2, ...])
GCPConnectorsApi.search_gcp_connectors([param1, param2, ...])
GCPConnectorsApi.searchGCPConnectors([param1, param2, ...])
A collection of options used to filter the search results.
successful operation
Not authorized to view GCP connectors.
{- "maxItems": 0,
- "searchCriteria": [
- {
- "fieldName": "string",
- "booleanTest": true,
- "numericTest": "less-than",
- "numericValue": 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"
}
], - "sortByObjectID": true
}
{- "gcpconnectors": [
- {
- "name": "string",
- "serviceAccount": "string",
- "ownerProjectID": "string",
- "privateKeyID": "string",
- "clientEmail": "string",
- "ID": 0
}
]
}