Get IAM Query V2
GET/iam/api/v2/alert/:alertId/query
Returns the query associated with an alert instance
Request
Path Parameters
alertId stringrequired
The alert id
Example: I-34537
Responses
- 200
- 400
- 401
- 403
- 404
- 429
OK
- application/json
- Schema
- Example (from schema)
Schema
timeRange object
The time range which the query run at to generate the alert
type stringrequired
query string
{
"timeRange": "{''type': 'relative', 'value': {'unit': 'day', 'amount': 7} }",
"query": "config from iam where source.cloud.type = 'AWS'"
}
Bad request
- application/json
- Schema
- Example (from schema)
Schema
error object
code stringrequired
message stringrequired
target string
details string[]
innerError
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
"string"
]
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error object
code stringrequired
message stringrequired
target string
details string[]
innerError
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
"string"
]
}
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
error object
code stringrequired
message stringrequired
target string
details string[]
innerError
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
"string"
]
}
}
Not found
- application/json
- Schema
- Example (from schema)
Schema
error object
code stringrequired
message stringrequired
target string
details string[]
innerError
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
"string"
]
}
}
Throttled
Response Headers
X-RateLimit-Remaining integer
X-RateLimit-Requested-Tokens integer
X-RateLimit-Burst-Capacity integer
X-RateLimit-Replenish-Rate integer
Loading...