Get a rule proposal
https://api.datadoghq.com/api/v2/security_monitoring/rules/proposals/{proposal_id}https://api.us3.datadoghq.com/api/v2/security_monitoring/rules/proposals/{proposal_id}https://api.us5.datadoghq.com/api/v2/security_monitoring/rules/proposals/{proposal_id}https://api.datadoghq.eu/api/v2/security_monitoring/rules/proposals/{proposal_id}https://api.ap1.datadoghq.com/api/v2/security_monitoring/rules/proposals/{proposal_id}https://api.ap2.datadoghq.com/api/v2/security_monitoring/rules/proposals/{proposal_id}https://api.uk1.datadoghq.com/api/v2/security_monitoring/rules/proposals/{proposal_id}https://api.ddog-gov.com/api/v2/security_monitoring/rules/proposals/{proposal_id}https://api.us2.ddog-gov.com/api/v2/security_monitoring/rules/proposals/{proposal_id}Overview
Get the status of a rule proposal started with the start-a-rule-proposal endpoint.
While the status is pending or in_progress, the proposed rule is still being
generated. Poll this endpoint again later. If the status is completed, the response's rule field contains
the proposed Cloud SIEM detection rule. If the status is failed, the response's error field contains
the reason a rule could not be generated.
This endpoint does not create or modify any detection rules in Cloud SIEM. To create the proposed rule, use the create-a-detection-rule endpoint.
OAuth apps require the security_monitoring_rules_read authorization scope to access this endpoint.
Arguments
Path Parameters
proposal_id [required]The ID of the rule proposal, returned by the start a rule proposal endpoint.
Response
OK
Response containing a rule proposal.
data [required]Data of the rule proposal.
attributes [required]Attributes of the rule proposal.
errorThe reason no rule could be generated. Only present when the status is failed.
kind [required]The kind of failure.
translation_error: no rule could be generated from the input. Reword the input or add details, then start a new rule proposal.internal_error: the proposal failed because of an internal error. Start a new rule proposal to try again.
messageA human-readable explanation of why no rule could be generated, when available.
typeThe type of failure within its kind, such as NoRuleProduced.
ruleThe proposed Cloud SIEM detection rule in the same format as the create a detection
rule endpoint. It is not saved in Cloud SIEM. Only present when the status is
completed. Review the rule, then create it with the create a
detection rule
endpoint.
status [required]The status of the rule proposal. pending and in_progress mean the proposed rule is
still being generated. Poll the endpoint again later. completed and failed are final:
completed proposals contain the proposed rule in rule, and failed proposals
contain the reason in error.
id [required]The ID of the rule proposal.
type [required]The rule proposal resource type. The value is always rule_proposals.
rule_proposalsrule_proposals{
"data": {
"attributes": {
"error": {
"kind": "translation_error",
"message": "No log source matches the described activity.",
"type": "NoRuleProduced"
},
"rule": {},
"status": "completed"
},
"id": "c968cf83-56c2-4d54-a993-6c86dfb83527",
"type": "rule_proposals"
}
}Bad Request
API error response.
errors [required]A list of errors.
codeAn application-specific error code.
detailA human-readable explanation specific to this occurrence of the error.
metaNon-standard meta-information about the error
sourceReferences to the source of the error.
headerA string indicating the name of a single request header which caused the error.
parameterA string indicating which URI query parameter caused the error.
pointerA JSON pointer to the value in the request document that caused the error.
statusStatus code of the response.
titleShort human-readable summary of the error.
{
"errors": [
{
"code": "invalid_request",
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}Unauthorized
API error response.
errors [required]A list of errors.
codeAn application-specific error code.
detailA human-readable explanation specific to this occurrence of the error.
metaNon-standard meta-information about the error
sourceReferences to the source of the error.
headerA string indicating the name of a single request header which caused the error.
parameterA string indicating which URI query parameter caused the error.
pointerA JSON pointer to the value in the request document that caused the error.
statusStatus code of the response.
titleShort human-readable summary of the error.
{
"errors": [
{
"code": "invalid_request",
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}Forbidden
API error response.
errors [required]A list of errors.
codeAn application-specific error code.
detailA human-readable explanation specific to this occurrence of the error.
metaNon-standard meta-information about the error
sourceReferences to the source of the error.
headerA string indicating the name of a single request header which caused the error.
parameterA string indicating which URI query parameter caused the error.
pointerA JSON pointer to the value in the request document that caused the error.
statusStatus code of the response.
titleShort human-readable summary of the error.
{
"errors": [
{
"code": "invalid_request",
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}Not Found
API error response.
errors [required]A list of errors.
codeAn application-specific error code.
detailA human-readable explanation specific to this occurrence of the error.
metaNon-standard meta-information about the error
sourceReferences to the source of the error.
headerA string indicating the name of a single request header which caused the error.
parameterA string indicating which URI query parameter caused the error.
pointerA JSON pointer to the value in the request document that caused the error.
statusStatus code of the response.
titleShort human-readable summary of the error.
{
"errors": [
{
"code": "invalid_request",
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}Too many requests
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Code Example
# Path parameters
export proposal_id="c968cf83-56c2-4d54-a993-6c86dfb83527"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/security_monitoring/rules/proposals/${proposal_id}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Path parameters
export proposal_id="c968cf83-56c2-4d54-a993-6c86dfb83527"
# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/security_monitoring/rules/proposals/${proposal_id}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Path parameters
export proposal_id="c968cf83-56c2-4d54-a993-6c86dfb83527"
# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/security_monitoring/rules/proposals/${proposal_id}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Path parameters
export proposal_id="c968cf83-56c2-4d54-a993-6c86dfb83527"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/security_monitoring/rules/proposals/${proposal_id}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Path parameters
export proposal_id="c968cf83-56c2-4d54-a993-6c86dfb83527"
# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/security_monitoring/rules/proposals/${proposal_id}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Path parameters
export proposal_id="c968cf83-56c2-4d54-a993-6c86dfb83527"
# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/security_monitoring/rules/proposals/${proposal_id}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Path parameters
export proposal_id="c968cf83-56c2-4d54-a993-6c86dfb83527"
# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/security_monitoring/rules/proposals/${proposal_id}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Path parameters
export proposal_id="c968cf83-56c2-4d54-a993-6c86dfb83527"
# Set your Datadog site and credentials
export DD_SITE="ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/security_monitoring/rules/proposals/${proposal_id}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Path parameters
export proposal_id="c968cf83-56c2-4d54-a993-6c86dfb83527"
# Set your Datadog site and credentials
export DD_SITE="us2.ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/security_monitoring/rules/proposals/${proposal_id}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"