Last updated 1 month ago
Use these operations to interact with the in Cortex.
Your API key must have the Configure integrations permission.
Configure integrations
GET /api/v1/newrelic/configurations HTTP/1.1 Host: api.getcortexapp.com Authorization: Bearer JWT Accept: */*
Successfully found configurations
{ "configurations": [ { "accountId": 1, "alias": "text", "isDefault": true, "lastFour": "text", "region": "US" } ] }
GET /api/v1/newrelic/default-configuration HTTP/1.1 Host: api.getcortexapp.com Authorization: Bearer JWT Accept: */*
Successfully found default configuration
{ "accountId": 1, "alias": "text", "isDefault": true, "lastFour": "text", "region": "US" }
GET /api/v1/newrelic/configuration/{alias} HTTP/1.1 Host: api.getcortexapp.com Authorization: Bearer JWT Accept: */*
Successfully found configuration
POST /api/v1/newrelic/configuration/validate HTTP/1.1 Host: api.getcortexapp.com Authorization: Bearer JWT Accept: */*
Successfully validated all configurations
{ "configurations": [ { "alias": "text", "isValid": true, "message": "text" } ] }
POST /api/v1/newrelic/configuration/validate/{alias} HTTP/1.1 Host: api.getcortexapp.com Authorization: Bearer JWT Accept: */*
Successfully validated configuration
{ "alias": "text", "isValid": true, "message": "text" }
DELETE /api/v1/newrelic/configurations HTTP/1.1 Host: api.getcortexapp.com Authorization: Bearer JWT Accept: */*
Successfully deleted all configurations
No content
DELETE /api/v1/newrelic/configuration/{alias} HTTP/1.1 Host: api.getcortexapp.com Authorization: Bearer JWT Accept: */*
Successfully deleted configuration
POST /api/v1/newrelic/configurations HTTP/1.1 Host: api.getcortexapp.com Authorization: Bearer JWT Content-Type: application/json Accept: */* Content-Length: 103 { "configurations": [ { "accountId": 1, "alias": "text", "isDefault": true, "personalKey": "text", "region": "US" } ] }
Successfully added configurations
{ "configurations": [ { "accountId": 1, "alias": "text", "isDefault": true, "lastFour": "text", "region": "US" } ], "skippedConfigurations": { "ANY_ADDITIONAL_PROPERTY": "text" } }
US
EU
POST /api/v1/newrelic/configuration HTTP/1.1 Host: api.getcortexapp.com Authorization: Bearer JWT Content-Type: application/json Accept: */* Content-Length: 82 { "accountId": 1, "alias": "text", "isDefault": true, "personalKey": "text", "region": "US" }
Successfully added configuration
WARNING: Updating aliases for configurations or changing the default configuration could cause entity YAMLs that use this integration to break.
PUT /api/v1/newrelic/configuration/{alias} HTTP/1.1 Host: api.getcortexapp.com Authorization: Bearer JWT Content-Type: application/json Accept: */* Content-Length: 33 { "alias": "text", "isDefault": true }
Successfully updated configuration