Azure Resources API
Use these operations to interact with the Azure Resources integration in Cortex.
Required permissions
Your API key must have the Configure integrations
permission.
Operations
Authorizations
Query parameters
includeDisabledbooleanOptionalDefault:
Whether to include disabled Azure Resources types
false
pageSizeinteger · int32RequiredDefault:
Number of results to return per page, between 1 and 1000. Default 250.
250
pageinteger · int32RequiredDefault:
Page number to return, 0-indexed. Default 0.
0
Responses
200
Successfully found Azure Resources types
application/json
404
Azure Resources types not found
application/json
429
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
application/problem+json
get
GET /api/v1/azure-resources/types HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"hasMore": true,
"page": 1,
"total": 1,
"totalPages": 1,
"types": [
{
"enabled": true,
"type": "microsoft.policyinsights/policyevents"
}
]
}
Authorizations
Responses
200
Successfully found configurations
application/json
400
Bad Request
application/json
429
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
application/problem+json
get
GET /api/v1/azure-resources/configurations HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"configurations": [
{
"alias": "text",
"azureTenantId": "text",
"clientId": "text",
"isDefault": true,
"lastFour": "text",
"subscriptionId": "text"
}
]
}
Authorizations
Responses
200
Successfully found default configuration
application/json
400
Bad Request
application/json
429
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
application/problem+json
get
GET /api/v1/azure-resources/default-configuration HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"alias": "text",
"azureTenantId": "text",
"clientId": "text",
"isDefault": true,
"lastFour": "text",
"subscriptionId": "text"
}
Authorizations
Path parameters
aliasstringRequired
Responses
200
Successfully found configuration
application/json
400
Bad Request
application/json
404
Configuration not found
application/json
429
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
application/problem+json
get
GET /api/v1/azure-resources/configuration/{alias} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"alias": "text",
"azureTenantId": "text",
"clientId": "text",
"isDefault": true,
"lastFour": "text",
"subscriptionId": "text"
}
Authorizations
Body
aliasstringRequired
azureTenantIdstringRequired
clientIdstringRequired
clientSecretstringRequired
isDefaultbooleanRequired
subscriptionIdstringRequired
Responses
200
Successfully added configuration
application/json
400
Bad Request
application/json
403
Forbidden
application/json
429
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
application/problem+json
post
POST /api/v1/azure-resources/configuration HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 120
{
"alias": "text",
"azureTenantId": "text",
"clientId": "text",
"clientSecret": "text",
"isDefault": true,
"subscriptionId": "text"
}
{
"configurations": [
{
"alias": "text",
"azureTenantId": "text",
"clientId": "text",
"isDefault": true,
"lastFour": "text",
"subscriptionId": "text"
}
]
}
Authorizations
Responses
200
Successfully validated all configurations
application/json
404
Configuration not found
application/json
429
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
application/problem+json
post
POST /api/v1/azure-resources/configuration/validate HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"configurations": [
{
"alias": "text",
"isValid": true,
"message": "text"
}
]
}
Authorizations
Path parameters
aliasstringRequired
Responses
200
Successfully validated configuration
application/json
404
Configuration not found
application/json
429
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
application/problem+json
post
POST /api/v1/azure-resources/configuration/validate/{alias} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"alias": "text",
"isValid": true,
"message": "text"
}
Authorizations
Body
Responses
200
Successfully added configurations
application/json
403
Forbidden
application/json
429
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
application/problem+json
post
POST /api/v1/azure-resources/configurations HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 141
{
"configurations": [
{
"alias": "text",
"azureTenantId": "text",
"clientId": "text",
"clientSecret": "text",
"isDefault": true,
"subscriptionId": "text"
}
]
}
{
"configurations": [
{
"alias": "text",
"azureTenantId": "text",
"clientId": "text",
"isDefault": true,
"lastFour": "text",
"subscriptionId": "text"
}
],
"skippedConfigurations": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
Authorizations
Body
Responses
200
Successfully replaced Azure Resources types
application/json
400
Bad Request
application/json
404
Azure Resources types not found
application/json
429
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
application/problem+json
put
PUT /api/v1/azure-resources/types HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 75
{
"types": [
{
"enabled": true,
"type": "microsoft.policyinsights/policyevents"
}
]
}
{
"hasMore": true,
"page": 1,
"total": 1,
"totalPages": 1,
"types": [
{
"enabled": true,
"type": "microsoft.policyinsights/policyevents"
}
]
}
WARNING: Updating aliases for configurations or changing the default configuration could cause entity YAMLs that use this integration to break.
Authorizations
Path parameters
aliasstringRequired
Body
aliasstringRequired
isDefaultbooleanRequired
Responses
200
Successfully updated configuration
application/json
400
Bad Request
application/json
403
Forbidden
application/json
404
Configuration not found
application/json
429
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
application/problem+json
put
PUT /api/v1/azure-resources/configuration/{alias} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 33
{
"alias": "text",
"isDefault": true
}
{
"configurations": [
{
"alias": "text",
"azureTenantId": "text",
"clientId": "text",
"isDefault": true,
"lastFour": "text",
"subscriptionId": "text"
}
]
}
Authorizations
Responses
200
Successfully deleted all configurations
400
Bad Request
application/json
403
Forbidden
application/json
429
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
application/problem+json
delete
DELETE /api/v1/azure-resources/configurations HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
No content
Authorizations
Path parameters
aliasstringRequired
Responses
200
Successfully deleted configuration
application/json
400
Bad Request
application/json
403
Forbidden
application/json
404
Configuration not found
application/json
429
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
application/problem+json
delete
DELETE /api/v1/azure-resources/configuration/{alias} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"configurations": [
{
"alias": "text",
"azureTenantId": "text",
"clientId": "text",
"isDefault": true,
"lastFour": "text",
"subscriptionId": "text"
}
]
}
Last updated
Was this helpful?