Integrate Google Translate with Google SecOps
This document explains how to configure and integrate Google Translate with Google Security Operations (Google SecOps).
Integration version: 4.0
Before you begin
To use the integration, you need to create and configure an API key.
Create the API key
To create the API key, complete the following steps:
In the Google Cloud console, go to APIs & Services > Credentials.
Click add Create credentials.
Select API key to generate a new API key. A dialog appears with a generated API key.
To copy the API key, click
Copy.
Configure the API key restrictions
To configure the API restriction for the API key, complete the following steps:
Click Restrict key.
Under API restrictions, select Restrict key.
Select Cloud Translation API from the API list.
Configure the applicable restrictions.
Click Save to save the API key configuration.
Integration parameters
The Google Translate integration requires the following parameters:
Parameter | Description |
---|---|
API Root |
Required. The API root of the Google Translate instance. The default value is
For more information about Cloud Translation API, see Cloud Translation API. |
API Key |
Required. The API key of the Google Translate account. |
Verify SSL |
Required. If selected, the integration validates the SSL certificate when connecting to the Google Translate server. Selected by default. |
For instructions about how to configure an integration in Google SecOps, see Configure integrations.
You can make changes at a later stage, if needed. After you configure an integration instance, you can use it in playbooks. For more information about how to configure and support multiple instances, see Supporting multiple instances.
Actions
For more information about actions, see Respond to pending actions from Your Workdesk and Perform a manual action.
List Languages
Use the List Languages action to list available languages in Google Translate.
This action doesn't run on Google SecOps entities.
Action inputs
The List Languages action requires the following parameters:
Parameter | Description |
---|---|
Filter Key |
Optional. A key to filter languages. The possible values are as follows:
The default value is |
Filter Logic |
Optional. A filter logic to apply. The filtering logic
uses the value that you set in the The possible values are as follows:
The default value is |
Filter Value |
Optional. A value to use in the filter. The filtering
logic uses the value that you set in the If If you don't select a value, the action ignores the filter. Filtering logic is working based on the value provided in the |
Max Records To Return |
Optional. The maximum number of records to return. The
maximum value is If you don't set a value, the action returns 50 records by default. |
Action outputs
The List Languages action provides the following outputs:
Action output type | Availability |
---|---|
Case wall attachment | Not available |
Case wall link | Not available |
Case wall table | Available |
Enrichment table | Not available |
JSON result | Available |
Output messages | Available |
Script result | Available |
Case wall table
The List Languages action can generate the following table:
Table name: Available Languages
Table column: Language Key
JSON result
The following example shows the JSON result output received when using the List Languages action:
{
"data": {
"languages": [
{
"language": "af"
},
{
"language": "am"
},
{
"language": "ar"
}
]
}
}
Output messages
The List Languages action can return the following output messages:
Output message | Message description |
---|---|
|
The action succeeded. |
Error executing action "List Languages". Reason: ERROR_REASON |
The action failed. Check the connection to the server, input parameters, or credentials. |
Script result
The following table lists the value for the script result output when using the List Languages action:
Script result name | Value |
---|---|
is_success |
True or False |
Ping
Use the Ping action to test the connectivity to Google Translate.
This action doesn't run on Google SecOps entities.
Action inputs
None.
Action outputs
The Ping action provides the following outputs:
Action output type | Availability |
---|---|
Case wall attachment | Not available |
Case wall link | Not available |
Case wall table | Not available |
Enrichment table | Not available |
JSON result | Not available |
Output messages | Available |
Script result | Available |
Output messages
The Ping action can return the following output messages:
Output message | Message description |
---|---|
|
The action succeeded. |
Failed to connect to the Google Translate server! Error is ERROR_REASON |
The action failed. Check the connection to the server, input parameters, or credentials. |
Script result
The following table lists the value for the script result output when using the Ping action:
Script result name | Value |
---|---|
is_success |
True or False |
Translate Text
Use the Translate Text action to translate text with Google Translate.
This action doesn't run on Google SecOps entities.
Action inputs
The Translate Text action requires the following parameters:
Parameter | Description |
---|---|
Source Language |
Optional. A source language of the text. If you don't configure this parameter, the action detects the language automatically. |
Target Language |
Required. A target language. The default value is
|
Text |
Required. A text to translate. |
Action outputs
The Translate Text action provides the following outputs:
Action output type | Availability |
---|---|
Case wall attachment | Not available |
Case wall link | Not available |
Case wall table | Not available |
Enrichment table | Not available |
JSON result | Available |
Output messages | Available |
Script result | Available |
JSON result
The following example shows the JSON result output received when using the Translate Text action:
{
"data": {
"translations": [
{
"translatedText": "TRANSLATED_TEXT"
}
]
}
}
Output messages
The Translate Text action can return the following output messages:
Output message | Message description |
---|---|
|
The action succeeded. |
Error executing action "Translate Text". Reason: ERROR_REASON |
The action failed. Check the connection to the server, input parameters, or credentials. |
Script result
The following table lists the value for the script result output when using the Translate Text action:
Script result name | Value |
---|---|
is_success |
True or False |
Need more help? Get answers from Community members and Google SecOps professionals.