Method: instances.translateYlRule

Full name: projects.locations.instances.translateYlRule

Translate natural language to a Yara-L rule.

HTTP request

POST https://chronicle.googleapis.com/v1alpha/{instance}:translateYlRule

Path parameters

Parameters
instance

string

Required. The Chronicle instance associated with the request. Format: projects/{project}/locations/{location}/instances/{instance}

Request body

The request body contains data with the following structure:

JSON representation
{
  "text": string,
  "udm_query": string
}
Fields
text

string

Required. Natural language text description for the rule.

udm_query

string

Required. UDM query generated from the text via TranslateUDMQuery.

Response body

Response message for TranslateYLRule.

If successful, the response body contains data with the following structure:

JSON representation
{
  "rule_text": string,
  "message": string
}
Fields
rule_text

string

The translated YARA-L rule text.

message

string

Optional. The message to be shown to the user if the translation was unsuccessful.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the instance resource:

  • chronicle.ais.translateYlRule

For more information, see the IAM documentation.