AWS API

Use these operations to interact with the AWS integration in Cortex.

Required permissions

Your API key must have the Configure integrations permission.

Operations

List AWS 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

When true, includes all AWS types supported

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 AWS types

application/json
get
/api/v1/aws/types

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
accountIdstringRequired
Responses
200

Successfully found configuration

application/json
get
/api/v1/aws/configurations/{accountId}

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/aws/configurations

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
accountIdstringRequired

The account ID for the AWS account

rolestringRequired

The IAM role Cortex would be assuming

Responses
200

Successfully added configuration

application/json
post
/api/v1/aws/configurations

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/aws/configurations/all/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
accountIdstringRequired
Responses
200

Successfully validated configuration

application/json
post
/api/v1/aws/configurations/validate/{accountId}

Update configurations

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 configurations

application/json
put
/api/v1/aws/configurations

Update configured AWS 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 AWS types

application/json
put
/api/v1/aws/types

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 configurations

No content

delete
/api/v1/aws/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
accountIdstringRequired
Responses
200

Successfully deleted configuration

No content

delete
/api/v1/aws/configurations/{accountId}

No content

Last updated

Was this helpful?