Describe a connector action
Describe a connector action by connector ID and action ID.
GcpConnectorActionsApi.describeGCPConnectorAction([param1, param2, ...])
GCPConnectorActionsApi.describe_gcp_connector_action([param1, param2, ...])
GCPConnectorActionsApi.describeGCPConnectorAction([param1, param2, ...])
successful operation
Not authorized to view the action.
The action 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.GcpConnectorActionsApi; import com.trendmicro.deepsecurity.model.Action; public class DescribeGCPConnectorActionExample { 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 GcpConnectorActionsApi instance = new GcpConnectorActionsApi(); Integer gcpConnectorID = 1; Long actionID = 1L; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours Action result = instance.describeGCPConnectorAction(gcpConnectorID, actionID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling GcpConnectorActionsApi.describeGCPConnectorAction"); e.printStackTrace(); } } }
- 200
{- "type": "synchronize",
- "status": "SUBMITTED",
- "submittedTime": 0,
- "ID": 0
}
Create a connector action
Create a connector action by connector ID.
GcpConnectorActionsApi.createGCPConnectorAction([param1, param2, ...])
GCPConnectorActionsApi.create_gcp_connector_action([param1, param2, ...])
GCPConnectorActionsApi.createGCPConnectorAction([param1, param2, ...])
path Parameters
header Parameters
Request Body schema: application/json
The property of the new GCP Connector action.
successful operation
Not authorized to view the action.
The action does not exist.
- Payload
- Java
- Python
- JavaScript
{- "type": "synchronize",
- "status": "SUBMITTED",
- "submittedTime": 0
}
- 200
{- "type": "synchronize",
- "status": "SUBMITTED",
- "submittedTime": 0,
- "ID": 0
}