Update an existing Action Connection
https://api.datadoghq.com/api/v2/actions/connections/{connection_id}https://api.us3.datadoghq.com/api/v2/actions/connections/{connection_id}https://api.us5.datadoghq.com/api/v2/actions/connections/{connection_id}https://api.datadoghq.eu/api/v2/actions/connections/{connection_id}https://api.ap1.datadoghq.com/api/v2/actions/connections/{connection_id}https://api.ap2.datadoghq.com/api/v2/actions/connections/{connection_id}https://api.uk1.datadoghq.com/api/v2/actions/connections/{connection_id}https://api.ddog-gov.com/api/v2/actions/connections/{connection_id}https://api.us2.ddog-gov.com/api/v2/actions/connections/{connection_id}Overview
Update an existing Action Connection. This API requires a registered application key.
Arguments
Path Parameters
connection_id [required]The ID of the action connection
Request
Body Data (required)
Update an existing Action Connection request body
data [required]Data related to the connection update.
attributes [required]The definition of ActionConnectionAttributesUpdate object.
external_secrets_managerAWS Secrets Manager settings shared by the credential references on a DATACENTER connection. These settings are required whenever a field uses an AWS Secrets Manager reference.
connection_id [required]ID of the AWS connection used to retrieve secrets. This connection must be in the same Datadog organization.
region [required]AWS region containing the referenced secrets.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerintegrationThe definition of ActionConnectionIntegrationUpdate object.
<type=AWS>The definition of AWSIntegrationUpdate object.
credentialsThe definition of AWSCredentialsUpdate object.
<type=AWSAssumeRole>The definition of AWSAssumeRoleUpdate object.
account_idAWS account the connection is created for
generate_new_external_idThe AWSAssumeRoleUpdate generate_new_external_id.
roleRole to assume
type [required]The definition of AWSAssumeRoleType object.
AWSAssumeRoletype [required]The definition of AWSIntegrationType object.
AWS<type=Anthropic>The definition of the AnthropicIntegrationUpdate object.
credentialsThe definition of the AnthropicCredentialsUpdate object.
<type=AnthropicAPIKey>The definition of the AnthropicAPIKey object.
api_tokenThe AnthropicAPIKeyUpdate api_token.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the AnthropicAPIKey object.
AnthropicAPIKeytype [required]The definition of the AnthropicIntegrationType object.
Anthropic<type=Asana>The definition of the AsanaIntegrationUpdate object.
credentialsThe definition of the AsanaCredentialsUpdate object.
<type=AsanaAccessToken>The definition of the AsanaAccessToken object.
access_tokenThe AsanaAccessTokenUpdate access_token.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the AsanaAccessToken object.
AsanaAccessTokentype [required]The definition of the AsanaIntegrationType object.
Asana<type=Azure>The definition of the AzureIntegrationUpdate object.
credentialsThe definition of the AzureCredentialsUpdate object.
<type=AzureTenant>The definition of the AzureTenant object.
app_client_idThe 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_secretThe 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_scopesIf 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_idThe 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]The definition of the AzureTenant object.
AzureTenanttype [required]The definition of the AzureIntegrationType object.
Azure<type=CircleCI>The definition of the CircleCIIntegrationUpdate object.
credentialsThe definition of the CircleCICredentialsUpdate object.
<type=CircleCIAPIKey>The definition of the CircleCIAPIKey object.
api_tokenThe CircleCIAPIKeyUpdate api_token.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the CircleCIAPIKey object.
CircleCIAPIKeytype [required]The definition of the CircleCIIntegrationType object.
CircleCI<type=Clickup>The definition of the ClickupIntegrationUpdate object.
credentialsThe definition of the ClickupCredentialsUpdate object.
<type=ClickupAPIKey>The definition of the ClickupAPIKey object.
api_tokenThe ClickupAPIKeyUpdate api_token.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the ClickupAPIKey object.
ClickupAPIKeytype [required]The definition of the ClickupIntegrationType object.
Clickup<type=Cloudflare>The definition of the CloudflareIntegrationUpdate object.
credentialsThe definition of the CloudflareCredentialsUpdate object.
<type=CloudflareAPIToken>The definition of the CloudflareAPIToken object.
api_tokenThe CloudflareAPITokenUpdate api_token.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the CloudflareAPIToken object.
CloudflareAPIToken<type=CloudflareGlobalAPIToken>The definition of the CloudflareGlobalAPIToken object.
auth_emailThe CloudflareGlobalAPITokenUpdate auth_email.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
global_api_keyThe CloudflareGlobalAPITokenUpdate global_api_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the CloudflareGlobalAPIToken object.
CloudflareGlobalAPITokentype [required]The definition of the CloudflareIntegrationType object.
Cloudflare<type=ConfigCat>The definition of the ConfigCatIntegrationUpdate object.
credentialsThe definition of the ConfigCatCredentialsUpdate object.
<type=ConfigCatSDKKey>The definition of the ConfigCatSDKKey object.
api_passwordThe ConfigCatSDKKeyUpdate api_password.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
api_usernameThe ConfigCatSDKKeyUpdate api_username.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
sdk_keyThe ConfigCatSDKKeyUpdate sdk_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the ConfigCatSDKKey object.
ConfigCatSDKKeytype [required]The definition of the ConfigCatIntegrationType object.
ConfigCat<type=Datadog>The definition of the DatadogIntegrationUpdate object.
credentialsThe definition of the DatadogCredentialsUpdate object.
<type=DatadogAPIKey>The definition of the DatadogAPIKey object.
api_keyThe DatadogAPIKeyUpdate api_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
app_keyThe DatadogAPIKeyUpdate app_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
datacenterThe DatadogAPIKeyUpdate datacenter.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
subdomainCustom 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).
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the DatadogAPIKey object.
DatadogAPIKeytype [required]The definition of the DatadogIntegrationType object.
Datadog<type=Fastly>The definition of the FastlyIntegrationUpdate object.
credentialsThe definition of the FastlyCredentialsUpdate object.
<type=FastlyAPIKey>The definition of the FastlyAPIKey object.
api_keyThe FastlyAPIKeyUpdate api_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the FastlyAPIKey object.
FastlyAPIKeytype [required]The definition of the FastlyIntegrationType object.
Fastly<type=Freshservice>The definition of the FreshserviceIntegrationUpdate object.
credentialsThe definition of the FreshserviceCredentialsUpdate object.
<type=FreshserviceAPIKey>The definition of the FreshserviceAPIKey object.
api_keyThe FreshserviceAPIKeyUpdate api_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
domainThe FreshserviceAPIKeyUpdate domain.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the FreshserviceAPIKey object.
FreshserviceAPIKeytype [required]The definition of the FreshserviceIntegrationType object.
Freshservice<type=GCP>The definition of the GCPIntegrationUpdate object.
credentialsThe definition of the GCPCredentialsUpdate object.
<type=GCPServiceAccount>The definition of the GCPServiceAccount object.
private_keyThe GCPServiceAccountUpdate private_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
service_account_emailThe GCPServiceAccountUpdate service_account_email.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the GCPServiceAccount object.
GCPServiceAccounttype [required]The definition of the GCPIntegrationType object.
GCP<type=Gemini>The definition of the GeminiIntegrationUpdate object.
credentialsThe definition of the GeminiCredentialsUpdate object.
<type=GeminiAPIKey>The definition of the GeminiAPIKey object.
api_keyThe GeminiAPIKeyUpdate api_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the GeminiAPIKey object.
GeminiAPIKeytype [required]The definition of the GeminiIntegrationType object.
Gemini<type=Github>GitHub connection integration update.
credentialsSupported GitHub connection credentials for an update.
<type=GithubApp>Update to GitHub App credentials.
github_app_idThe numeric ID of the GitHub App.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
github_installation_idThe installation ID of the GitHub App.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
hostnameHostname of the GitHub Enterprise Server. Omit this field for github.com.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
private_keyPEM-encoded RSA private key for the GitHub App.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The credential type for GithubApp.
GithubApp<type=GithubPersonalAccessToken>Update to GitHub personal access token credentials.
access_tokenGitHub personal access token.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
hostnameHostname of the GitHub Enterprise Server. Omit this field for github.com.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The credential type for GithubPersonalAccessToken.
GithubPersonalAccessTokentype [required]The GitHub integration type.
Github<type=Gitlab>The definition of the GitlabIntegrationUpdate object.
credentialsThe definition of the GitlabCredentialsUpdate object.
<type=GitlabAPIKey>The definition of the GitlabAPIKey object.
api_tokenThe GitlabAPIKeyUpdate api_token.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the GitlabAPIKey object.
GitlabAPIKeytype [required]The definition of the GitlabIntegrationType object.
Gitlab<type=GreyNoise>The definition of the GreyNoiseIntegrationUpdate object.
credentialsThe definition of the GreyNoiseCredentialsUpdate object.
<type=GreyNoiseAPIKey>The definition of the GreyNoiseAPIKey object.
api_keyThe GreyNoiseAPIKeyUpdate api_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the GreyNoiseAPIKey object.
GreyNoiseAPIKeytype [required]The definition of the GreyNoiseIntegrationType object.
GreyNoise<type=HTTP>The definition of HTTPIntegrationUpdate object.
base_urlBase HTTP url for the integration
credentialsThe definition of HTTPCredentialsUpdate object.
<type=HTTPTokenAuth>The definition of HTTPTokenAuthUpdate object.
bodyThe definition of HTTPBody object.
contentSerialized body content
content_typeContent type of the body
headersThe HTTPTokenAuthUpdate headers.
deletedShould the header be deleted.
name [required]The HTTPHeaderUpdate name.
valueThe HTTPHeaderUpdate value.
tokensThe HTTPTokenAuthUpdate tokens.
deletedShould the header be deleted.
name [required]The HTTPToken name.
type [required]The definition of TokenType object.
SECRETvalue [required]The HTTPToken value.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of HTTPTokenAuthType object.
HTTPTokenAuthurl_parametersThe HTTPTokenAuthUpdate url_parameters.
deletedShould the header be deleted.
name [required]Name for tokens.
valueThe UrlParamUpdate value.
type [required]The definition of HTTPIntegrationType object.
HTTP<type=LaunchDarkly>The definition of the LaunchDarklyIntegrationUpdate object.
credentialsThe definition of the LaunchDarklyCredentialsUpdate object.
<type=LaunchDarklyAPIKey>The definition of the LaunchDarklyAPIKey object.
api_tokenThe LaunchDarklyAPIKeyUpdate api_token.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the LaunchDarklyAPIKey object.
LaunchDarklyAPIKeytype [required]The definition of the LaunchDarklyIntegrationType object.
LaunchDarkly<type=Notion>The definition of the NotionIntegrationUpdate object.
credentialsThe definition of the NotionCredentialsUpdate object.
<type=NotionAPIKey>The definition of the NotionAPIKey object.
api_tokenThe NotionAPIKeyUpdate api_token.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the NotionAPIKey object.
NotionAPIKeytype [required]The definition of the NotionIntegrationType object.
Notion<type=Okta>The definition of the OktaIntegrationUpdate object.
credentialsThe definition of the OktaCredentialsUpdate object.
<type=OktaAPIToken>The definition of the OktaAPIToken object.
api_tokenThe OktaAPITokenUpdate api_token.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
domainThe OktaAPITokenUpdate domain.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the OktaAPIToken object.
OktaAPITokentype [required]The definition of the OktaIntegrationType object.
Okta<type=OpenAI>The definition of the OpenAIIntegrationUpdate object.
credentialsThe definition of the OpenAICredentialsUpdate object.
<type=OpenAIAPIKey>The definition of the OpenAIAPIKey object.
api_tokenThe OpenAIAPIKeyUpdate api_token.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the OpenAIAPIKey object.
OpenAIAPIKeytype [required]The definition of the OpenAIIntegrationType object.
OpenAI<type=ServiceNow>The definition of the ServiceNowIntegrationUpdate object.
credentialsThe definition of the ServiceNowCredentialsUpdate object.
<type=ServiceNowBasicAuth>The definition of the ServiceNowBasicAuth object.
instanceThe ServiceNowBasicAuthUpdate instance.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
passwordThe ServiceNowBasicAuthUpdate password.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the ServiceNowBasicAuth object.
ServiceNowBasicAuthusernameThe ServiceNowBasicAuthUpdate username.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the ServiceNowIntegrationType object.
ServiceNow<type=Split>The definition of the SplitIntegrationUpdate object.
credentialsThe definition of the SplitCredentialsUpdate object.
<type=SplitAPIKey>The definition of the SplitAPIKey object.
api_keyThe SplitAPIKeyUpdate api_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the SplitAPIKey object.
SplitAPIKeytype [required]The definition of the SplitIntegrationType object.
Split<type=Statsig>The definition of the StatsigIntegrationUpdate object.
credentialsThe definition of the StatsigCredentialsUpdate object.
<type=StatsigAPIKey>The definition of the StatsigAPIKey object.
api_keyThe StatsigAPIKeyUpdate api_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the StatsigAPIKey object.
StatsigAPIKeytype [required]The definition of the StatsigIntegrationType object.
Statsig<type=VirusTotal>The definition of the VirusTotalIntegrationUpdate object.
credentialsThe definition of the VirusTotalCredentialsUpdate object.
<type=VirusTotalAPIKey>The definition of the VirusTotalAPIKey object.
api_keyThe VirusTotalAPIKeyUpdate api_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the VirusTotalAPIKey object.
VirusTotalAPIKeytype [required]The definition of the VirusTotalIntegrationType object.
VirusTotalnameName of the connection
tagsTags associated with the connection. Each tag must follow the key:value format.
The default tag key is reserved.
type [required]The definition of ActionConnectionDataType object.
action_connectionUpdate a GCP Action Connection with a versioned AWS Secrets Manager reference
{
"data": {
"type": "action_connection",
"attributes": {
"external_secrets_manager": {
"type": "aws_secrets_manager",
"connection_id": "b0511f47-29f5-55de-bdcb-c209b05eadc3",
"region": "us-east-1"
},
"integration": {
"type": "GCP",
"credentials": {
"type": "GCPServiceAccount",
"private_key": {
"type": "aws_secrets_manager",
"secret_id": "example/gcp/service-account",
"key": "private_key",
"version_stage": "AWSCURRENT"
},
"service_account_email": {
"type": "aws_secrets_manager",
"secret_id": "example/gcp/service-account",
"key": "client_email"
}
}
}
}
}
}Update a GitHub App Action Connection without replacing its secret
{
"data": {
"type": "action_connection",
"attributes": {
"name": "GitHub App Updated exampleactionconnection",
"integration": {
"type": "Github",
"credentials": {
"type": "GithubApp",
"hostname": "github.updated.example.com"
}
}
}
}
}Update a GitHub personal access token Action Connection without replacing its secret
{
"data": {
"type": "action_connection",
"attributes": {
"name": "GitHub personal access token Updated exampleactionconnection",
"integration": {
"type": "Github",
"credentials": {
"type": "GithubPersonalAccessToken",
"hostname": "github.updated.example.com"
}
}
}
}
}Response
Successfully updated Action Connection
The response for an updated connection.
dataData related to the connection.
attributes [required]The definition of ActionConnectionAttributes object.
external_secrets_managerAWS Secrets Manager settings shared by the credential references on a DATACENTER connection. These settings are required whenever a field uses an AWS Secrets Manager reference.
connection_id [required]ID of the AWS connection used to retrieve secrets. This connection must be in the same Datadog organization.
region [required]AWS region containing the referenced secrets.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerintegration [required]The definition of ActionConnectionIntegration object.
<type=AWS>The definition of AWSIntegration object.
credentials [required]The definition of AWSCredentials object.
<type=AWSAssumeRole>The definition of AWSAssumeRole object.
account_id [required]AWS account the connection is created for
external_idExternal ID used to scope which connection can be used to assume the role
principal_idAWS account that will assume the role
role [required]Role to assume
type [required]The definition of AWSAssumeRoleType object.
AWSAssumeRoletype [required]The definition of AWSIntegrationType object.
AWS<type=Anthropic>The definition of the AnthropicIntegration object.
credentials [required]The definition of the AnthropicCredentials object.
<type=AnthropicAPIKey>The definition of the AnthropicAPIKey object.
api_token [required]The AnthropicAPIKey api_token.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the AnthropicAPIKey object.
AnthropicAPIKeytype [required]The definition of the AnthropicIntegrationType object.
Anthropic<type=Asana>The definition of the AsanaIntegration object.
credentials [required]The definition of the AsanaCredentials object.
<type=AsanaAccessToken>The definition of the AsanaAccessToken object.
access_token [required]The AsanaAccessToken access_token.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the AsanaAccessToken object.
AsanaAccessTokentype [required]The definition of the AsanaIntegrationType object.
Asana<type=Azure>The definition of the AzureIntegration object.
credentials [required]The definition of the AzureCredentials object.
<type=AzureTenant>The definition of the AzureTenant object.
app_client_id [required]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]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_scopesIf 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]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]The definition of the AzureTenant object.
AzureTenanttype [required]The definition of the AzureIntegrationType object.
Azure<type=CircleCI>The definition of the CircleCIIntegration object.
credentials [required]The definition of the CircleCICredentials object.
<type=CircleCIAPIKey>The definition of the CircleCIAPIKey object.
api_token [required]The CircleCIAPIKey api_token.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the CircleCIAPIKey object.
CircleCIAPIKeytype [required]The definition of the CircleCIIntegrationType object.
CircleCI<type=Clickup>The definition of the ClickupIntegration object.
credentials [required]The definition of the ClickupCredentials object.
<type=ClickupAPIKey>The definition of the ClickupAPIKey object.
api_token [required]The ClickupAPIKey api_token.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the ClickupAPIKey object.
ClickupAPIKeytype [required]The definition of the ClickupIntegrationType object.
Clickup<type=Cloudflare>The definition of the CloudflareIntegration object.
credentials [required]The definition of the CloudflareCredentials object.
<type=CloudflareAPIToken>The definition of the CloudflareAPIToken object.
api_token [required]The CloudflareAPIToken api_token.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the CloudflareAPIToken object.
CloudflareAPIToken<type=CloudflareGlobalAPIToken>The definition of the CloudflareGlobalAPIToken object.
auth_email [required]The CloudflareGlobalAPIToken auth_email.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
global_api_key [required]The CloudflareGlobalAPIToken global_api_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the CloudflareGlobalAPIToken object.
CloudflareGlobalAPITokentype [required]The definition of the CloudflareIntegrationType object.
Cloudflare<type=ConfigCat>The definition of the ConfigCatIntegration object.
credentials [required]The definition of the ConfigCatCredentials object.
<type=ConfigCatSDKKey>The definition of the ConfigCatSDKKey object.
api_password [required]The ConfigCatSDKKey api_password.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
api_username [required]The ConfigCatSDKKey api_username.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
sdk_key [required]The ConfigCatSDKKey sdk_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the ConfigCatSDKKey object.
ConfigCatSDKKeytype [required]The definition of the ConfigCatIntegrationType object.
ConfigCat<type=Datadog>The definition of the DatadogIntegration object.
credentials [required]The definition of the DatadogCredentials object.
<type=DatadogAPIKey>The definition of the DatadogAPIKey object.
api_key [required]The DatadogAPIKey api_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
app_key [required]The DatadogAPIKey app_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
datacenter [required]The DatadogAPIKey datacenter.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
subdomainCustom 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).
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the DatadogAPIKey object.
DatadogAPIKeytype [required]The definition of the DatadogIntegrationType object.
Datadog<type=Fastly>The definition of the FastlyIntegration object.
credentials [required]The definition of the FastlyCredentials object.
<type=FastlyAPIKey>The definition of the FastlyAPIKey object.
api_key [required]The FastlyAPIKey api_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the FastlyAPIKey object.
FastlyAPIKeytype [required]The definition of the FastlyIntegrationType object.
Fastly<type=Freshservice>The definition of the FreshserviceIntegration object.
credentials [required]The definition of the FreshserviceCredentials object.
<type=FreshserviceAPIKey>The definition of the FreshserviceAPIKey object.
api_key [required]The FreshserviceAPIKey api_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
domain [required]The FreshserviceAPIKey domain.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the FreshserviceAPIKey object.
FreshserviceAPIKeytype [required]The definition of the FreshserviceIntegrationType object.
Freshservice<type=GCP>The definition of the GCPIntegration object.
credentials [required]The definition of the GCPCredentials object.
<type=GCPServiceAccount>The definition of the GCPServiceAccount object.
private_key [required]The GCPServiceAccount private_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
service_account_email [required]The GCPServiceAccount service_account_email.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the GCPServiceAccount object.
GCPServiceAccounttype [required]The definition of the GCPIntegrationType object.
GCP<type=Gemini>The definition of the GeminiIntegration object.
credentials [required]The definition of the GeminiCredentials object.
<type=GeminiAPIKey>The definition of the GeminiAPIKey object.
api_key [required]The GeminiAPIKey api_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the GeminiAPIKey object.
GeminiAPIKeytype [required]The definition of the GeminiIntegrationType object.
Gemini<type=Github>GitHub connection integration.
credentials [required]Supported GitHub connection credentials.
<type=GithubApp>GitHub App credentials.
github_app_id [required]The numeric ID of the GitHub App.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
github_installation_id [required]The installation ID of the GitHub App.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
hostnameHostname of the GitHub Enterprise Server. Omit this field for github.com.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
private_key [required]PEM-encoded RSA private key for the GitHub App.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The credential type for GithubApp.
GithubApp<type=GithubPersonalAccessToken>GitHub personal access token credentials.
access_token [required]GitHub personal access token.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
hostnameHostname of the GitHub Enterprise Server. Omit this field for github.com.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The credential type for GithubPersonalAccessToken.
GithubPersonalAccessTokentype [required]The GitHub integration type.
Github<type=Gitlab>The definition of the GitlabIntegration object.
credentials [required]The definition of the GitlabCredentials object.
<type=GitlabAPIKey>The definition of the GitlabAPIKey object.
api_token [required]The GitlabAPIKey api_token.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the GitlabAPIKey object.
GitlabAPIKeytype [required]The definition of the GitlabIntegrationType object.
Gitlab<type=GreyNoise>The definition of the GreyNoiseIntegration object.
credentials [required]The definition of the GreyNoiseCredentials object.
<type=GreyNoiseAPIKey>The definition of the GreyNoiseAPIKey object.
api_key [required]The GreyNoiseAPIKey api_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the GreyNoiseAPIKey object.
GreyNoiseAPIKeytype [required]The definition of the GreyNoiseIntegrationType object.
GreyNoise<type=HTTP>The definition of HTTPIntegration object.
base_url [required]Base HTTP url for the integration
credentials [required]The definition of HTTPCredentials object.
<type=HTTPTokenAuth>The definition of HTTPTokenAuth object.
bodyThe definition of HTTPBody object.
contentSerialized body content
content_typeContent type of the body
headersThe HTTPTokenAuth headers.
name [required]The HTTPHeader name.
value [required]The HTTPHeader value.
http_tokensHTTP authentication tokens returned by the API. Use tokens when creating or updating tokens.
name [required]Name of the HTTP authentication token.
value [required]The HTTPTokenResponse value.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
tokensThe HTTPTokenAuth tokens.
name [required]The HTTPToken name.
type [required]The definition of TokenType object.
SECRETvalue [required]The HTTPToken value.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of HTTPTokenAuthType object.
HTTPTokenAuthurl_parametersThe HTTPTokenAuth url_parameters.
name [required]Name for tokens.
value [required]The UrlParam value.
type [required]The definition of HTTPIntegrationType object.
HTTP<type=LaunchDarkly>The definition of the LaunchDarklyIntegration object.
credentials [required]The definition of the LaunchDarklyCredentials object.
<type=LaunchDarklyAPIKey>The definition of the LaunchDarklyAPIKey object.
api_token [required]The LaunchDarklyAPIKey api_token.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the LaunchDarklyAPIKey object.
LaunchDarklyAPIKeytype [required]The definition of the LaunchDarklyIntegrationType object.
LaunchDarkly<type=Notion>The definition of the NotionIntegration object.
credentials [required]The definition of the NotionCredentials object.
<type=NotionAPIKey>The definition of the NotionAPIKey object.
api_token [required]The NotionAPIKey api_token.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the NotionAPIKey object.
NotionAPIKeytype [required]The definition of the NotionIntegrationType object.
Notion<type=Okta>The definition of the OktaIntegration object.
credentials [required]The definition of the OktaCredentials object.
<type=OktaAPIToken>The definition of the OktaAPIToken object.
api_token [required]The OktaAPIToken api_token.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
domain [required]The OktaAPIToken domain.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the OktaAPIToken object.
OktaAPITokentype [required]The definition of the OktaIntegrationType object.
Okta<type=OpenAI>The definition of the OpenAIIntegration object.
credentials [required]The definition of the OpenAICredentials object.
<type=OpenAIAPIKey>The definition of the OpenAIAPIKey object.
api_token [required]The OpenAIAPIKey api_token.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the OpenAIAPIKey object.
OpenAIAPIKeytype [required]The definition of the OpenAIIntegrationType object.
OpenAI<type=ServiceNow>The definition of the ServiceNowIntegration object.
credentials [required]The definition of the ServiceNowCredentials object.
<type=ServiceNowBasicAuth>The definition of the ServiceNowBasicAuth object.
instance [required]The ServiceNowBasicAuth instance.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
password [required]The ServiceNowBasicAuth password.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the ServiceNowBasicAuth object.
ServiceNowBasicAuthusername [required]The ServiceNowBasicAuth username.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the ServiceNowIntegrationType object.
ServiceNow<type=Split>The definition of the SplitIntegration object.
credentials [required]The definition of the SplitCredentials object.
<type=SplitAPIKey>The definition of the SplitAPIKey object.
api_key [required]The SplitAPIKey api_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the SplitAPIKey object.
SplitAPIKeytype [required]The definition of the SplitIntegrationType object.
Split<type=Statsig>The definition of the StatsigIntegration object.
credentials [required]The definition of the StatsigCredentials object.
<type=StatsigAPIKey>The definition of the StatsigAPIKey object.
api_key [required]The StatsigAPIKey api_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the StatsigAPIKey object.
StatsigAPIKeytype [required]The definition of the StatsigIntegrationType object.
Statsig<type=VirusTotal>The definition of the VirusTotalIntegration object.
credentials [required]The definition of the VirusTotalCredentials object.
<type=VirusTotalAPIKey>The definition of the VirusTotalAPIKey object.
api_key [required]The VirusTotalAPIKey api_key.
Object 1A literal string value for a connection credential.
<type=aws_secrets_manager>Reference to a string value in AWS Secrets Manager. The connection must also specify external_secrets_manager settings. AWS Secrets Manager references are supported for token-based credentials and HTTP authentication tokens on DATACENTER connections.
keyTop-level JSON key to extract from the secret string. Omit this field to use the entire secret string.
secret_id [required]Name or ARN of the AWS Secrets Manager secret.
type [required]AWS Secrets Manager secret backend.
aws_secrets_managerversion_idID of the secret version to retrieve. Cannot be used together with version_stage. If both are omitted, the current version is used.
version_stageStaging label of the secret version to retrieve. Cannot be used together with version_id. If both are omitted, the current version is used.
type [required]The definition of the VirusTotalAPIKey object.
VirusTotalAPIKeytype [required]The definition of the VirusTotalIntegrationType object.
VirusTotalname [required]Name of the connection
tagsTags associated with the connection. Each tag must follow the key:value format.
The default tag key is reserved.
idThe connection identifier
type [required]The definition of ActionConnectionDataType object.
action_connection{
"data": {
"attributes": {
"external_secrets_manager": {
"connection_id": "00000000-0000-0000-0000-000000000001",
"region": "us-east-1",
"type": "aws_secrets_manager"
},
"integration": {
"credentials": {
"account_id": "111222333444",
"external_id": "33a1011635c44b38a064cf14e82e1d8f",
"principal_id": "123456789012",
"role": "my-role",
"type": "AWSAssumeRole"
},
"type": "AWS"
},
"name": "My AWS Connection",
"tags": [
"env:prod",
"team:action-platform"
]
},
"id": "string",
"type": "action_connection"
}
}Bad Request
API error response.
errors [required]A list of errors.
codeAn application-specific error code.
detailA human-readable explanation specific to this occurrence of the error.
metaNon-standard meta-information about the error
sourceReferences to the source of the error.
headerA string indicating the name of a single request header which caused the error.
parameterA string indicating which URI query parameter caused the error.
pointerA JSON pointer to the value in the request document that caused the error.
statusStatus code of the response.
titleShort human-readable summary of the error.
{
"errors": [
{
"code": "invalid_request",
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}Forbidden
API error response.
errors [required]A list of errors.
codeAn application-specific error code.
detailA human-readable explanation specific to this occurrence of the error.
metaNon-standard meta-information about the error
sourceReferences to the source of the error.
headerA string indicating the name of a single request header which caused the error.
parameterA string indicating which URI query parameter caused the error.
pointerA JSON pointer to the value in the request document that caused the error.
statusStatus code of the response.
titleShort human-readable summary of the error.
{
"errors": [
{
"code": "invalid_request",
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}Not Found
API error response.
errors [required]A list of errors.
codeAn application-specific error code.
detailA human-readable explanation specific to this occurrence of the error.
metaNon-standard meta-information about the error
sourceReferences to the source of the error.
headerA string indicating the name of a single request header which caused the error.
parameterA string indicating which URI query parameter caused the error.
pointerA JSON pointer to the value in the request document that caused the error.
statusStatus code of the response.
titleShort human-readable summary of the error.
{
"errors": [
{
"code": "invalid_request",
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}Too Many Request
API error response.
errors [required]A list of errors.
codeAn application-specific error code.
detailA human-readable explanation specific to this occurrence of the error.
metaNon-standard meta-information about the error
sourceReferences to the source of the error.
headerA string indicating the name of a single request header which caused the error.
parameterA string indicating which URI query parameter caused the error.
pointerA JSON pointer to the value in the request document that caused the error.
statusStatus code of the response.
titleShort human-readable summary of the error.
{
"errors": [
{
"code": "invalid_request",
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}Code Example
Update a GCP Action Connection with a versioned AWS Secrets Manager reference
# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"external_secrets_manager": {
"type": "aws_secrets_manager",
"connection_id": "b0511f47-29f5-55de-bdcb-c209b05eadc3",
"region": "us-east-1"
},
"integration": {
"type": "GCP",
"credentials": {
"type": "GCPServiceAccount",
"private_key": {
"type": "aws_secrets_manager",
"secret_id": "example/gcp/service-account",
"key": "private_key",
"version_stage": "AWSCURRENT"
},
"service_account_email": {
"type": "aws_secrets_manager",
"secret_id": "example/gcp/service-account",
"key": "client_email"
}
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"external_secrets_manager": {
"type": "aws_secrets_manager",
"connection_id": "b0511f47-29f5-55de-bdcb-c209b05eadc3",
"region": "us-east-1"
},
"integration": {
"type": "GCP",
"credentials": {
"type": "GCPServiceAccount",
"private_key": {
"type": "aws_secrets_manager",
"secret_id": "example/gcp/service-account",
"key": "private_key",
"version_stage": "AWSCURRENT"
},
"service_account_email": {
"type": "aws_secrets_manager",
"secret_id": "example/gcp/service-account",
"key": "client_email"
}
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"external_secrets_manager": {
"type": "aws_secrets_manager",
"connection_id": "b0511f47-29f5-55de-bdcb-c209b05eadc3",
"region": "us-east-1"
},
"integration": {
"type": "GCP",
"credentials": {
"type": "GCPServiceAccount",
"private_key": {
"type": "aws_secrets_manager",
"secret_id": "example/gcp/service-account",
"key": "private_key",
"version_stage": "AWSCURRENT"
},
"service_account_email": {
"type": "aws_secrets_manager",
"secret_id": "example/gcp/service-account",
"key": "client_email"
}
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"external_secrets_manager": {
"type": "aws_secrets_manager",
"connection_id": "b0511f47-29f5-55de-bdcb-c209b05eadc3",
"region": "us-east-1"
},
"integration": {
"type": "GCP",
"credentials": {
"type": "GCPServiceAccount",
"private_key": {
"type": "aws_secrets_manager",
"secret_id": "example/gcp/service-account",
"key": "private_key",
"version_stage": "AWSCURRENT"
},
"service_account_email": {
"type": "aws_secrets_manager",
"secret_id": "example/gcp/service-account",
"key": "client_email"
}
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"external_secrets_manager": {
"type": "aws_secrets_manager",
"connection_id": "b0511f47-29f5-55de-bdcb-c209b05eadc3",
"region": "us-east-1"
},
"integration": {
"type": "GCP",
"credentials": {
"type": "GCPServiceAccount",
"private_key": {
"type": "aws_secrets_manager",
"secret_id": "example/gcp/service-account",
"key": "private_key",
"version_stage": "AWSCURRENT"
},
"service_account_email": {
"type": "aws_secrets_manager",
"secret_id": "example/gcp/service-account",
"key": "client_email"
}
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"external_secrets_manager": {
"type": "aws_secrets_manager",
"connection_id": "b0511f47-29f5-55de-bdcb-c209b05eadc3",
"region": "us-east-1"
},
"integration": {
"type": "GCP",
"credentials": {
"type": "GCPServiceAccount",
"private_key": {
"type": "aws_secrets_manager",
"secret_id": "example/gcp/service-account",
"key": "private_key",
"version_stage": "AWSCURRENT"
},
"service_account_email": {
"type": "aws_secrets_manager",
"secret_id": "example/gcp/service-account",
"key": "client_email"
}
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"external_secrets_manager": {
"type": "aws_secrets_manager",
"connection_id": "b0511f47-29f5-55de-bdcb-c209b05eadc3",
"region": "us-east-1"
},
"integration": {
"type": "GCP",
"credentials": {
"type": "GCPServiceAccount",
"private_key": {
"type": "aws_secrets_manager",
"secret_id": "example/gcp/service-account",
"key": "private_key",
"version_stage": "AWSCURRENT"
},
"service_account_email": {
"type": "aws_secrets_manager",
"secret_id": "example/gcp/service-account",
"key": "client_email"
}
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"external_secrets_manager": {
"type": "aws_secrets_manager",
"connection_id": "b0511f47-29f5-55de-bdcb-c209b05eadc3",
"region": "us-east-1"
},
"integration": {
"type": "GCP",
"credentials": {
"type": "GCPServiceAccount",
"private_key": {
"type": "aws_secrets_manager",
"secret_id": "example/gcp/service-account",
"key": "private_key",
"version_stage": "AWSCURRENT"
},
"service_account_email": {
"type": "aws_secrets_manager",
"secret_id": "example/gcp/service-account",
"key": "client_email"
}
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us2.ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"external_secrets_manager": {
"type": "aws_secrets_manager",
"connection_id": "b0511f47-29f5-55de-bdcb-c209b05eadc3",
"region": "us-east-1"
},
"integration": {
"type": "GCP",
"credentials": {
"type": "GCPServiceAccount",
"private_key": {
"type": "aws_secrets_manager",
"secret_id": "example/gcp/service-account",
"key": "private_key",
"version_stage": "AWSCURRENT"
},
"service_account_email": {
"type": "aws_secrets_manager",
"secret_id": "example/gcp/service-account",
"key": "client_email"
}
}
}
}
}
}
EOFUpdate a GitHub App Action Connection without replacing its secret
# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"name": "GitHub App Updated exampleactionconnection",
"integration": {
"type": "Github",
"credentials": {
"type": "GithubApp",
"hostname": "github.updated.example.com"
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"name": "GitHub App Updated exampleactionconnection",
"integration": {
"type": "Github",
"credentials": {
"type": "GithubApp",
"hostname": "github.updated.example.com"
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"name": "GitHub App Updated exampleactionconnection",
"integration": {
"type": "Github",
"credentials": {
"type": "GithubApp",
"hostname": "github.updated.example.com"
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"name": "GitHub App Updated exampleactionconnection",
"integration": {
"type": "Github",
"credentials": {
"type": "GithubApp",
"hostname": "github.updated.example.com"
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"name": "GitHub App Updated exampleactionconnection",
"integration": {
"type": "Github",
"credentials": {
"type": "GithubApp",
"hostname": "github.updated.example.com"
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"name": "GitHub App Updated exampleactionconnection",
"integration": {
"type": "Github",
"credentials": {
"type": "GithubApp",
"hostname": "github.updated.example.com"
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"name": "GitHub App Updated exampleactionconnection",
"integration": {
"type": "Github",
"credentials": {
"type": "GithubApp",
"hostname": "github.updated.example.com"
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"name": "GitHub App Updated exampleactionconnection",
"integration": {
"type": "Github",
"credentials": {
"type": "GithubApp",
"hostname": "github.updated.example.com"
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us2.ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"name": "GitHub App Updated exampleactionconnection",
"integration": {
"type": "Github",
"credentials": {
"type": "GithubApp",
"hostname": "github.updated.example.com"
}
}
}
}
}
EOFUpdate a GitHub personal access token Action Connection without replacing its secret
# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"name": "GitHub personal access token Updated exampleactionconnection",
"integration": {
"type": "Github",
"credentials": {
"type": "GithubPersonalAccessToken",
"hostname": "github.updated.example.com"
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"name": "GitHub personal access token Updated exampleactionconnection",
"integration": {
"type": "Github",
"credentials": {
"type": "GithubPersonalAccessToken",
"hostname": "github.updated.example.com"
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"name": "GitHub personal access token Updated exampleactionconnection",
"integration": {
"type": "Github",
"credentials": {
"type": "GithubPersonalAccessToken",
"hostname": "github.updated.example.com"
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"name": "GitHub personal access token Updated exampleactionconnection",
"integration": {
"type": "Github",
"credentials": {
"type": "GithubPersonalAccessToken",
"hostname": "github.updated.example.com"
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"name": "GitHub personal access token Updated exampleactionconnection",
"integration": {
"type": "Github",
"credentials": {
"type": "GithubPersonalAccessToken",
"hostname": "github.updated.example.com"
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"name": "GitHub personal access token Updated exampleactionconnection",
"integration": {
"type": "Github",
"credentials": {
"type": "GithubPersonalAccessToken",
"hostname": "github.updated.example.com"
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"name": "GitHub personal access token Updated exampleactionconnection",
"integration": {
"type": "Github",
"credentials": {
"type": "GithubPersonalAccessToken",
"hostname": "github.updated.example.com"
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"name": "GitHub personal access token Updated exampleactionconnection",
"integration": {
"type": "Github",
"credentials": {
"type": "GithubPersonalAccessToken",
"hostname": "github.updated.example.com"
}
}
}
}
}
EOF# Path parameters
export connection_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us2.ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/actions/connections/${connection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "action_connection",
"attributes": {
"name": "GitHub personal access token Updated exampleactionconnection",
"integration": {
"type": "Github",
"credentials": {
"type": "GithubPersonalAccessToken",
"hostname": "github.updated.example.com"
}
}
}
}
}
EOF// Update an existing Action Connection returns "Successfully updated Action Connection" response
package main
import (
"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"
)
func main() {
body := datadogV2.UpdateActionConnectionRequest{
Data: datadogV2.ActionConnectionDataUpdate{
Type: datadogV2.ACTIONCONNECTIONDATATYPE_ACTION_CONNECTION,
Attributes: datadogV2.ActionConnectionAttributesUpdate{
Name: datadog.PtrString("Cassette Connection"),
Integration: &datadogV2.ActionConnectionIntegrationUpdate{
AWSIntegrationUpdate: &datadogV2.AWSIntegrationUpdate{
Type: datadogV2.AWSINTEGRATIONTYPE_AWS,
Credentials: &datadogV2.AWSCredentialsUpdate{
AWSAssumeRoleUpdate: &datadogV2.AWSAssumeRoleUpdate{
Type: datadogV2.AWSASSUMEROLETYPE_AWSASSUMEROLE,
Role: datadog.PtrString("MyRoleUpdated"),
AccountId: datadog.PtrString("123456789123"),
}},
}},
},
},
}
ctx := datadog.NewDefaultContext(context.Background())
ctx = context.WithValue(ctx, datadog.ContextAccessToken, os.Getenv("DD_BEARER_TOKEN"))
configuration := datadog.NewConfiguration()
apiClient := datadog.NewAPIClient(configuration)
api := datadogV2.NewActionConnectionApi(apiClient)
resp, r, err := api.UpdateActionConnection(ctx, "cb460d51-3c88-4e87-adac-d47131d0423d", body)
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ActionConnectionApi.UpdateActionConnection`: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
responseContent, _ := json.MarshalIndent(resp, "", " ")
fmt.Fprintf(os.Stdout, "Response from `ActionConnectionApi.UpdateActionConnection`:\n%s\n", responseContent)
}
Instructions
First install the library and its dependencies and then save the example to main.go and run following commands:
DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" go run "main.go"DD_SITE="us3.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" go run "main.go"DD_SITE="us5.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" go run "main.go"DD_SITE="datadoghq.eu" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" go run "main.go"DD_SITE="ap1.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" go run "main.go"DD_SITE="ap2.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" go run "main.go"DD_SITE="uk1.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" go run "main.go"DD_SITE="ddog-gov.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" go run "main.go"DD_SITE="us2.ddog-gov.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" go run "main.go"// Update an existing Action Connection returns "Successfully updated Action Connection" response
import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.ActionConnectionApi;
import com.datadog.api.client.v2.model.AWSAssumeRoleType;
import com.datadog.api.client.v2.model.AWSAssumeRoleUpdate;
import com.datadog.api.client.v2.model.AWSCredentialsUpdate;
import com.datadog.api.client.v2.model.AWSIntegrationType;
import com.datadog.api.client.v2.model.AWSIntegrationUpdate;
import com.datadog.api.client.v2.model.ActionConnectionAttributesUpdate;
import com.datadog.api.client.v2.model.ActionConnectionDataType;
import com.datadog.api.client.v2.model.ActionConnectionDataUpdate;
import com.datadog.api.client.v2.model.ActionConnectionIntegrationUpdate;
import com.datadog.api.client.v2.model.UpdateActionConnectionRequest;
import com.datadog.api.client.v2.model.UpdateActionConnectionResponse;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));
ActionConnectionApi apiInstance = new ActionConnectionApi(defaultClient);
UpdateActionConnectionRequest body =
new UpdateActionConnectionRequest()
.data(
new ActionConnectionDataUpdate()
.type(ActionConnectionDataType.ACTION_CONNECTION)
.attributes(
new ActionConnectionAttributesUpdate()
.name("Cassette Connection")
.integration(
new ActionConnectionIntegrationUpdate(
new AWSIntegrationUpdate()
.type(AWSIntegrationType.AWS)
.credentials(
new AWSCredentialsUpdate(
new AWSAssumeRoleUpdate()
.type(AWSAssumeRoleType.AWSASSUMEROLE)
.role("MyRoleUpdated")
.accountId("123456789123")))))));
try {
UpdateActionConnectionResponse result =
apiInstance.updateActionConnection("cb460d51-3c88-4e87-adac-d47131d0423d", body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ActionConnectionApi#updateActionConnection");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Instructions
First install the library and its dependencies and then save the example to Example.java and run following commands:
DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" java "Example.java"DD_SITE="us3.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" java "Example.java"DD_SITE="us5.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" java "Example.java"DD_SITE="datadoghq.eu" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" java "Example.java"DD_SITE="ap1.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" java "Example.java"DD_SITE="ap2.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" java "Example.java"DD_SITE="uk1.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" java "Example.java"DD_SITE="ddog-gov.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" java "Example.java"DD_SITE="us2.ddog-gov.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" java "Example.java""""
Update an existing Action Connection returns "Successfully updated Action Connection" response
"""
from os import environ
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v2.api.action_connection_api import ActionConnectionApi
from datadog_api_client.v2.model.action_connection_attributes_update import ActionConnectionAttributesUpdate
from datadog_api_client.v2.model.action_connection_data_type import ActionConnectionDataType
from datadog_api_client.v2.model.action_connection_data_update import ActionConnectionDataUpdate
from datadog_api_client.v2.model.aws_assume_role_type import AWSAssumeRoleType
from datadog_api_client.v2.model.aws_assume_role_update import AWSAssumeRoleUpdate
from datadog_api_client.v2.model.aws_integration_type import AWSIntegrationType
from datadog_api_client.v2.model.aws_integration_update import AWSIntegrationUpdate
from datadog_api_client.v2.model.update_action_connection_request import UpdateActionConnectionRequest
body = UpdateActionConnectionRequest(
data=ActionConnectionDataUpdate(
type=ActionConnectionDataType.ACTION_CONNECTION,
attributes=ActionConnectionAttributesUpdate(
name="Cassette Connection",
integration=AWSIntegrationUpdate(
type=AWSIntegrationType.AWS,
credentials=AWSAssumeRoleUpdate(
type=AWSAssumeRoleType.AWSASSUMEROLE,
role="MyRoleUpdated",
account_id="123456789123",
),
),
),
),
)
configuration = Configuration()
configuration.access_token = environ["DD_BEARER_TOKEN"]
with ApiClient(configuration) as api_client:
api_instance = ActionConnectionApi(api_client)
response = api_instance.update_action_connection(connection_id="cb460d51-3c88-4e87-adac-d47131d0423d", body=body)
print(response)
Instructions
First install the library and its dependencies and then save the example to example.py and run following commands:
DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" python3 "example.py"DD_SITE="us3.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" python3 "example.py"DD_SITE="us5.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" python3 "example.py"DD_SITE="datadoghq.eu" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" python3 "example.py"DD_SITE="ap1.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" python3 "example.py"DD_SITE="ap2.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" python3 "example.py"DD_SITE="uk1.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" python3 "example.py"DD_SITE="ddog-gov.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" python3 "example.py"DD_SITE="us2.ddog-gov.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" python3 "example.py"# Update an existing Action Connection returns "Successfully updated Action Connection" response
require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.access_token = ENV["DD_BEARER_TOKEN"]
end
api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new
body = DatadogAPIClient::V2::UpdateActionConnectionRequest.new({
data: DatadogAPIClient::V2::ActionConnectionDataUpdate.new({
type: DatadogAPIClient::V2::ActionConnectionDataType::ACTION_CONNECTION,
attributes: DatadogAPIClient::V2::ActionConnectionAttributesUpdate.new({
name: "Cassette Connection",
integration: DatadogAPIClient::V2::AWSIntegrationUpdate.new({
type: DatadogAPIClient::V2::AWSIntegrationType::AWS,
credentials: DatadogAPIClient::V2::AWSAssumeRoleUpdate.new({
type: DatadogAPIClient::V2::AWSAssumeRoleType::AWSASSUMEROLE,
role: "MyRoleUpdated",
account_id: "123456789123",
}),
}),
}),
}),
})
p api_instance.update_action_connection("cb460d51-3c88-4e87-adac-d47131d0423d", body)
Instructions
First install the library and its dependencies and then save the example to example.rb and run following commands:
DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" ruby "example.rb"DD_SITE="us3.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" ruby "example.rb"DD_SITE="us5.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" ruby "example.rb"DD_SITE="datadoghq.eu" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" ruby "example.rb"DD_SITE="ap1.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" ruby "example.rb"DD_SITE="ap2.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" ruby "example.rb"DD_SITE="uk1.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" ruby "example.rb"DD_SITE="ddog-gov.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" ruby "example.rb"DD_SITE="us2.ddog-gov.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" ruby "example.rb"// Update an existing Action Connection returns "Successfully updated Action
// Connection" response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_action_connection::ActionConnectionAPI;
use datadog_api_client::datadogV2::model::AWSAssumeRoleType;
use datadog_api_client::datadogV2::model::AWSAssumeRoleUpdate;
use datadog_api_client::datadogV2::model::AWSCredentialsUpdate;
use datadog_api_client::datadogV2::model::AWSIntegrationType;
use datadog_api_client::datadogV2::model::AWSIntegrationUpdate;
use datadog_api_client::datadogV2::model::ActionConnectionAttributesUpdate;
use datadog_api_client::datadogV2::model::ActionConnectionDataType;
use datadog_api_client::datadogV2::model::ActionConnectionDataUpdate;
use datadog_api_client::datadogV2::model::ActionConnectionIntegrationUpdate;
use datadog_api_client::datadogV2::model::UpdateActionConnectionRequest;
#[tokio::main]
async fn main() {
let body = UpdateActionConnectionRequest::new(ActionConnectionDataUpdate::new(
ActionConnectionAttributesUpdate::new()
.integration(ActionConnectionIntegrationUpdate::AWSIntegrationUpdate(
Box::new(
AWSIntegrationUpdate::new(AWSIntegrationType::AWS).credentials(
AWSCredentialsUpdate::AWSAssumeRoleUpdate(Box::new(
AWSAssumeRoleUpdate::new(AWSAssumeRoleType::AWSASSUMEROLE)
.account_id("123456789123".to_string())
.role("MyRoleUpdated".to_string()),
)),
),
),
))
.name("Cassette Connection".to_string()),
ActionConnectionDataType::ACTION_CONNECTION,
));
let configuration = datadog::Configuration::new();
let api = ActionConnectionAPI::with_config(configuration);
let resp = api
.update_action_connection("cb460d51-3c88-4e87-adac-d47131d0423d".to_string(), body)
.await;
if let Ok(value) = resp {
println!("{:#?}", value);
} else {
println!("{:#?}", resp.unwrap_err());
}
}
Instructions
First install the library and its dependencies and then save the example to src/main.rs and run following commands:
DD_SITE="datadoghq.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" cargo runDD_SITE="us3.datadoghq.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" cargo runDD_SITE="us5.datadoghq.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" cargo runDD_SITE="datadoghq.eu" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" cargo runDD_SITE="ap1.datadoghq.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" cargo runDD_SITE="ap2.datadoghq.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" cargo runDD_SITE="uk1.datadoghq.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" cargo runDD_SITE="ddog-gov.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" cargo runDD_SITE="us2.ddog-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";
const configuration = client.createConfiguration({
authMethods: {
AuthZ: {
accessToken: process.env.DD_BEARER_TOKEN as string,
},
},
});
const apiInstance = new v2.ActionConnectionApi(configuration);
const params: 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));
Instructions
First install the library and its dependencies and then save the example to example.ts and run following commands:
DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" npx tsx "example.ts"DD_SITE="us3.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" npx tsx "example.ts"DD_SITE="us5.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" npx tsx "example.ts"DD_SITE="datadoghq.eu" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" npx tsx "example.ts"DD_SITE="ap1.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" npx tsx "example.ts"DD_SITE="ap2.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" npx tsx "example.ts"DD_SITE="uk1.datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" npx tsx "example.ts"DD_SITE="ddog-gov.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" npx tsx "example.ts"DD_SITE="us2.ddog-gov.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" npx tsx "example.ts"