Action connections extend your installed integrations and allow you to take action in your third-party systems
(e.g. AWS, GitLab, and Statuspage) with Datadog’s Workflow Automation and App Builder products.
Datadog’s Integrations automatically provide authentication for Slack, Microsoft Teams, PagerDuty, Opsgenie,
JIRA, GitHub, and Statuspage. You do not need additional connections in order to access these tools within
Workflow Automation and App Builder.
We offer granular access control for editing and resolving connections.
The definition of ActionConnectionAttributes object.
integration [required]
<oneOf>
The definition of ActionConnectionIntegration object.
Option 1
object
The definition of AWSIntegration object.
credentials [required]
<oneOf>
The definition of AWSCredentials object.
Option 1
object
The definition of AWSAssumeRole object.
account_id [required]
string
AWS account the connection is created for
external_id
string
External ID used to scope which connection can be used to assume the role
principal_id
string
AWS account that will assume the role
role [required]
string
Role to assume
type [required]
enum
The definition of AWSAssumeRoleType object.
Allowed enum values: AWSAssumeRole
type [required]
enum
The definition of AWSIntegrationType object.
Allowed enum values: AWS
Option 2
object
The definition of the AnthropicIntegration object.
credentials [required]
<oneOf>
The definition of the AnthropicCredentials object.
Option 1
object
The definition of the AnthropicAPIKey object.
api_token [required]
string
The AnthropicAPIKeyapi_token.
type [required]
enum
The definition of the AnthropicAPIKey object.
Allowed enum values: AnthropicAPIKey
type [required]
enum
The definition of the AnthropicIntegrationType object.
Allowed enum values: Anthropic
Option 3
object
The definition of the AsanaIntegration object.
credentials [required]
<oneOf>
The definition of the AsanaCredentials object.
Option 1
object
The definition of the AsanaAccessToken object.
access_token [required]
string
The AsanaAccessTokenaccess_token.
type [required]
enum
The definition of the AsanaAccessToken object.
Allowed enum values: AsanaAccessToken
type [required]
enum
The definition of the AsanaIntegrationType object.
Allowed enum values: Asana
Option 4
object
The definition of the AzureIntegration object.
credentials [required]
<oneOf>
The definition of the AzureCredentials object.
Option 1
object
The definition of the AzureTenant object.
app_client_id [required]
string
The Client ID, also known as the Application ID in Azure, is a unique identifier for an application. It's used to identify the application during the authentication process. Your Application (client) ID is listed in the application's overview page. You can navigate to your application via the Azure Directory.
client_secret [required]
string
The Client Secret is a confidential piece of information known only to the application and Azure AD. It's used to prove the application's identity. Your Client Secret is available from the application’s secrets page. You can navigate to your application via the Azure Directory.
custom_scopes
string
If provided, the custom scope to be requested from Microsoft when acquiring an OAuth 2 access token. This custom scope is used only in conjunction with the HTTP action. A resource's scope is constructed by using the identifier URI for the resource and .default, separated by a forward slash (/) as follows:{identifierURI}/.default.
tenant_id [required]
string
The Tenant ID, also known as the Directory ID in Azure, is a unique identifier that represents an Azure AD instance. Your Tenant ID (Directory ID) is listed in your Active Directory overview page under the 'Tenant information' section.
type [required]
enum
The definition of the AzureTenant object.
Allowed enum values: AzureTenant
type [required]
enum
The definition of the AzureIntegrationType object.
Allowed enum values: Azure
Option 5
object
The definition of the CircleCIIntegration object.
credentials [required]
<oneOf>
The definition of the CircleCICredentials object.
Option 1
object
The definition of the CircleCIAPIKey object.
api_token [required]
string
The CircleCIAPIKeyapi_token.
type [required]
enum
The definition of the CircleCIAPIKey object.
Allowed enum values: CircleCIAPIKey
type [required]
enum
The definition of the CircleCIIntegrationType object.
Allowed enum values: CircleCI
Option 6
object
The definition of the ClickupIntegration object.
credentials [required]
<oneOf>
The definition of the ClickupCredentials object.
Option 1
object
The definition of the ClickupAPIKey object.
api_token [required]
string
The ClickupAPIKeyapi_token.
type [required]
enum
The definition of the ClickupAPIKey object.
Allowed enum values: ClickupAPIKey
type [required]
enum
The definition of the ClickupIntegrationType object.
Allowed enum values: Clickup
Option 7
object
The definition of the CloudflareIntegration object.
credentials [required]
<oneOf>
The definition of the CloudflareCredentials object.
Option 1
object
The definition of the CloudflareAPIToken object.
api_token [required]
string
The CloudflareAPITokenapi_token.
type [required]
enum
The definition of the CloudflareAPIToken object.
Allowed enum values: CloudflareAPIToken
Option 2
object
The definition of the CloudflareGlobalAPIToken object.
auth_email [required]
string
The CloudflareGlobalAPITokenauth_email.
global_api_key [required]
string
The CloudflareGlobalAPITokenglobal_api_key.
type [required]
enum
The definition of the CloudflareGlobalAPIToken object.
Allowed enum values: CloudflareGlobalAPIToken
type [required]
enum
The definition of the CloudflareIntegrationType object.
Allowed enum values: Cloudflare
Option 8
object
The definition of the ConfigCatIntegration object.
credentials [required]
<oneOf>
The definition of the ConfigCatCredentials object.
Option 1
object
The definition of the ConfigCatSDKKey object.
api_password [required]
string
The ConfigCatSDKKeyapi_password.
api_username [required]
string
The ConfigCatSDKKeyapi_username.
sdk_key [required]
string
The ConfigCatSDKKeysdk_key.
type [required]
enum
The definition of the ConfigCatSDKKey object.
Allowed enum values: ConfigCatSDKKey
type [required]
enum
The definition of the ConfigCatIntegrationType object.
Allowed enum values: ConfigCat
Option 9
object
The definition of the DatadogIntegration object.
credentials [required]
<oneOf>
The definition of the DatadogCredentials object.
Option 1
object
The definition of the DatadogAPIKey object.
api_key [required]
string
The DatadogAPIKeyapi_key.
app_key [required]
string
The DatadogAPIKeyapp_key.
datacenter [required]
string
The DatadogAPIKeydatacenter.
subdomain
string
Custom subdomain used for Datadog URLs generated with this Connection. For example, if this org uses https://acme.datadoghq.com to access Datadog, set this field to acme. If this field is omitted, generated URLs will use the default site URL for its datacenter (see https://docs.datadoghq.com/getting_started/site).
type [required]
enum
The definition of the DatadogAPIKey object.
Allowed enum values: DatadogAPIKey
type [required]
enum
The definition of the DatadogIntegrationType object.
Allowed enum values: Datadog
Option 10
object
The definition of the FastlyIntegration object.
credentials [required]
<oneOf>
The definition of the FastlyCredentials object.
Option 1
object
The definition of the FastlyAPIKey object.
api_key [required]
string
The FastlyAPIKeyapi_key.
type [required]
enum
The definition of the FastlyAPIKey object.
Allowed enum values: FastlyAPIKey
type [required]
enum
The definition of the FastlyIntegrationType object.
Allowed enum values: Fastly
Option 11
object
The definition of the FreshserviceIntegration object.
credentials [required]
<oneOf>
The definition of the FreshserviceCredentials object.
Option 1
object
The definition of the FreshserviceAPIKey object.
api_key [required]
string
The FreshserviceAPIKeyapi_key.
domain [required]
string
The FreshserviceAPIKeydomain.
type [required]
enum
The definition of the FreshserviceAPIKey object.
Allowed enum values: FreshserviceAPIKey
type [required]
enum
The definition of the FreshserviceIntegrationType object.
Allowed enum values: Freshservice
Option 12
object
The definition of the GCPIntegration object.
credentials [required]
<oneOf>
The definition of the GCPCredentials object.
Option 1
object
The definition of the GCPServiceAccount object.
private_key [required]
string
The GCPServiceAccountprivate_key.
service_account_email [required]
string
The GCPServiceAccountservice_account_email.
type [required]
enum
The definition of the GCPServiceAccount object.
Allowed enum values: GCPServiceAccount
type [required]
enum
The definition of the GCPIntegrationType object.
Allowed enum values: GCP
Option 13
object
The definition of the GeminiIntegration object.
credentials [required]
<oneOf>
The definition of the GeminiCredentials object.
Option 1
object
The definition of the GeminiAPIKey object.
api_key [required]
string
The GeminiAPIKeyapi_key.
type [required]
enum
The definition of the GeminiAPIKey object.
Allowed enum values: GeminiAPIKey
type [required]
enum
The definition of the GeminiIntegrationType object.
Allowed enum values: Gemini
Option 14
object
The definition of the GitlabIntegration object.
credentials [required]
<oneOf>
The definition of the GitlabCredentials object.
Option 1
object
The definition of the GitlabAPIKey object.
api_token [required]
string
The GitlabAPIKeyapi_token.
type [required]
enum
The definition of the GitlabAPIKey object.
Allowed enum values: GitlabAPIKey
type [required]
enum
The definition of the GitlabIntegrationType object.
Allowed enum values: Gitlab
Option 15
object
The definition of the GreyNoiseIntegration object.
credentials [required]
<oneOf>
The definition of the GreyNoiseCredentials object.
Option 1
object
The definition of the GreyNoiseAPIKey object.
api_key [required]
string
The GreyNoiseAPIKeyapi_key.
type [required]
enum
The definition of the GreyNoiseAPIKey object.
Allowed enum values: GreyNoiseAPIKey
type [required]
enum
The definition of the GreyNoiseIntegrationType object.
Allowed enum values: GreyNoise
Option 16
object
The definition of HTTPIntegration object.
base_url [required]
string
Base HTTP url for the integration
credentials [required]
<oneOf>
The definition of HTTPCredentials object.
Option 1
object
The definition of HTTPTokenAuth object.
body
object
The definition of HTTPBody object.
content
string
Serialized body content
content_type
string
Content type of the body
headers
[object]
The HTTPTokenAuthheaders.
name [required]
string
The HTTPHeadername.
value [required]
string
The HTTPHeadervalue.
tokens
[object]
The HTTPTokenAuthtokens.
name [required]
string
The HTTPTokenname.
type [required]
enum
The definition of TokenType object.
Allowed enum values: SECRET
value [required]
string
The HTTPTokenvalue.
type [required]
enum
The definition of HTTPTokenAuthType object.
Allowed enum values: HTTPTokenAuth
url_parameters
[object]
The HTTPTokenAuthurl_parameters.
name [required]
string
Name for tokens.
value [required]
string
The UrlParamvalue.
type [required]
enum
The definition of HTTPIntegrationType object.
Allowed enum values: HTTP
Option 17
object
The definition of the LaunchDarklyIntegration object.
credentials [required]
<oneOf>
The definition of the LaunchDarklyCredentials object.
Option 1
object
The definition of the LaunchDarklyAPIKey object.
api_token [required]
string
The LaunchDarklyAPIKeyapi_token.
type [required]
enum
The definition of the LaunchDarklyAPIKey object.
Allowed enum values: LaunchDarklyAPIKey
type [required]
enum
The definition of the LaunchDarklyIntegrationType object.
Allowed enum values: LaunchDarkly
Option 18
object
The definition of the NotionIntegration object.
credentials [required]
<oneOf>
The definition of the NotionCredentials object.
Option 1
object
The definition of the NotionAPIKey object.
api_token [required]
string
The NotionAPIKeyapi_token.
type [required]
enum
The definition of the NotionAPIKey object.
Allowed enum values: NotionAPIKey
type [required]
enum
The definition of the NotionIntegrationType object.
Allowed enum values: Notion
Option 19
object
The definition of the OktaIntegration object.
credentials [required]
<oneOf>
The definition of the OktaCredentials object.
Option 1
object
The definition of the OktaAPIToken object.
api_token [required]
string
The OktaAPITokenapi_token.
domain [required]
string
The OktaAPITokendomain.
type [required]
enum
The definition of the OktaAPIToken object.
Allowed enum values: OktaAPIToken
type [required]
enum
The definition of the OktaIntegrationType object.
Allowed enum values: Okta
Option 20
object
The definition of the OpenAIIntegration object.
credentials [required]
<oneOf>
The definition of the OpenAICredentials object.
Option 1
object
The definition of the OpenAIAPIKey object.
api_token [required]
string
The OpenAIAPIKeyapi_token.
type [required]
enum
The definition of the OpenAIAPIKey object.
Allowed enum values: OpenAIAPIKey
type [required]
enum
The definition of the OpenAIIntegrationType object.
Allowed enum values: OpenAI
Option 21
object
The definition of the ServiceNowIntegration object.
credentials [required]
<oneOf>
The definition of the ServiceNowCredentials object.
Option 1
object
The definition of the ServiceNowBasicAuth object.
instance [required]
string
The ServiceNowBasicAuthinstance.
password [required]
string
The ServiceNowBasicAuthpassword.
type [required]
enum
The definition of the ServiceNowBasicAuth object.
Allowed enum values: ServiceNowBasicAuth
username [required]
string
The ServiceNowBasicAuthusername.
type [required]
enum
The definition of the ServiceNowIntegrationType object.
Allowed enum values: ServiceNow
Option 22
object
The definition of the SplitIntegration object.
credentials [required]
<oneOf>
The definition of the SplitCredentials object.
Option 1
object
The definition of the SplitAPIKey object.
api_key [required]
string
The SplitAPIKeyapi_key.
type [required]
enum
The definition of the SplitAPIKey object.
Allowed enum values: SplitAPIKey
type [required]
enum
The definition of the SplitIntegrationType object.
Allowed enum values: Split
Option 23
object
The definition of the StatsigIntegration object.
credentials [required]
<oneOf>
The definition of the StatsigCredentials object.
Option 1
object
The definition of the StatsigAPIKey object.
api_key [required]
string
The StatsigAPIKeyapi_key.
type [required]
enum
The definition of the StatsigAPIKey object.
Allowed enum values: StatsigAPIKey
type [required]
enum
The definition of the StatsigIntegrationType object.
Allowed enum values: Statsig
Option 24
object
The definition of the VirusTotalIntegration object.
credentials [required]
<oneOf>
The definition of the VirusTotalCredentials object.
Option 1
object
The definition of the VirusTotalAPIKey object.
api_key [required]
string
The VirusTotalAPIKeyapi_key.
type [required]
enum
The definition of the VirusTotalAPIKey object.
Allowed enum values: VirusTotalAPIKey
type [required]
enum
The definition of the VirusTotalIntegrationType object.
Allowed enum values: VirusTotal
name [required]
string
Name of the connection
id
string
The connection identifier
type [required]
enum
The definition of ActionConnectionDataType object.
Allowed enum values: action_connection
"""
Get an existing Action Connection returns "Successfully get Action Connection" response
"""fromdatadog_api_clientimportApiClient,Configurationfromdatadog_api_client.v2.api.action_connection_apiimportActionConnectionApiconfiguration=Configuration()withApiClient(configuration)asapi_client:api_instance=ActionConnectionApi(api_client)response=api_instance.get_action_connection(connection_id="cb460d51-3c88-4e87-adac-d47131d0423d",)print(response)
# Get an existing Action Connection returns "Successfully get Action Connection" responserequire"datadog_api_client"api_instance=DatadogAPIClient::V2::ActionConnectionAPI.newpapi_instance.get_action_connection("cb460d51-3c88-4e87-adac-d47131d0423d")
// Get an existing Action Connection returns "Successfully get Action Connection" responsepackagemainimport("context""encoding/json""fmt""os""github.com/DataDog/datadog-api-client-go/v2/api/datadog""github.com/DataDog/datadog-api-client-go/v2/api/datadogV2")funcmain(){ctx:=datadog.NewDefaultContext(context.Background())configuration:=datadog.NewConfiguration()apiClient:=datadog.NewAPIClient(configuration)api:=datadogV2.NewActionConnectionApi(apiClient)resp,r,err:=api.GetActionConnection(ctx,"cb460d51-3c88-4e87-adac-d47131d0423d")iferr!=nil{fmt.Fprintf(os.Stderr,"Error when calling `ActionConnectionApi.GetActionConnection`: %v\n",err)fmt.Fprintf(os.Stderr,"Full HTTP response: %v\n",r)}responseContent,_:=json.MarshalIndent(resp,""," ")fmt.Fprintf(os.Stdout,"Response from `ActionConnectionApi.GetActionConnection`:\n%s\n",responseContent)}
// Get an existing Action Connection returns "Successfully get Action Connection" responseimportcom.datadog.api.client.ApiClient;importcom.datadog.api.client.ApiException;importcom.datadog.api.client.v2.api.ActionConnectionApi;importcom.datadog.api.client.v2.model.GetActionConnectionResponse;publicclassExample{publicstaticvoidmain(String[]args){ApiClientdefaultClient=ApiClient.getDefaultApiClient();ActionConnectionApiapiInstance=newActionConnectionApi(defaultClient);try{GetActionConnectionResponseresult=apiInstance.getActionConnection("cb460d51-3c88-4e87-adac-d47131d0423d");System.out.println(result);}catch(ApiExceptione){System.err.println("Exception when calling ActionConnectionApi#getActionConnection");System.err.println("Status code: "+e.getCode());System.err.println("Reason: "+e.getResponseBody());System.err.println("Response headers: "+e.getResponseHeaders());e.printStackTrace();}}}
// Get an existing Action Connection returns "Successfully get Action Connection"
// response
usedatadog_api_client::datadog;usedatadog_api_client::datadogV2::api_action_connection::ActionConnectionAPI;#[tokio::main]asyncfnmain(){letconfiguration=datadog::Configuration::new();letapi=ActionConnectionAPI::with_config(configuration);letresp=api.get_action_connection("cb460d51-3c88-4e87-adac-d47131d0423d".to_string()).await;ifletOk(value)=resp{println!("{:#?}",value);}else{println!("{:#?}",resp.unwrap_err());}}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comddog-gov.com"DD_API_KEY="<API-KEY>"DD_APP_KEY="<APP-KEY>"cargo run
/**
* Get an existing Action Connection returns "Successfully get Action Connection" response
*/import{client,v2}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();constapiInstance=newv2.ActionConnectionApi(configuration);constparams: v2.ActionConnectionApiGetActionConnectionRequest={connectionId:"cb460d51-3c88-4e87-adac-d47131d0423d",};apiInstance.getActionConnection(params).then((data: v2.GetActionConnectionResponse)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));
The definition of ActionConnectionAttributes object.
integration [required]
<oneOf>
The definition of ActionConnectionIntegration object.
Option 1
object
The definition of AWSIntegration object.
credentials [required]
<oneOf>
The definition of AWSCredentials object.
Option 1
object
The definition of AWSAssumeRole object.
account_id [required]
string
AWS account the connection is created for
external_id
string
External ID used to scope which connection can be used to assume the role
principal_id
string
AWS account that will assume the role
role [required]
string
Role to assume
type [required]
enum
The definition of AWSAssumeRoleType object.
Allowed enum values: AWSAssumeRole
type [required]
enum
The definition of AWSIntegrationType object.
Allowed enum values: AWS
Option 2
object
The definition of the AnthropicIntegration object.
credentials [required]
<oneOf>
The definition of the AnthropicCredentials object.
Option 1
object
The definition of the AnthropicAPIKey object.
api_token [required]
string
The AnthropicAPIKeyapi_token.
type [required]
enum
The definition of the AnthropicAPIKey object.
Allowed enum values: AnthropicAPIKey
type [required]
enum
The definition of the AnthropicIntegrationType object.
Allowed enum values: Anthropic
Option 3
object
The definition of the AsanaIntegration object.
credentials [required]
<oneOf>
The definition of the AsanaCredentials object.
Option 1
object
The definition of the AsanaAccessToken object.
access_token [required]
string
The AsanaAccessTokenaccess_token.
type [required]
enum
The definition of the AsanaAccessToken object.
Allowed enum values: AsanaAccessToken
type [required]
enum
The definition of the AsanaIntegrationType object.
Allowed enum values: Asana
Option 4
object
The definition of the AzureIntegration object.
credentials [required]
<oneOf>
The definition of the AzureCredentials object.
Option 1
object
The definition of the AzureTenant object.
app_client_id [required]
string
The Client ID, also known as the Application ID in Azure, is a unique identifier for an application. It's used to identify the application during the authentication process. Your Application (client) ID is listed in the application's overview page. You can navigate to your application via the Azure Directory.
client_secret [required]
string
The Client Secret is a confidential piece of information known only to the application and Azure AD. It's used to prove the application's identity. Your Client Secret is available from the application’s secrets page. You can navigate to your application via the Azure Directory.
custom_scopes
string
If provided, the custom scope to be requested from Microsoft when acquiring an OAuth 2 access token. This custom scope is used only in conjunction with the HTTP action. A resource's scope is constructed by using the identifier URI for the resource and .default, separated by a forward slash (/) as follows:{identifierURI}/.default.
tenant_id [required]
string
The Tenant ID, also known as the Directory ID in Azure, is a unique identifier that represents an Azure AD instance. Your Tenant ID (Directory ID) is listed in your Active Directory overview page under the 'Tenant information' section.
type [required]
enum
The definition of the AzureTenant object.
Allowed enum values: AzureTenant
type [required]
enum
The definition of the AzureIntegrationType object.
Allowed enum values: Azure
Option 5
object
The definition of the CircleCIIntegration object.
credentials [required]
<oneOf>
The definition of the CircleCICredentials object.
Option 1
object
The definition of the CircleCIAPIKey object.
api_token [required]
string
The CircleCIAPIKeyapi_token.
type [required]
enum
The definition of the CircleCIAPIKey object.
Allowed enum values: CircleCIAPIKey
type [required]
enum
The definition of the CircleCIIntegrationType object.
Allowed enum values: CircleCI
Option 6
object
The definition of the ClickupIntegration object.
credentials [required]
<oneOf>
The definition of the ClickupCredentials object.
Option 1
object
The definition of the ClickupAPIKey object.
api_token [required]
string
The ClickupAPIKeyapi_token.
type [required]
enum
The definition of the ClickupAPIKey object.
Allowed enum values: ClickupAPIKey
type [required]
enum
The definition of the ClickupIntegrationType object.
Allowed enum values: Clickup
Option 7
object
The definition of the CloudflareIntegration object.
credentials [required]
<oneOf>
The definition of the CloudflareCredentials object.
Option 1
object
The definition of the CloudflareAPIToken object.
api_token [required]
string
The CloudflareAPITokenapi_token.
type [required]
enum
The definition of the CloudflareAPIToken object.
Allowed enum values: CloudflareAPIToken
Option 2
object
The definition of the CloudflareGlobalAPIToken object.
auth_email [required]
string
The CloudflareGlobalAPITokenauth_email.
global_api_key [required]
string
The CloudflareGlobalAPITokenglobal_api_key.
type [required]
enum
The definition of the CloudflareGlobalAPIToken object.
Allowed enum values: CloudflareGlobalAPIToken
type [required]
enum
The definition of the CloudflareIntegrationType object.
Allowed enum values: Cloudflare
Option 8
object
The definition of the ConfigCatIntegration object.
credentials [required]
<oneOf>
The definition of the ConfigCatCredentials object.
Option 1
object
The definition of the ConfigCatSDKKey object.
api_password [required]
string
The ConfigCatSDKKeyapi_password.
api_username [required]
string
The ConfigCatSDKKeyapi_username.
sdk_key [required]
string
The ConfigCatSDKKeysdk_key.
type [required]
enum
The definition of the ConfigCatSDKKey object.
Allowed enum values: ConfigCatSDKKey
type [required]
enum
The definition of the ConfigCatIntegrationType object.
Allowed enum values: ConfigCat
Option 9
object
The definition of the DatadogIntegration object.
credentials [required]
<oneOf>
The definition of the DatadogCredentials object.
Option 1
object
The definition of the DatadogAPIKey object.
api_key [required]
string
The DatadogAPIKeyapi_key.
app_key [required]
string
The DatadogAPIKeyapp_key.
datacenter [required]
string
The DatadogAPIKeydatacenter.
subdomain
string
Custom subdomain used for Datadog URLs generated with this Connection. For example, if this org uses https://acme.datadoghq.com to access Datadog, set this field to acme. If this field is omitted, generated URLs will use the default site URL for its datacenter (see https://docs.datadoghq.com/getting_started/site).
type [required]
enum
The definition of the DatadogAPIKey object.
Allowed enum values: DatadogAPIKey
type [required]
enum
The definition of the DatadogIntegrationType object.
Allowed enum values: Datadog
Option 10
object
The definition of the FastlyIntegration object.
credentials [required]
<oneOf>
The definition of the FastlyCredentials object.
Option 1
object
The definition of the FastlyAPIKey object.
api_key [required]
string
The FastlyAPIKeyapi_key.
type [required]
enum
The definition of the FastlyAPIKey object.
Allowed enum values: FastlyAPIKey
type [required]
enum
The definition of the FastlyIntegrationType object.
Allowed enum values: Fastly
Option 11
object
The definition of the FreshserviceIntegration object.
credentials [required]
<oneOf>
The definition of the FreshserviceCredentials object.
Option 1
object
The definition of the FreshserviceAPIKey object.
api_key [required]
string
The FreshserviceAPIKeyapi_key.
domain [required]
string
The FreshserviceAPIKeydomain.
type [required]
enum
The definition of the FreshserviceAPIKey object.
Allowed enum values: FreshserviceAPIKey
type [required]
enum
The definition of the FreshserviceIntegrationType object.
Allowed enum values: Freshservice
Option 12
object
The definition of the GCPIntegration object.
credentials [required]
<oneOf>
The definition of the GCPCredentials object.
Option 1
object
The definition of the GCPServiceAccount object.
private_key [required]
string
The GCPServiceAccountprivate_key.
service_account_email [required]
string
The GCPServiceAccountservice_account_email.
type [required]
enum
The definition of the GCPServiceAccount object.
Allowed enum values: GCPServiceAccount
type [required]
enum
The definition of the GCPIntegrationType object.
Allowed enum values: GCP
Option 13
object
The definition of the GeminiIntegration object.
credentials [required]
<oneOf>
The definition of the GeminiCredentials object.
Option 1
object
The definition of the GeminiAPIKey object.
api_key [required]
string
The GeminiAPIKeyapi_key.
type [required]
enum
The definition of the GeminiAPIKey object.
Allowed enum values: GeminiAPIKey
type [required]
enum
The definition of the GeminiIntegrationType object.
Allowed enum values: Gemini
Option 14
object
The definition of the GitlabIntegration object.
credentials [required]
<oneOf>
The definition of the GitlabCredentials object.
Option 1
object
The definition of the GitlabAPIKey object.
api_token [required]
string
The GitlabAPIKeyapi_token.
type [required]
enum
The definition of the GitlabAPIKey object.
Allowed enum values: GitlabAPIKey
type [required]
enum
The definition of the GitlabIntegrationType object.
Allowed enum values: Gitlab
Option 15
object
The definition of the GreyNoiseIntegration object.
credentials [required]
<oneOf>
The definition of the GreyNoiseCredentials object.
Option 1
object
The definition of the GreyNoiseAPIKey object.
api_key [required]
string
The GreyNoiseAPIKeyapi_key.
type [required]
enum
The definition of the GreyNoiseAPIKey object.
Allowed enum values: GreyNoiseAPIKey
type [required]
enum
The definition of the GreyNoiseIntegrationType object.
Allowed enum values: GreyNoise
Option 16
object
The definition of HTTPIntegration object.
base_url [required]
string
Base HTTP url for the integration
credentials [required]
<oneOf>
The definition of HTTPCredentials object.
Option 1
object
The definition of HTTPTokenAuth object.
body
object
The definition of HTTPBody object.
content
string
Serialized body content
content_type
string
Content type of the body
headers
[object]
The HTTPTokenAuthheaders.
name [required]
string
The HTTPHeadername.
value [required]
string
The HTTPHeadervalue.
tokens
[object]
The HTTPTokenAuthtokens.
name [required]
string
The HTTPTokenname.
type [required]
enum
The definition of TokenType object.
Allowed enum values: SECRET
value [required]
string
The HTTPTokenvalue.
type [required]
enum
The definition of HTTPTokenAuthType object.
Allowed enum values: HTTPTokenAuth
url_parameters
[object]
The HTTPTokenAuthurl_parameters.
name [required]
string
Name for tokens.
value [required]
string
The UrlParamvalue.
type [required]
enum
The definition of HTTPIntegrationType object.
Allowed enum values: HTTP
Option 17
object
The definition of the LaunchDarklyIntegration object.
credentials [required]
<oneOf>
The definition of the LaunchDarklyCredentials object.
Option 1
object
The definition of the LaunchDarklyAPIKey object.
api_token [required]
string
The LaunchDarklyAPIKeyapi_token.
type [required]
enum
The definition of the LaunchDarklyAPIKey object.
Allowed enum values: LaunchDarklyAPIKey
type [required]
enum
The definition of the LaunchDarklyIntegrationType object.
Allowed enum values: LaunchDarkly
Option 18
object
The definition of the NotionIntegration object.
credentials [required]
<oneOf>
The definition of the NotionCredentials object.
Option 1
object
The definition of the NotionAPIKey object.
api_token [required]
string
The NotionAPIKeyapi_token.
type [required]
enum
The definition of the NotionAPIKey object.
Allowed enum values: NotionAPIKey
type [required]
enum
The definition of the NotionIntegrationType object.
Allowed enum values: Notion
Option 19
object
The definition of the OktaIntegration object.
credentials [required]
<oneOf>
The definition of the OktaCredentials object.
Option 1
object
The definition of the OktaAPIToken object.
api_token [required]
string
The OktaAPITokenapi_token.
domain [required]
string
The OktaAPITokendomain.
type [required]
enum
The definition of the OktaAPIToken object.
Allowed enum values: OktaAPIToken
type [required]
enum
The definition of the OktaIntegrationType object.
Allowed enum values: Okta
Option 20
object
The definition of the OpenAIIntegration object.
credentials [required]
<oneOf>
The definition of the OpenAICredentials object.
Option 1
object
The definition of the OpenAIAPIKey object.
api_token [required]
string
The OpenAIAPIKeyapi_token.
type [required]
enum
The definition of the OpenAIAPIKey object.
Allowed enum values: OpenAIAPIKey
type [required]
enum
The definition of the OpenAIIntegrationType object.
Allowed enum values: OpenAI
Option 21
object
The definition of the ServiceNowIntegration object.
credentials [required]
<oneOf>
The definition of the ServiceNowCredentials object.
Option 1
object
The definition of the ServiceNowBasicAuth object.
instance [required]
string
The ServiceNowBasicAuthinstance.
password [required]
string
The ServiceNowBasicAuthpassword.
type [required]
enum
The definition of the ServiceNowBasicAuth object.
Allowed enum values: ServiceNowBasicAuth
username [required]
string
The ServiceNowBasicAuthusername.
type [required]
enum
The definition of the ServiceNowIntegrationType object.
Allowed enum values: ServiceNow
Option 22
object
The definition of the SplitIntegration object.
credentials [required]
<oneOf>
The definition of the SplitCredentials object.
Option 1
object
The definition of the SplitAPIKey object.
api_key [required]
string
The SplitAPIKeyapi_key.
type [required]
enum
The definition of the SplitAPIKey object.
Allowed enum values: SplitAPIKey
type [required]
enum
The definition of the SplitIntegrationType object.
Allowed enum values: Split
Option 23
object
The definition of the StatsigIntegration object.
credentials [required]
<oneOf>
The definition of the StatsigCredentials object.
Option 1
object
The definition of the StatsigAPIKey object.
api_key [required]
string
The StatsigAPIKeyapi_key.
type [required]
enum
The definition of the StatsigAPIKey object.
Allowed enum values: StatsigAPIKey
type [required]
enum
The definition of the StatsigIntegrationType object.
Allowed enum values: Statsig
Option 24
object
The definition of the VirusTotalIntegration object.
credentials [required]
<oneOf>
The definition of the VirusTotalCredentials object.
Option 1
object
The definition of the VirusTotalAPIKey object.
api_key [required]
string
The VirusTotalAPIKeyapi_key.
type [required]
enum
The definition of the VirusTotalAPIKey object.
Allowed enum values: VirusTotalAPIKey
type [required]
enum
The definition of the VirusTotalIntegrationType object.
Allowed enum values: VirusTotal
name [required]
string
Name of the connection
id
string
The connection identifier
type [required]
enum
The definition of ActionConnectionDataType object.
Allowed enum values: action_connection
The definition of ActionConnectionAttributes object.
integration [required]
<oneOf>
The definition of ActionConnectionIntegration object.
Option 1
object
The definition of AWSIntegration object.
credentials [required]
<oneOf>
The definition of AWSCredentials object.
Option 1
object
The definition of AWSAssumeRole object.
account_id [required]
string
AWS account the connection is created for
external_id
string
External ID used to scope which connection can be used to assume the role
principal_id
string
AWS account that will assume the role
role [required]
string
Role to assume
type [required]
enum
The definition of AWSAssumeRoleType object.
Allowed enum values: AWSAssumeRole
type [required]
enum
The definition of AWSIntegrationType object.
Allowed enum values: AWS
Option 2
object
The definition of the AnthropicIntegration object.
credentials [required]
<oneOf>
The definition of the AnthropicCredentials object.
Option 1
object
The definition of the AnthropicAPIKey object.
api_token [required]
string
The AnthropicAPIKeyapi_token.
type [required]
enum
The definition of the AnthropicAPIKey object.
Allowed enum values: AnthropicAPIKey
type [required]
enum
The definition of the AnthropicIntegrationType object.
Allowed enum values: Anthropic
Option 3
object
The definition of the AsanaIntegration object.
credentials [required]
<oneOf>
The definition of the AsanaCredentials object.
Option 1
object
The definition of the AsanaAccessToken object.
access_token [required]
string
The AsanaAccessTokenaccess_token.
type [required]
enum
The definition of the AsanaAccessToken object.
Allowed enum values: AsanaAccessToken
type [required]
enum
The definition of the AsanaIntegrationType object.
Allowed enum values: Asana
Option 4
object
The definition of the AzureIntegration object.
credentials [required]
<oneOf>
The definition of the AzureCredentials object.
Option 1
object
The definition of the AzureTenant object.
app_client_id [required]
string
The Client ID, also known as the Application ID in Azure, is a unique identifier for an application. It's used to identify the application during the authentication process. Your Application (client) ID is listed in the application's overview page. You can navigate to your application via the Azure Directory.
client_secret [required]
string
The Client Secret is a confidential piece of information known only to the application and Azure AD. It's used to prove the application's identity. Your Client Secret is available from the application’s secrets page. You can navigate to your application via the Azure Directory.
custom_scopes
string
If provided, the custom scope to be requested from Microsoft when acquiring an OAuth 2 access token. This custom scope is used only in conjunction with the HTTP action. A resource's scope is constructed by using the identifier URI for the resource and .default, separated by a forward slash (/) as follows:{identifierURI}/.default.
tenant_id [required]
string
The Tenant ID, also known as the Directory ID in Azure, is a unique identifier that represents an Azure AD instance. Your Tenant ID (Directory ID) is listed in your Active Directory overview page under the 'Tenant information' section.
type [required]
enum
The definition of the AzureTenant object.
Allowed enum values: AzureTenant
type [required]
enum
The definition of the AzureIntegrationType object.
Allowed enum values: Azure
Option 5
object
The definition of the CircleCIIntegration object.
credentials [required]
<oneOf>
The definition of the CircleCICredentials object.
Option 1
object
The definition of the CircleCIAPIKey object.
api_token [required]
string
The CircleCIAPIKeyapi_token.
type [required]
enum
The definition of the CircleCIAPIKey object.
Allowed enum values: CircleCIAPIKey
type [required]
enum
The definition of the CircleCIIntegrationType object.
Allowed enum values: CircleCI
Option 6
object
The definition of the ClickupIntegration object.
credentials [required]
<oneOf>
The definition of the ClickupCredentials object.
Option 1
object
The definition of the ClickupAPIKey object.
api_token [required]
string
The ClickupAPIKeyapi_token.
type [required]
enum
The definition of the ClickupAPIKey object.
Allowed enum values: ClickupAPIKey
type [required]
enum
The definition of the ClickupIntegrationType object.
Allowed enum values: Clickup
Option 7
object
The definition of the CloudflareIntegration object.
credentials [required]
<oneOf>
The definition of the CloudflareCredentials object.
Option 1
object
The definition of the CloudflareAPIToken object.
api_token [required]
string
The CloudflareAPITokenapi_token.
type [required]
enum
The definition of the CloudflareAPIToken object.
Allowed enum values: CloudflareAPIToken
Option 2
object
The definition of the CloudflareGlobalAPIToken object.
auth_email [required]
string
The CloudflareGlobalAPITokenauth_email.
global_api_key [required]
string
The CloudflareGlobalAPITokenglobal_api_key.
type [required]
enum
The definition of the CloudflareGlobalAPIToken object.
Allowed enum values: CloudflareGlobalAPIToken
type [required]
enum
The definition of the CloudflareIntegrationType object.
Allowed enum values: Cloudflare
Option 8
object
The definition of the ConfigCatIntegration object.
credentials [required]
<oneOf>
The definition of the ConfigCatCredentials object.
Option 1
object
The definition of the ConfigCatSDKKey object.
api_password [required]
string
The ConfigCatSDKKeyapi_password.
api_username [required]
string
The ConfigCatSDKKeyapi_username.
sdk_key [required]
string
The ConfigCatSDKKeysdk_key.
type [required]
enum
The definition of the ConfigCatSDKKey object.
Allowed enum values: ConfigCatSDKKey
type [required]
enum
The definition of the ConfigCatIntegrationType object.
Allowed enum values: ConfigCat
Option 9
object
The definition of the DatadogIntegration object.
credentials [required]
<oneOf>
The definition of the DatadogCredentials object.
Option 1
object
The definition of the DatadogAPIKey object.
api_key [required]
string
The DatadogAPIKeyapi_key.
app_key [required]
string
The DatadogAPIKeyapp_key.
datacenter [required]
string
The DatadogAPIKeydatacenter.
subdomain
string
Custom subdomain used for Datadog URLs generated with this Connection. For example, if this org uses https://acme.datadoghq.com to access Datadog, set this field to acme. If this field is omitted, generated URLs will use the default site URL for its datacenter (see https://docs.datadoghq.com/getting_started/site).
type [required]
enum
The definition of the DatadogAPIKey object.
Allowed enum values: DatadogAPIKey
type [required]
enum
The definition of the DatadogIntegrationType object.
Allowed enum values: Datadog
Option 10
object
The definition of the FastlyIntegration object.
credentials [required]
<oneOf>
The definition of the FastlyCredentials object.
Option 1
object
The definition of the FastlyAPIKey object.
api_key [required]
string
The FastlyAPIKeyapi_key.
type [required]
enum
The definition of the FastlyAPIKey object.
Allowed enum values: FastlyAPIKey
type [required]
enum
The definition of the FastlyIntegrationType object.
Allowed enum values: Fastly
Option 11
object
The definition of the FreshserviceIntegration object.
credentials [required]
<oneOf>
The definition of the FreshserviceCredentials object.
Option 1
object
The definition of the FreshserviceAPIKey object.
api_key [required]
string
The FreshserviceAPIKeyapi_key.
domain [required]
string
The FreshserviceAPIKeydomain.
type [required]
enum
The definition of the FreshserviceAPIKey object.
Allowed enum values: FreshserviceAPIKey
type [required]
enum
The definition of the FreshserviceIntegrationType object.
Allowed enum values: Freshservice
Option 12
object
The definition of the GCPIntegration object.
credentials [required]
<oneOf>
The definition of the GCPCredentials object.
Option 1
object
The definition of the GCPServiceAccount object.
private_key [required]
string
The GCPServiceAccountprivate_key.
service_account_email [required]
string
The GCPServiceAccountservice_account_email.
type [required]
enum
The definition of the GCPServiceAccount object.
Allowed enum values: GCPServiceAccount
type [required]
enum
The definition of the GCPIntegrationType object.
Allowed enum values: GCP
Option 13
object
The definition of the GeminiIntegration object.
credentials [required]
<oneOf>
The definition of the GeminiCredentials object.
Option 1
object
The definition of the GeminiAPIKey object.
api_key [required]
string
The GeminiAPIKeyapi_key.
type [required]
enum
The definition of the GeminiAPIKey object.
Allowed enum values: GeminiAPIKey
type [required]
enum
The definition of the GeminiIntegrationType object.
Allowed enum values: Gemini
Option 14
object
The definition of the GitlabIntegration object.
credentials [required]
<oneOf>
The definition of the GitlabCredentials object.
Option 1
object
The definition of the GitlabAPIKey object.
api_token [required]
string
The GitlabAPIKeyapi_token.
type [required]
enum
The definition of the GitlabAPIKey object.
Allowed enum values: GitlabAPIKey
type [required]
enum
The definition of the GitlabIntegrationType object.
Allowed enum values: Gitlab
Option 15
object
The definition of the GreyNoiseIntegration object.
credentials [required]
<oneOf>
The definition of the GreyNoiseCredentials object.
Option 1
object
The definition of the GreyNoiseAPIKey object.
api_key [required]
string
The GreyNoiseAPIKeyapi_key.
type [required]
enum
The definition of the GreyNoiseAPIKey object.
Allowed enum values: GreyNoiseAPIKey
type [required]
enum
The definition of the GreyNoiseIntegrationType object.
Allowed enum values: GreyNoise
Option 16
object
The definition of HTTPIntegration object.
base_url [required]
string
Base HTTP url for the integration
credentials [required]
<oneOf>
The definition of HTTPCredentials object.
Option 1
object
The definition of HTTPTokenAuth object.
body
object
The definition of HTTPBody object.
content
string
Serialized body content
content_type
string
Content type of the body
headers
[object]
The HTTPTokenAuthheaders.
name [required]
string
The HTTPHeadername.
value [required]
string
The HTTPHeadervalue.
tokens
[object]
The HTTPTokenAuthtokens.
name [required]
string
The HTTPTokenname.
type [required]
enum
The definition of TokenType object.
Allowed enum values: SECRET
value [required]
string
The HTTPTokenvalue.
type [required]
enum
The definition of HTTPTokenAuthType object.
Allowed enum values: HTTPTokenAuth
url_parameters
[object]
The HTTPTokenAuthurl_parameters.
name [required]
string
Name for tokens.
value [required]
string
The UrlParamvalue.
type [required]
enum
The definition of HTTPIntegrationType object.
Allowed enum values: HTTP
Option 17
object
The definition of the LaunchDarklyIntegration object.
credentials [required]
<oneOf>
The definition of the LaunchDarklyCredentials object.
Option 1
object
The definition of the LaunchDarklyAPIKey object.
api_token [required]
string
The LaunchDarklyAPIKeyapi_token.
type [required]
enum
The definition of the LaunchDarklyAPIKey object.
Allowed enum values: LaunchDarklyAPIKey
type [required]
enum
The definition of the LaunchDarklyIntegrationType object.
Allowed enum values: LaunchDarkly
Option 18
object
The definition of the NotionIntegration object.
credentials [required]
<oneOf>
The definition of the NotionCredentials object.
Option 1
object
The definition of the NotionAPIKey object.
api_token [required]
string
The NotionAPIKeyapi_token.
type [required]
enum
The definition of the NotionAPIKey object.
Allowed enum values: NotionAPIKey
type [required]
enum
The definition of the NotionIntegrationType object.
Allowed enum values: Notion
Option 19
object
The definition of the OktaIntegration object.
credentials [required]
<oneOf>
The definition of the OktaCredentials object.
Option 1
object
The definition of the OktaAPIToken object.
api_token [required]
string
The OktaAPITokenapi_token.
domain [required]
string
The OktaAPITokendomain.
type [required]
enum
The definition of the OktaAPIToken object.
Allowed enum values: OktaAPIToken
type [required]
enum
The definition of the OktaIntegrationType object.
Allowed enum values: Okta
Option 20
object
The definition of the OpenAIIntegration object.
credentials [required]
<oneOf>
The definition of the OpenAICredentials object.
Option 1
object
The definition of the OpenAIAPIKey object.
api_token [required]
string
The OpenAIAPIKeyapi_token.
type [required]
enum
The definition of the OpenAIAPIKey object.
Allowed enum values: OpenAIAPIKey
type [required]
enum
The definition of the OpenAIIntegrationType object.
Allowed enum values: OpenAI
Option 21
object
The definition of the ServiceNowIntegration object.
credentials [required]
<oneOf>
The definition of the ServiceNowCredentials object.
Option 1
object
The definition of the ServiceNowBasicAuth object.
instance [required]
string
The ServiceNowBasicAuthinstance.
password [required]
string
The ServiceNowBasicAuthpassword.
type [required]
enum
The definition of the ServiceNowBasicAuth object.
Allowed enum values: ServiceNowBasicAuth
username [required]
string
The ServiceNowBasicAuthusername.
type [required]
enum
The definition of the ServiceNowIntegrationType object.
Allowed enum values: ServiceNow
Option 22
object
The definition of the SplitIntegration object.
credentials [required]
<oneOf>
The definition of the SplitCredentials object.
Option 1
object
The definition of the SplitAPIKey object.
api_key [required]
string
The SplitAPIKeyapi_key.
type [required]
enum
The definition of the SplitAPIKey object.
Allowed enum values: SplitAPIKey
type [required]
enum
The definition of the SplitIntegrationType object.
Allowed enum values: Split
Option 23
object
The definition of the StatsigIntegration object.
credentials [required]
<oneOf>
The definition of the StatsigCredentials object.
Option 1
object
The definition of the StatsigAPIKey object.
api_key [required]
string
The StatsigAPIKeyapi_key.
type [required]
enum
The definition of the StatsigAPIKey object.
Allowed enum values: StatsigAPIKey
type [required]
enum
The definition of the StatsigIntegrationType object.
Allowed enum values: Statsig
Option 24
object
The definition of the VirusTotalIntegration object.
credentials [required]
<oneOf>
The definition of the VirusTotalCredentials object.
Option 1
object
The definition of the VirusTotalAPIKey object.
api_key [required]
string
The VirusTotalAPIKeyapi_key.
type [required]
enum
The definition of the VirusTotalAPIKey object.
Allowed enum values: VirusTotalAPIKey
type [required]
enum
The definition of the VirusTotalIntegrationType object.
Allowed enum values: VirusTotal
name [required]
string
Name of the connection
id
string
The connection identifier
type [required]
enum
The definition of ActionConnectionDataType object.
Allowed enum values: action_connection
// Create a new Action Connection returns "Successfully created Action Connection" responsepackagemainimport("context""encoding/json""fmt""os""github.com/DataDog/datadog-api-client-go/v2/api/datadog""github.com/DataDog/datadog-api-client-go/v2/api/datadogV2")funcmain(){body:=datadogV2.CreateActionConnectionRequest{Data:datadogV2.ActionConnectionData{Type:datadogV2.ACTIONCONNECTIONDATATYPE_ACTION_CONNECTION,Attributes:datadogV2.ActionConnectionAttributes{Name:"Cassette Connection exampleactionconnection",Integration:datadogV2.ActionConnectionIntegration{AWSIntegration:&datadogV2.AWSIntegration{Type:datadogV2.AWSINTEGRATIONTYPE_AWS,Credentials:datadogV2.AWSCredentials{AWSAssumeRole:&datadogV2.AWSAssumeRole{Type:datadogV2.AWSASSUMEROLETYPE_AWSASSUMEROLE,Role:"MyRoleUpdated",AccountId:"123456789123",}},}},},},}ctx:=datadog.NewDefaultContext(context.Background())configuration:=datadog.NewConfiguration()apiClient:=datadog.NewAPIClient(configuration)api:=datadogV2.NewActionConnectionApi(apiClient)resp,r,err:=api.CreateActionConnection(ctx,body)iferr!=nil{fmt.Fprintf(os.Stderr,"Error when calling `ActionConnectionApi.CreateActionConnection`: %v\n",err)fmt.Fprintf(os.Stderr,"Full HTTP response: %v\n",r)}responseContent,_:=json.MarshalIndent(resp,""," ")fmt.Fprintf(os.Stdout,"Response from `ActionConnectionApi.CreateActionConnection`:\n%s\n",responseContent)}
"""
Create a new Action Connection returns "Successfully created Action Connection" response
"""fromdatadog_api_clientimportApiClient,Configurationfromdatadog_api_client.v2.api.action_connection_apiimportActionConnectionApifromdatadog_api_client.v2.model.action_connection_attributesimportActionConnectionAttributesfromdatadog_api_client.v2.model.action_connection_dataimportActionConnectionDatafromdatadog_api_client.v2.model.action_connection_data_typeimportActionConnectionDataTypefromdatadog_api_client.v2.model.aws_assume_roleimportAWSAssumeRolefromdatadog_api_client.v2.model.aws_assume_role_typeimportAWSAssumeRoleTypefromdatadog_api_client.v2.model.aws_integrationimportAWSIntegrationfromdatadog_api_client.v2.model.aws_integration_typeimportAWSIntegrationTypefromdatadog_api_client.v2.model.create_action_connection_requestimportCreateActionConnectionRequestbody=CreateActionConnectionRequest(data=ActionConnectionData(type=ActionConnectionDataType.ACTION_CONNECTION,attributes=ActionConnectionAttributes(name="Cassette Connection exampleactionconnection",integration=AWSIntegration(type=AWSIntegrationType.AWS,credentials=AWSAssumeRole(type=AWSAssumeRoleType.AWSASSUMEROLE,role="MyRoleUpdated",account_id="123456789123",),),),),)configuration=Configuration()withApiClient(configuration)asapi_client:api_instance=ActionConnectionApi(api_client)response=api_instance.create_action_connection(body=body)print(response)
# Create a new Action Connection returns "Successfully created Action Connection" responserequire"datadog_api_client"api_instance=DatadogAPIClient::V2::ActionConnectionAPI.newbody=DatadogAPIClient::V2::CreateActionConnectionRequest.new({data:DatadogAPIClient::V2::ActionConnectionData.new({type:DatadogAPIClient::V2::ActionConnectionDataType::ACTION_CONNECTION,attributes:DatadogAPIClient::V2::ActionConnectionAttributes.new({name:"Cassette Connection exampleactionconnection",integration:DatadogAPIClient::V2::AWSIntegration.new({type:DatadogAPIClient::V2::AWSIntegrationType::AWS,credentials:DatadogAPIClient::V2::AWSAssumeRole.new({type:DatadogAPIClient::V2::AWSAssumeRoleType::AWSASSUMEROLE,role:"MyRoleUpdated",account_id:"123456789123",}),}),}),}),})papi_instance.create_action_connection(body)
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comddog-gov.com"DD_API_KEY="<API-KEY>"DD_APP_KEY="<APP-KEY>"cargo run
/**
* Create a new Action Connection returns "Successfully created Action Connection" response
*/import{client,v2}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();constapiInstance=newv2.ActionConnectionApi(configuration);constparams: v2.ActionConnectionApiCreateActionConnectionRequest={body:{data:{type:"action_connection",attributes:{name:"Cassette Connection exampleactionconnection",integration:{type:"AWS",credentials:{type:"AWSAssumeRole",role:"MyRoleUpdated",accountId:"123456789123",},},},},},};apiInstance.createActionConnection(params).then((data: v2.CreateActionConnectionResponse)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));
The definition of ActionConnectionAttributesUpdate object.
integration
<oneOf>
The definition of ActionConnectionIntegrationUpdate object.
Option 1
object
The definition of AWSIntegrationUpdate object.
credentials
<oneOf>
The definition of AWSCredentialsUpdate object.
Option 1
object
The definition of AWSAssumeRoleUpdate object.
account_id
string
AWS account the connection is created for
generate_new_external_id
boolean
The AWSAssumeRoleUpdategenerate_new_external_id.
role
string
Role to assume
type [required]
enum
The definition of AWSAssumeRoleType object.
Allowed enum values: AWSAssumeRole
type [required]
enum
The definition of AWSIntegrationType object.
Allowed enum values: AWS
Option 2
object
The definition of the AnthropicIntegrationUpdate object.
credentials
<oneOf>
The definition of the AnthropicCredentialsUpdate object.
Option 1
object
The definition of the AnthropicAPIKey object.
api_token
string
The AnthropicAPIKeyUpdateapi_token.
type [required]
enum
The definition of the AnthropicAPIKey object.
Allowed enum values: AnthropicAPIKey
type [required]
enum
The definition of the AnthropicIntegrationType object.
Allowed enum values: Anthropic
Option 3
object
The definition of the AsanaIntegrationUpdate object.
credentials
<oneOf>
The definition of the AsanaCredentialsUpdate object.
Option 1
object
The definition of the AsanaAccessToken object.
access_token
string
The AsanaAccessTokenUpdateaccess_token.
type [required]
enum
The definition of the AsanaAccessToken object.
Allowed enum values: AsanaAccessToken
type [required]
enum
The definition of the AsanaIntegrationType object.
Allowed enum values: Asana
Option 4
object
The definition of the AzureIntegrationUpdate object.
credentials
<oneOf>
The definition of the AzureCredentialsUpdate object.
Option 1
object
The definition of the AzureTenant object.
app_client_id
string
The Client ID, also known as the Application ID in Azure, is a unique identifier for an application. It's used to identify the application during the authentication process. Your Application (client) ID is listed in the application's overview page. You can navigate to your application via the Azure Directory.
client_secret
string
The Client Secret is a confidential piece of information known only to the application and Azure AD. It's used to prove the application's identity. Your Client Secret is available from the application’s secrets page. You can navigate to your application via the Azure Directory.
custom_scopes
string
If provided, the custom scope to be requested from Microsoft when acquiring an OAuth 2 access token. This custom scope is used only in conjunction with the HTTP action. A resource's scope is constructed by using the identifier URI for the resource and .default, separated by a forward slash (/) as follows:{identifierURI}/.default.
tenant_id
string
The Tenant ID, also known as the Directory ID in Azure, is a unique identifier that represents an Azure AD instance. Your Tenant ID (Directory ID) is listed in your Active Directory overview page under the 'Tenant information' section.
type [required]
enum
The definition of the AzureTenant object.
Allowed enum values: AzureTenant
type [required]
enum
The definition of the AzureIntegrationType object.
Allowed enum values: Azure
Option 5
object
The definition of the CircleCIIntegrationUpdate object.
credentials
<oneOf>
The definition of the CircleCICredentialsUpdate object.
Option 1
object
The definition of the CircleCIAPIKey object.
api_token
string
The CircleCIAPIKeyUpdateapi_token.
type [required]
enum
The definition of the CircleCIAPIKey object.
Allowed enum values: CircleCIAPIKey
type [required]
enum
The definition of the CircleCIIntegrationType object.
Allowed enum values: CircleCI
Option 6
object
The definition of the ClickupIntegrationUpdate object.
credentials
<oneOf>
The definition of the ClickupCredentialsUpdate object.
Option 1
object
The definition of the ClickupAPIKey object.
api_token
string
The ClickupAPIKeyUpdateapi_token.
type [required]
enum
The definition of the ClickupAPIKey object.
Allowed enum values: ClickupAPIKey
type [required]
enum
The definition of the ClickupIntegrationType object.
Allowed enum values: Clickup
Option 7
object
The definition of the CloudflareIntegrationUpdate object.
credentials
<oneOf>
The definition of the CloudflareCredentialsUpdate object.
Option 1
object
The definition of the CloudflareAPIToken object.
api_token
string
The CloudflareAPITokenUpdateapi_token.
type [required]
enum
The definition of the CloudflareAPIToken object.
Allowed enum values: CloudflareAPIToken
Option 2
object
The definition of the CloudflareGlobalAPIToken object.
auth_email
string
The CloudflareGlobalAPITokenUpdateauth_email.
global_api_key
string
The CloudflareGlobalAPITokenUpdateglobal_api_key.
type [required]
enum
The definition of the CloudflareGlobalAPIToken object.
Allowed enum values: CloudflareGlobalAPIToken
type [required]
enum
The definition of the CloudflareIntegrationType object.
Allowed enum values: Cloudflare
Option 8
object
The definition of the ConfigCatIntegrationUpdate object.
credentials
<oneOf>
The definition of the ConfigCatCredentialsUpdate object.
Option 1
object
The definition of the ConfigCatSDKKey object.
api_password
string
The ConfigCatSDKKeyUpdateapi_password.
api_username
string
The ConfigCatSDKKeyUpdateapi_username.
sdk_key
string
The ConfigCatSDKKeyUpdatesdk_key.
type [required]
enum
The definition of the ConfigCatSDKKey object.
Allowed enum values: ConfigCatSDKKey
type [required]
enum
The definition of the ConfigCatIntegrationType object.
Allowed enum values: ConfigCat
Option 9
object
The definition of the DatadogIntegrationUpdate object.
credentials
<oneOf>
The definition of the DatadogCredentialsUpdate object.
Option 1
object
The definition of the DatadogAPIKey object.
api_key
string
The DatadogAPIKeyUpdateapi_key.
app_key
string
The DatadogAPIKeyUpdateapp_key.
datacenter
string
The DatadogAPIKeyUpdatedatacenter.
subdomain
string
Custom subdomain used for Datadog URLs generated with this Connection. For example, if this org uses https://acme.datadoghq.com to access Datadog, set this field to acme. If this field is omitted, generated URLs will use the default site URL for its datacenter (see https://docs.datadoghq.com/getting_started/site).
type [required]
enum
The definition of the DatadogAPIKey object.
Allowed enum values: DatadogAPIKey
type [required]
enum
The definition of the DatadogIntegrationType object.
Allowed enum values: Datadog
Option 10
object
The definition of the FastlyIntegrationUpdate object.
credentials
<oneOf>
The definition of the FastlyCredentialsUpdate object.
Option 1
object
The definition of the FastlyAPIKey object.
api_key
string
The FastlyAPIKeyUpdateapi_key.
type [required]
enum
The definition of the FastlyAPIKey object.
Allowed enum values: FastlyAPIKey
type [required]
enum
The definition of the FastlyIntegrationType object.
Allowed enum values: Fastly
Option 11
object
The definition of the FreshserviceIntegrationUpdate object.
credentials
<oneOf>
The definition of the FreshserviceCredentialsUpdate object.
Option 1
object
The definition of the FreshserviceAPIKey object.
api_key
string
The FreshserviceAPIKeyUpdateapi_key.
domain
string
The FreshserviceAPIKeyUpdatedomain.
type [required]
enum
The definition of the FreshserviceAPIKey object.
Allowed enum values: FreshserviceAPIKey
type [required]
enum
The definition of the FreshserviceIntegrationType object.
Allowed enum values: Freshservice
Option 12
object
The definition of the GCPIntegrationUpdate object.
credentials
<oneOf>
The definition of the GCPCredentialsUpdate object.
Option 1
object
The definition of the GCPServiceAccount object.
private_key
string
The GCPServiceAccountUpdateprivate_key.
service_account_email
string
The GCPServiceAccountUpdateservice_account_email.
type [required]
enum
The definition of the GCPServiceAccount object.
Allowed enum values: GCPServiceAccount
type [required]
enum
The definition of the GCPIntegrationType object.
Allowed enum values: GCP
Option 13
object
The definition of the GeminiIntegrationUpdate object.
credentials
<oneOf>
The definition of the GeminiCredentialsUpdate object.
Option 1
object
The definition of the GeminiAPIKey object.
api_key
string
The GeminiAPIKeyUpdateapi_key.
type [required]
enum
The definition of the GeminiAPIKey object.
Allowed enum values: GeminiAPIKey
type [required]
enum
The definition of the GeminiIntegrationType object.
Allowed enum values: Gemini
Option 14
object
The definition of the GitlabIntegrationUpdate object.
credentials
<oneOf>
The definition of the GitlabCredentialsUpdate object.
Option 1
object
The definition of the GitlabAPIKey object.
api_token
string
The GitlabAPIKeyUpdateapi_token.
type [required]
enum
The definition of the GitlabAPIKey object.
Allowed enum values: GitlabAPIKey
type [required]
enum
The definition of the GitlabIntegrationType object.
Allowed enum values: Gitlab
Option 15
object
The definition of the GreyNoiseIntegrationUpdate object.
credentials
<oneOf>
The definition of the GreyNoiseCredentialsUpdate object.
Option 1
object
The definition of the GreyNoiseAPIKey object.
api_key
string
The GreyNoiseAPIKeyUpdateapi_key.
type [required]
enum
The definition of the GreyNoiseAPIKey object.
Allowed enum values: GreyNoiseAPIKey
type [required]
enum
The definition of the GreyNoiseIntegrationType object.
Allowed enum values: GreyNoise
Option 16
object
The definition of HTTPIntegrationUpdate object.
base_url
string
Base HTTP url for the integration
credentials
<oneOf>
The definition of HTTPCredentialsUpdate object.
Option 1
object
The definition of HTTPTokenAuthUpdate object.
body
object
The definition of HTTPBody object.
content
string
Serialized body content
content_type
string
Content type of the body
headers
[object]
The HTTPTokenAuthUpdateheaders.
deleted
boolean
Should the header be deleted.
name [required]
string
The HTTPHeaderUpdatename.
value
string
The HTTPHeaderUpdatevalue.
tokens
[object]
The HTTPTokenAuthUpdatetokens.
deleted
boolean
Should the header be deleted.
name [required]
string
The HTTPTokenname.
type [required]
enum
The definition of TokenType object.
Allowed enum values: SECRET
value [required]
string
The HTTPTokenvalue.
type [required]
enum
The definition of HTTPTokenAuthType object.
Allowed enum values: HTTPTokenAuth
url_parameters
[object]
The HTTPTokenAuthUpdateurl_parameters.
deleted
boolean
Should the header be deleted.
name [required]
string
Name for tokens.
value
string
The UrlParamUpdatevalue.
type [required]
enum
The definition of HTTPIntegrationType object.
Allowed enum values: HTTP
Option 17
object
The definition of the LaunchDarklyIntegrationUpdate object.
credentials
<oneOf>
The definition of the LaunchDarklyCredentialsUpdate object.
Option 1
object
The definition of the LaunchDarklyAPIKey object.
api_token
string
The LaunchDarklyAPIKeyUpdateapi_token.
type [required]
enum
The definition of the LaunchDarklyAPIKey object.
Allowed enum values: LaunchDarklyAPIKey
type [required]
enum
The definition of the LaunchDarklyIntegrationType object.
Allowed enum values: LaunchDarkly
Option 18
object
The definition of the NotionIntegrationUpdate object.
credentials
<oneOf>
The definition of the NotionCredentialsUpdate object.
Option 1
object
The definition of the NotionAPIKey object.
api_token
string
The NotionAPIKeyUpdateapi_token.
type [required]
enum
The definition of the NotionAPIKey object.
Allowed enum values: NotionAPIKey
type [required]
enum
The definition of the NotionIntegrationType object.
Allowed enum values: Notion
Option 19
object
The definition of the OktaIntegrationUpdate object.
credentials
<oneOf>
The definition of the OktaCredentialsUpdate object.
Option 1
object
The definition of the OktaAPIToken object.
api_token
string
The OktaAPITokenUpdateapi_token.
domain
string
The OktaAPITokenUpdatedomain.
type [required]
enum
The definition of the OktaAPIToken object.
Allowed enum values: OktaAPIToken
type [required]
enum
The definition of the OktaIntegrationType object.
Allowed enum values: Okta
Option 20
object
The definition of the OpenAIIntegrationUpdate object.
credentials
<oneOf>
The definition of the OpenAICredentialsUpdate object.
Option 1
object
The definition of the OpenAIAPIKey object.
api_token
string
The OpenAIAPIKeyUpdateapi_token.
type [required]
enum
The definition of the OpenAIAPIKey object.
Allowed enum values: OpenAIAPIKey
type [required]
enum
The definition of the OpenAIIntegrationType object.
Allowed enum values: OpenAI
Option 21
object
The definition of the ServiceNowIntegrationUpdate object.
credentials
<oneOf>
The definition of the ServiceNowCredentialsUpdate object.
Option 1
object
The definition of the ServiceNowBasicAuth object.
instance
string
The ServiceNowBasicAuthUpdateinstance.
password
string
The ServiceNowBasicAuthUpdatepassword.
type [required]
enum
The definition of the ServiceNowBasicAuth object.
Allowed enum values: ServiceNowBasicAuth
username
string
The ServiceNowBasicAuthUpdateusername.
type [required]
enum
The definition of the ServiceNowIntegrationType object.
Allowed enum values: ServiceNow
Option 22
object
The definition of the SplitIntegrationUpdate object.
credentials
<oneOf>
The definition of the SplitCredentialsUpdate object.
Option 1
object
The definition of the SplitAPIKey object.
api_key
string
The SplitAPIKeyUpdateapi_key.
type [required]
enum
The definition of the SplitAPIKey object.
Allowed enum values: SplitAPIKey
type [required]
enum
The definition of the SplitIntegrationType object.
Allowed enum values: Split
Option 23
object
The definition of the StatsigIntegrationUpdate object.
credentials
<oneOf>
The definition of the StatsigCredentialsUpdate object.
Option 1
object
The definition of the StatsigAPIKey object.
api_key
string
The StatsigAPIKeyUpdateapi_key.
type [required]
enum
The definition of the StatsigAPIKey object.
Allowed enum values: StatsigAPIKey
type [required]
enum
The definition of the StatsigIntegrationType object.
Allowed enum values: Statsig
Option 24
object
The definition of the VirusTotalIntegrationUpdate object.
credentials
<oneOf>
The definition of the VirusTotalCredentialsUpdate object.
Option 1
object
The definition of the VirusTotalAPIKey object.
api_key
string
The VirusTotalAPIKeyUpdateapi_key.
type [required]
enum
The definition of the VirusTotalAPIKey object.
Allowed enum values: VirusTotalAPIKey
type [required]
enum
The definition of the VirusTotalIntegrationType object.
Allowed enum values: VirusTotal
name
string
Name of the connection
type [required]
enum
The definition of ActionConnectionDataType object.
Allowed enum values: action_connection
The definition of ActionConnectionAttributes object.
integration [required]
<oneOf>
The definition of ActionConnectionIntegration object.
Option 1
object
The definition of AWSIntegration object.
credentials [required]
<oneOf>
The definition of AWSCredentials object.
Option 1
object
The definition of AWSAssumeRole object.
account_id [required]
string
AWS account the connection is created for
external_id
string
External ID used to scope which connection can be used to assume the role
principal_id
string
AWS account that will assume the role
role [required]
string
Role to assume
type [required]
enum
The definition of AWSAssumeRoleType object.
Allowed enum values: AWSAssumeRole
type [required]
enum
The definition of AWSIntegrationType object.
Allowed enum values: AWS
Option 2
object
The definition of the AnthropicIntegration object.
credentials [required]
<oneOf>
The definition of the AnthropicCredentials object.
Option 1
object
The definition of the AnthropicAPIKey object.
api_token [required]
string
The AnthropicAPIKeyapi_token.
type [required]
enum
The definition of the AnthropicAPIKey object.
Allowed enum values: AnthropicAPIKey
type [required]
enum
The definition of the AnthropicIntegrationType object.
Allowed enum values: Anthropic
Option 3
object
The definition of the AsanaIntegration object.
credentials [required]
<oneOf>
The definition of the AsanaCredentials object.
Option 1
object
The definition of the AsanaAccessToken object.
access_token [required]
string
The AsanaAccessTokenaccess_token.
type [required]
enum
The definition of the AsanaAccessToken object.
Allowed enum values: AsanaAccessToken
type [required]
enum
The definition of the AsanaIntegrationType object.
Allowed enum values: Asana
Option 4
object
The definition of the AzureIntegration object.
credentials [required]
<oneOf>
The definition of the AzureCredentials object.
Option 1
object
The definition of the AzureTenant object.
app_client_id [required]
string
The Client ID, also known as the Application ID in Azure, is a unique identifier for an application. It's used to identify the application during the authentication process. Your Application (client) ID is listed in the application's overview page. You can navigate to your application via the Azure Directory.
client_secret [required]
string
The Client Secret is a confidential piece of information known only to the application and Azure AD. It's used to prove the application's identity. Your Client Secret is available from the application’s secrets page. You can navigate to your application via the Azure Directory.
custom_scopes
string
If provided, the custom scope to be requested from Microsoft when acquiring an OAuth 2 access token. This custom scope is used only in conjunction with the HTTP action. A resource's scope is constructed by using the identifier URI for the resource and .default, separated by a forward slash (/) as follows:{identifierURI}/.default.
tenant_id [required]
string
The Tenant ID, also known as the Directory ID in Azure, is a unique identifier that represents an Azure AD instance. Your Tenant ID (Directory ID) is listed in your Active Directory overview page under the 'Tenant information' section.
type [required]
enum
The definition of the AzureTenant object.
Allowed enum values: AzureTenant
type [required]
enum
The definition of the AzureIntegrationType object.
Allowed enum values: Azure
Option 5
object
The definition of the CircleCIIntegration object.
credentials [required]
<oneOf>
The definition of the CircleCICredentials object.
Option 1
object
The definition of the CircleCIAPIKey object.
api_token [required]
string
The CircleCIAPIKeyapi_token.
type [required]
enum
The definition of the CircleCIAPIKey object.
Allowed enum values: CircleCIAPIKey
type [required]
enum
The definition of the CircleCIIntegrationType object.
Allowed enum values: CircleCI
Option 6
object
The definition of the ClickupIntegration object.
credentials [required]
<oneOf>
The definition of the ClickupCredentials object.
Option 1
object
The definition of the ClickupAPIKey object.
api_token [required]
string
The ClickupAPIKeyapi_token.
type [required]
enum
The definition of the ClickupAPIKey object.
Allowed enum values: ClickupAPIKey
type [required]
enum
The definition of the ClickupIntegrationType object.
Allowed enum values: Clickup
Option 7
object
The definition of the CloudflareIntegration object.
credentials [required]
<oneOf>
The definition of the CloudflareCredentials object.
Option 1
object
The definition of the CloudflareAPIToken object.
api_token [required]
string
The CloudflareAPITokenapi_token.
type [required]
enum
The definition of the CloudflareAPIToken object.
Allowed enum values: CloudflareAPIToken
Option 2
object
The definition of the CloudflareGlobalAPIToken object.
auth_email [required]
string
The CloudflareGlobalAPITokenauth_email.
global_api_key [required]
string
The CloudflareGlobalAPITokenglobal_api_key.
type [required]
enum
The definition of the CloudflareGlobalAPIToken object.
Allowed enum values: CloudflareGlobalAPIToken
type [required]
enum
The definition of the CloudflareIntegrationType object.
Allowed enum values: Cloudflare
Option 8
object
The definition of the ConfigCatIntegration object.
credentials [required]
<oneOf>
The definition of the ConfigCatCredentials object.
Option 1
object
The definition of the ConfigCatSDKKey object.
api_password [required]
string
The ConfigCatSDKKeyapi_password.
api_username [required]
string
The ConfigCatSDKKeyapi_username.
sdk_key [required]
string
The ConfigCatSDKKeysdk_key.
type [required]
enum
The definition of the ConfigCatSDKKey object.
Allowed enum values: ConfigCatSDKKey
type [required]
enum
The definition of the ConfigCatIntegrationType object.
Allowed enum values: ConfigCat
Option 9
object
The definition of the DatadogIntegration object.
credentials [required]
<oneOf>
The definition of the DatadogCredentials object.
Option 1
object
The definition of the DatadogAPIKey object.
api_key [required]
string
The DatadogAPIKeyapi_key.
app_key [required]
string
The DatadogAPIKeyapp_key.
datacenter [required]
string
The DatadogAPIKeydatacenter.
subdomain
string
Custom subdomain used for Datadog URLs generated with this Connection. For example, if this org uses https://acme.datadoghq.com to access Datadog, set this field to acme. If this field is omitted, generated URLs will use the default site URL for its datacenter (see https://docs.datadoghq.com/getting_started/site).
type [required]
enum
The definition of the DatadogAPIKey object.
Allowed enum values: DatadogAPIKey
type [required]
enum
The definition of the DatadogIntegrationType object.
Allowed enum values: Datadog
Option 10
object
The definition of the FastlyIntegration object.
credentials [required]
<oneOf>
The definition of the FastlyCredentials object.
Option 1
object
The definition of the FastlyAPIKey object.
api_key [required]
string
The FastlyAPIKeyapi_key.
type [required]
enum
The definition of the FastlyAPIKey object.
Allowed enum values: FastlyAPIKey
type [required]
enum
The definition of the FastlyIntegrationType object.
Allowed enum values: Fastly
Option 11
object
The definition of the FreshserviceIntegration object.
credentials [required]
<oneOf>
The definition of the FreshserviceCredentials object.
Option 1
object
The definition of the FreshserviceAPIKey object.
api_key [required]
string
The FreshserviceAPIKeyapi_key.
domain [required]
string
The FreshserviceAPIKeydomain.
type [required]
enum
The definition of the FreshserviceAPIKey object.
Allowed enum values: FreshserviceAPIKey
type [required]
enum
The definition of the FreshserviceIntegrationType object.
Allowed enum values: Freshservice
Option 12
object
The definition of the GCPIntegration object.
credentials [required]
<oneOf>
The definition of the GCPCredentials object.
Option 1
object
The definition of the GCPServiceAccount object.
private_key [required]
string
The GCPServiceAccountprivate_key.
service_account_email [required]
string
The GCPServiceAccountservice_account_email.
type [required]
enum
The definition of the GCPServiceAccount object.
Allowed enum values: GCPServiceAccount
type [required]
enum
The definition of the GCPIntegrationType object.
Allowed enum values: GCP
Option 13
object
The definition of the GeminiIntegration object.
credentials [required]
<oneOf>
The definition of the GeminiCredentials object.
Option 1
object
The definition of the GeminiAPIKey object.
api_key [required]
string
The GeminiAPIKeyapi_key.
type [required]
enum
The definition of the GeminiAPIKey object.
Allowed enum values: GeminiAPIKey
type [required]
enum
The definition of the GeminiIntegrationType object.
Allowed enum values: Gemini
Option 14
object
The definition of the GitlabIntegration object.
credentials [required]
<oneOf>
The definition of the GitlabCredentials object.
Option 1
object
The definition of the GitlabAPIKey object.
api_token [required]
string
The GitlabAPIKeyapi_token.
type [required]
enum
The definition of the GitlabAPIKey object.
Allowed enum values: GitlabAPIKey
type [required]
enum
The definition of the GitlabIntegrationType object.
Allowed enum values: Gitlab
Option 15
object
The definition of the GreyNoiseIntegration object.
credentials [required]
<oneOf>
The definition of the GreyNoiseCredentials object.
Option 1
object
The definition of the GreyNoiseAPIKey object.
api_key [required]
string
The GreyNoiseAPIKeyapi_key.
type [required]
enum
The definition of the GreyNoiseAPIKey object.
Allowed enum values: GreyNoiseAPIKey
type [required]
enum
The definition of the GreyNoiseIntegrationType object.
Allowed enum values: GreyNoise
Option 16
object
The definition of HTTPIntegration object.
base_url [required]
string
Base HTTP url for the integration
credentials [required]
<oneOf>
The definition of HTTPCredentials object.
Option 1
object
The definition of HTTPTokenAuth object.
body
object
The definition of HTTPBody object.
content
string
Serialized body content
content_type
string
Content type of the body
headers
[object]
The HTTPTokenAuthheaders.
name [required]
string
The HTTPHeadername.
value [required]
string
The HTTPHeadervalue.
tokens
[object]
The HTTPTokenAuthtokens.
name [required]
string
The HTTPTokenname.
type [required]
enum
The definition of TokenType object.
Allowed enum values: SECRET
value [required]
string
The HTTPTokenvalue.
type [required]
enum
The definition of HTTPTokenAuthType object.
Allowed enum values: HTTPTokenAuth
url_parameters
[object]
The HTTPTokenAuthurl_parameters.
name [required]
string
Name for tokens.
value [required]
string
The UrlParamvalue.
type [required]
enum
The definition of HTTPIntegrationType object.
Allowed enum values: HTTP
Option 17
object
The definition of the LaunchDarklyIntegration object.
credentials [required]
<oneOf>
The definition of the LaunchDarklyCredentials object.
Option 1
object
The definition of the LaunchDarklyAPIKey object.
api_token [required]
string
The LaunchDarklyAPIKeyapi_token.
type [required]
enum
The definition of the LaunchDarklyAPIKey object.
Allowed enum values: LaunchDarklyAPIKey
type [required]
enum
The definition of the LaunchDarklyIntegrationType object.
Allowed enum values: LaunchDarkly
Option 18
object
The definition of the NotionIntegration object.
credentials [required]
<oneOf>
The definition of the NotionCredentials object.
Option 1
object
The definition of the NotionAPIKey object.
api_token [required]
string
The NotionAPIKeyapi_token.
type [required]
enum
The definition of the NotionAPIKey object.
Allowed enum values: NotionAPIKey
type [required]
enum
The definition of the NotionIntegrationType object.
Allowed enum values: Notion
Option 19
object
The definition of the OktaIntegration object.
credentials [required]
<oneOf>
The definition of the OktaCredentials object.
Option 1
object
The definition of the OktaAPIToken object.
api_token [required]
string
The OktaAPITokenapi_token.
domain [required]
string
The OktaAPITokendomain.
type [required]
enum
The definition of the OktaAPIToken object.
Allowed enum values: OktaAPIToken
type [required]
enum
The definition of the OktaIntegrationType object.
Allowed enum values: Okta
Option 20
object
The definition of the OpenAIIntegration object.
credentials [required]
<oneOf>
The definition of the OpenAICredentials object.
Option 1
object
The definition of the OpenAIAPIKey object.
api_token [required]
string
The OpenAIAPIKeyapi_token.
type [required]
enum
The definition of the OpenAIAPIKey object.
Allowed enum values: OpenAIAPIKey
type [required]
enum
The definition of the OpenAIIntegrationType object.
Allowed enum values: OpenAI
Option 21
object
The definition of the ServiceNowIntegration object.
credentials [required]
<oneOf>
The definition of the ServiceNowCredentials object.
Option 1
object
The definition of the ServiceNowBasicAuth object.
instance [required]
string
The ServiceNowBasicAuthinstance.
password [required]
string
The ServiceNowBasicAuthpassword.
type [required]
enum
The definition of the ServiceNowBasicAuth object.
Allowed enum values: ServiceNowBasicAuth
username [required]
string
The ServiceNowBasicAuthusername.
type [required]
enum
The definition of the ServiceNowIntegrationType object.
Allowed enum values: ServiceNow
Option 22
object
The definition of the SplitIntegration object.
credentials [required]
<oneOf>
The definition of the SplitCredentials object.
Option 1
object
The definition of the SplitAPIKey object.
api_key [required]
string
The SplitAPIKeyapi_key.
type [required]
enum
The definition of the SplitAPIKey object.
Allowed enum values: SplitAPIKey
type [required]
enum
The definition of the SplitIntegrationType object.
Allowed enum values: Split
Option 23
object
The definition of the StatsigIntegration object.
credentials [required]
<oneOf>
The definition of the StatsigCredentials object.
Option 1
object
The definition of the StatsigAPIKey object.
api_key [required]
string
The StatsigAPIKeyapi_key.
type [required]
enum
The definition of the StatsigAPIKey object.
Allowed enum values: StatsigAPIKey
type [required]
enum
The definition of the StatsigIntegrationType object.
Allowed enum values: Statsig
Option 24
object
The definition of the VirusTotalIntegration object.
credentials [required]
<oneOf>
The definition of the VirusTotalCredentials object.
Option 1
object
The definition of the VirusTotalAPIKey object.
api_key [required]
string
The VirusTotalAPIKeyapi_key.
type [required]
enum
The definition of the VirusTotalAPIKey object.
Allowed enum values: VirusTotalAPIKey
type [required]
enum
The definition of the VirusTotalIntegrationType object.
Allowed enum values: VirusTotal
name [required]
string
Name of the connection
id
string
The connection identifier
type [required]
enum
The definition of ActionConnectionDataType object.
Allowed enum values: action_connection
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comddog-gov.com"DD_API_KEY="<API-KEY>"DD_APP_KEY="<APP-KEY>"cargo run
/**
* Update an existing Action Connection returns "Successfully updated Action Connection" response
*/import{client,v2}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();constapiInstance=newv2.ActionConnectionApi(configuration);constparams: v2.ActionConnectionApiUpdateActionConnectionRequest={body:{data:{type:"action_connection",attributes:{name:"Cassette Connection",integration:{type:"AWS",credentials:{type:"AWSAssumeRole",role:"MyRoleUpdated",accountId:"123456789123",},},},},},connectionId:"cb460d51-3c88-4e87-adac-d47131d0423d",};apiInstance.updateActionConnection(params).then((data: v2.UpdateActionConnectionResponse)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));
Delete an existing Action Connection. This API requires a registered application key. Alternatively, you can configure these permissions in the UI.
This endpoint requires the connection_write permission.
"""
Delete an existing Action Connection returns "The resource was deleted successfully." response
"""fromosimportenvironfromdatadog_api_clientimportApiClient,Configurationfromdatadog_api_client.v2.api.action_connection_apiimportActionConnectionApi# there is a valid "action_connection" in the systemACTION_CONNECTION_DATA_ID=environ["ACTION_CONNECTION_DATA_ID"]configuration=Configuration()withApiClient(configuration)asapi_client:api_instance=ActionConnectionApi(api_client)api_instance.delete_action_connection(connection_id=ACTION_CONNECTION_DATA_ID,)
# Delete an existing Action Connection returns "The resource was deleted successfully." responserequire"datadog_api_client"api_instance=DatadogAPIClient::V2::ActionConnectionAPI.new# there is a valid "action_connection" in the systemACTION_CONNECTION_DATA_ID=ENV["ACTION_CONNECTION_DATA_ID"]api_instance.delete_action_connection(ACTION_CONNECTION_DATA_ID)
// Delete an existing Action Connection returns "The resource was deleted successfully." responsepackagemainimport("context""fmt""os""github.com/DataDog/datadog-api-client-go/v2/api/datadog""github.com/DataDog/datadog-api-client-go/v2/api/datadogV2")funcmain(){// there is a valid "action_connection" in the systemActionConnectionDataID:=os.Getenv("ACTION_CONNECTION_DATA_ID")ctx:=datadog.NewDefaultContext(context.Background())configuration:=datadog.NewConfiguration()apiClient:=datadog.NewAPIClient(configuration)api:=datadogV2.NewActionConnectionApi(apiClient)r,err:=api.DeleteActionConnection(ctx,ActionConnectionDataID)iferr!=nil{fmt.Fprintf(os.Stderr,"Error when calling `ActionConnectionApi.DeleteActionConnection`: %v\n",err)fmt.Fprintf(os.Stderr,"Full HTTP response: %v\n",r)}}
// Delete an existing Action Connection returns "The resource was deleted successfully." responseimportcom.datadog.api.client.ApiClient;importcom.datadog.api.client.ApiException;importcom.datadog.api.client.v2.api.ActionConnectionApi;publicclassExample{publicstaticvoidmain(String[]args){ApiClientdefaultClient=ApiClient.getDefaultApiClient();ActionConnectionApiapiInstance=newActionConnectionApi(defaultClient);// there is a valid "action_connection" in the systemStringACTION_CONNECTION_DATA_ID=System.getenv("ACTION_CONNECTION_DATA_ID");try{apiInstance.deleteActionConnection(ACTION_CONNECTION_DATA_ID);}catch(ApiExceptione){System.err.println("Exception when calling ActionConnectionApi#deleteActionConnection");System.err.println("Status code: "+e.getCode());System.err.println("Reason: "+e.getResponseBody());System.err.println("Response headers: "+e.getResponseHeaders());e.printStackTrace();}}}
// Delete an existing Action Connection returns "The resource was deleted
// successfully." response
usedatadog_api_client::datadog;usedatadog_api_client::datadogV2::api_action_connection::ActionConnectionAPI;#[tokio::main]asyncfnmain(){// there is a valid "action_connection" in the system
letaction_connection_data_id=std::env::var("ACTION_CONNECTION_DATA_ID").unwrap();letconfiguration=datadog::Configuration::new();letapi=ActionConnectionAPI::with_config(configuration);letresp=api.delete_action_connection(action_connection_data_id.clone()).await;ifletOk(value)=resp{println!("{:#?}",value);}else{println!("{:#?}",resp.unwrap_err());}}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comddog-gov.com"DD_API_KEY="<API-KEY>"DD_APP_KEY="<APP-KEY>"cargo run
/**
* Delete an existing Action Connection returns "The resource was deleted successfully." response
*/import{client,v2}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();constapiInstance=newv2.ActionConnectionApi(configuration);// there is a valid "action_connection" in the system
constACTION_CONNECTION_DATA_ID=process.env.ACTION_CONNECTION_DATA_IDasstring;constparams: v2.ActionConnectionApiDeleteActionConnectionRequest={connectionId: ACTION_CONNECTION_DATA_ID,};apiInstance.deleteActionConnection(params).then((data: any)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));
"""
Register a new App Key returns "Created" response
"""fromdatadog_api_clientimportApiClient,Configurationfromdatadog_api_client.v2.api.action_connection_apiimportActionConnectionApiconfiguration=Configuration()withApiClient(configuration)asapi_client:api_instance=ActionConnectionApi(api_client)response=api_instance.register_app_key(app_key_id="b7feea52-994e-4714-a100-1bd9eff5aee1",)print(response)
# Register a new App Key returns "Created" responserequire"datadog_api_client"api_instance=DatadogAPIClient::V2::ActionConnectionAPI.newpapi_instance.register_app_key("b7feea52-994e-4714-a100-1bd9eff5aee1")
// Register a new App Key returns "Created" responsepackagemainimport("context""encoding/json""fmt""os""github.com/DataDog/datadog-api-client-go/v2/api/datadog""github.com/DataDog/datadog-api-client-go/v2/api/datadogV2")funcmain(){ctx:=datadog.NewDefaultContext(context.Background())configuration:=datadog.NewConfiguration()apiClient:=datadog.NewAPIClient(configuration)api:=datadogV2.NewActionConnectionApi(apiClient)resp,r,err:=api.RegisterAppKey(ctx,"b7feea52-994e-4714-a100-1bd9eff5aee1")iferr!=nil{fmt.Fprintf(os.Stderr,"Error when calling `ActionConnectionApi.RegisterAppKey`: %v\n",err)fmt.Fprintf(os.Stderr,"Full HTTP response: %v\n",r)}responseContent,_:=json.MarshalIndent(resp,""," ")fmt.Fprintf(os.Stdout,"Response from `ActionConnectionApi.RegisterAppKey`:\n%s\n",responseContent)}
// Register a new App Key returns "Created" response
usedatadog_api_client::datadog;usedatadog_api_client::datadogV2::api_action_connection::ActionConnectionAPI;#[tokio::main]asyncfnmain(){letconfiguration=datadog::Configuration::new();letapi=ActionConnectionAPI::with_config(configuration);letresp=api.register_app_key("b7feea52-994e-4714-a100-1bd9eff5aee1".to_string()).await;ifletOk(value)=resp{println!("{:#?}",value);}else{println!("{:#?}",resp.unwrap_err());}}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comddog-gov.com"DD_API_KEY="<API-KEY>"DD_APP_KEY="<APP-KEY>"cargo run
/**
* Register a new App Key returns "Created" response
*/import{client,v2}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();constapiInstance=newv2.ActionConnectionApi(configuration);constparams: v2.ActionConnectionApiRegisterAppKeyRequest={appKeyId:"b7feea52-994e-4714-a100-1bd9eff5aee1",};apiInstance.registerAppKey(params).then((data: v2.RegisterAppKeyResponse)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comddog-gov.com"DD_API_KEY="<API-KEY>"DD_APP_KEY="<APP-KEY>"cargo run
/**
* List App Key Registrations returns "OK" response
*/import{client,v2}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();constapiInstance=newv2.ActionConnectionApi(configuration);apiInstance.listAppKeyRegistrations().then((data: v2.ListAppKeyRegistrationsResponse)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));
"""
Unregister an App Key returns "No Content" response
"""fromdatadog_api_clientimportApiClient,Configurationfromdatadog_api_client.v2.api.action_connection_apiimportActionConnectionApiconfiguration=Configuration()withApiClient(configuration)asapi_client:api_instance=ActionConnectionApi(api_client)api_instance.unregister_app_key(app_key_id="57cc69ae-9214-4ecc-8df8-43ecc1d92d99",)
# Unregister an App Key returns "No Content" responserequire"datadog_api_client"api_instance=DatadogAPIClient::V2::ActionConnectionAPI.newapi_instance.unregister_app_key("57cc69ae-9214-4ecc-8df8-43ecc1d92d99")
// Unregister an App Key returns "No Content" response
usedatadog_api_client::datadog;usedatadog_api_client::datadogV2::api_action_connection::ActionConnectionAPI;#[tokio::main]asyncfnmain(){letconfiguration=datadog::Configuration::new();letapi=ActionConnectionAPI::with_config(configuration);letresp=api.unregister_app_key("57cc69ae-9214-4ecc-8df8-43ecc1d92d99".to_string()).await;ifletOk(value)=resp{println!("{:#?}",value);}else{println!("{:#?}",resp.unwrap_err());}}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comddog-gov.com"DD_API_KEY="<API-KEY>"DD_APP_KEY="<APP-KEY>"cargo run
/**
* Unregister an App Key returns "No Content" response
*/import{client,v2}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();constapiInstance=newv2.ActionConnectionApi(configuration);constparams: v2.ActionConnectionApiUnregisterAppKeyRequest={appKeyId:"57cc69ae-9214-4ecc-8df8-43ecc1d92d99",};apiInstance.unregisterAppKey(params).then((data: any)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));
# Get an existing App Key Registration returns "OK" responserequire"datadog_api_client"api_instance=DatadogAPIClient::V2::ActionConnectionAPI.newpapi_instance.get_app_key_registration("b7feea52-994e-4714-a100-1bd9eff5aee1")
// Get an existing App Key Registration returns "OK" responsepackagemainimport("context""encoding/json""fmt""os""github.com/DataDog/datadog-api-client-go/v2/api/datadog""github.com/DataDog/datadog-api-client-go/v2/api/datadogV2")funcmain(){ctx:=datadog.NewDefaultContext(context.Background())configuration:=datadog.NewConfiguration()apiClient:=datadog.NewAPIClient(configuration)api:=datadogV2.NewActionConnectionApi(apiClient)resp,r,err:=api.GetAppKeyRegistration(ctx,"b7feea52-994e-4714-a100-1bd9eff5aee1")iferr!=nil{fmt.Fprintf(os.Stderr,"Error when calling `ActionConnectionApi.GetAppKeyRegistration`: %v\n",err)fmt.Fprintf(os.Stderr,"Full HTTP response: %v\n",r)}responseContent,_:=json.MarshalIndent(resp,""," ")fmt.Fprintf(os.Stdout,"Response from `ActionConnectionApi.GetAppKeyRegistration`:\n%s\n",responseContent)}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comddog-gov.com"DD_API_KEY="<API-KEY>"DD_APP_KEY="<APP-KEY>"cargo run
/**
* Get an existing App Key Registration returns "OK" response
*/import{client,v2}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();constapiInstance=newv2.ActionConnectionApi(configuration);constparams: v2.ActionConnectionApiGetAppKeyRegistrationRequest={appKeyId:"b7feea52-994e-4714-a100-1bd9eff5aee1",};apiInstance.getAppKeyRegistration(params).then((data: v2.GetAppKeyRegistrationResponse)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));