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

List Azure Resources types

get
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Query parameters
includeDisabledbooleanOptional

Whether to include disabled Azure Resources types

Default: false
pageSizeinteger · int32Required

Number of results to return per page, between 1 and 1000. Default 250.

Default: 250
pageinteger · int32Required

Page number to return, 0-indexed. Default 0.

Default: 0
Responses
200

Successfully found Azure Resources types

application/json
get
/api/v1/azure-resources/types

Retrieve configurations

get
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Responses
200

Successfully found configurations

application/json
get
/api/v1/azure-resources/configurations

Retrieve default configuration

get
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Responses
200

Successfully found default configuration

application/json
get
/api/v1/azure-resources/default-configuration

Retrieve a configuration

get
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
aliasstringRequired
Responses
200

Successfully found configuration

application/json
get
/api/v1/azure-resources/configuration/{alias}

Add a single configuration

post
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Body
aliasstringRequired
azureTenantIdstringRequired
clientIdstringRequired
clientSecretstringRequired
isDefaultbooleanRequired
subscriptionIdstringRequired
Responses
200

Successfully added configuration

application/json
post
/api/v1/azure-resources/configuration

Validate all configurations

post
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Responses
200

Successfully validated all configurations

application/json
post
/api/v1/azure-resources/configuration/validate

Validate a configuration

post
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
aliasstringRequired
Responses
200

Successfully validated configuration

application/json
post
/api/v1/azure-resources/configuration/validate/{alias}

Add multiple configurations

post
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Body
Responses
200

Successfully added configurations

application/json
post
/api/v1/azure-resources/configurations

Update configured Azure Resources types

put
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Body
Responses
200

Successfully replaced Azure Resources types

application/json
put
/api/v1/azure-resources/types

Update a configuration

put

WARNING: Updating aliases for configurations or changing the default configuration could cause entity YAMLs that use this integration to break.

Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
aliasstringRequired
Body
aliasstringRequired
azureTenantIdstringOptional
clientIdstringOptional
clientSecretstringOptional
isDefaultbooleanRequired
subscriptionIdstringOptional
Responses
200

Successfully updated configuration

application/json
put
/api/v1/azure-resources/configuration/{alias}

Delete all configurations

delete
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Responses
200

Successfully deleted all configurations

No content

delete
/api/v1/azure-resources/configurations

No content

Delete a configuration

delete
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
aliasstringRequired
Responses
200

Successfully deleted configuration

application/json
delete
/api/v1/azure-resources/configuration/{alias}

Last updated

Was this helpful?