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
Whether to include disabled Azure Resources types
false
Number of results to return per page, between 1 and 1000. Default 250.
250
Page number to return, 0-indexed. Default 0.
0
Successfully found Azure Resources types
Azure Resources types not found
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
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"
}
]
}
Successfully found configurations
Bad Request
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
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"
}
]
}
Successfully found default configuration
Bad Request
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
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"
}
Successfully found configuration
Bad Request
Configuration not found
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
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"
}
Successfully added configuration
Bad Request
Forbidden
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
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"
}
]
}
Successfully validated all configurations
Configuration not found
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
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"
}
]
}
Successfully validated configuration
Configuration not found
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
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"
}
Successfully added configurations
Forbidden
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
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"
}
}
Successfully replaced Azure Resources types
Bad Request
Azure Resources types not found
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
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.
Successfully updated configuration
Bad Request
Forbidden
Configuration not found
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
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"
}
]
}
Successfully deleted all configurations
No content
Bad Request
Forbidden
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
DELETE /api/v1/azure-resources/configurations HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
No content
Successfully deleted configuration
Bad Request
Forbidden
Configuration not found
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
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?