Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .generated-info
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"spec_repo_commit": "8001cbb",
"generated": "2025-08-13 20:27:07.288"
"spec_repo_commit": "8d438ee",
"generated": "2025-08-14 20:28:39.307"
}
133 changes: 110 additions & 23 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1431,26 +1431,29 @@ components:
- data
type: object
AWSAssumeRole:
description: The definition of `AWSAssumeRole` object.
description: The definition of the `AWSAssumeRole` object.
properties:
account_id:
description: AWS account the connection is created for
description: AWS account the connection is created for.
example: '111222333444'
pattern: ^\d{12}$
type: string
external_id:
description: External ID used to scope which connection can be used to assume
the role
the role.
example: 33a1011635c44b38a064cf14e82e1d8f
readOnly: true
type: string
generate_new_external_id:
description: Pass true if the `external_id` should be regenerated.
type: boolean
principal_id:
description: AWS account that will assume the role
description: AWS account that will assume the role.
example: '123456789012'
readOnly: true
type: string
role:
description: Role to assume
description: Role to assume.
example: my-role
type: string
type:
Expand All @@ -1461,26 +1464,26 @@ components:
- role
type: object
AWSAssumeRoleType:
description: The definition of `AWSAssumeRoleType` object.
description: The definition of the `AWSAssumeRole` object.
enum:
- AWSAssumeRole
example: AWSAssumeRole
type: string
x-enum-varnames:
- AWSASSUMEROLE
AWSAssumeRoleUpdate:
description: The definition of `AWSAssumeRoleUpdate` object.
description: The definition of the `AWSAssumeRole` object.
properties:
account_id:
description: AWS account the connection is created for
description: AWS account the connection is created for.
example: '111222333444'
pattern: ^\d{12}$
type: string
generate_new_external_id:
description: The `AWSAssumeRoleUpdate` `generate_new_external_id`.
description: Pass true if the `external_id` should be regenerated.
type: boolean
role:
description: Role to assume
description: Role to assume.
example: my-role
type: string
type:
Expand Down Expand Up @@ -1527,15 +1530,15 @@ components:
- role_name
type: object
AWSCredentials:
description: The definition of `AWSCredentials` object.
description: The definition of the `AWSCredentials` object.
oneOf:
- $ref: '#/components/schemas/AWSAssumeRole'
AWSCredentialsUpdate:
description: The definition of `AWSCredentialsUpdate` object.
description: The definition of the `AWSCredentialsUpdate` object.
oneOf:
- $ref: '#/components/schemas/AWSAssumeRoleUpdate'
AWSIntegration:
description: The definition of `AWSIntegration` object.
description: The definition of the `AWSIntegration` object.
properties:
credentials:
$ref: '#/components/schemas/AWSCredentials'
Expand Down Expand Up @@ -1594,15 +1597,15 @@ components:
x-enum-varnames:
- PERMISSIONS
AWSIntegrationType:
description: The definition of `AWSIntegrationType` object.
description: The definition of the `AWSIntegrationType` object.
enum:
- AWS
example: AWS
type: string
x-enum-varnames:
- AWS
AWSIntegrationUpdate:
description: The definition of `AWSIntegrationUpdate` object.
description: The definition of the `AWSIntegrationUpdate` object.
properties:
credentials:
$ref: '#/components/schemas/AWSCredentialsUpdate'
Expand Down Expand Up @@ -18478,6 +18481,46 @@ components:
example: env:production
type: string
type: array
HTTPBasicAuth:
description: The definition of the `HTTPBasicAuth` object.
properties:
password:
description: Password used for authentication. Saved in a secret store
example: ''
type: string
type:
$ref: '#/components/schemas/HTTPBasicAuthType'
username:
description: Username used for authentication.
example: ''
type: string
required:
- type
- username
- password
type: object
HTTPBasicAuthType:
description: The definition of the `HTTPBasicAuth` object.
enum:
- HTTPBasicAuth
example: HTTPBasicAuth
type: string
x-enum-varnames:
- HTTPBASICAUTH
HTTPBasicAuthUpdate:
description: The definition of the `HTTPBasicAuth` object.
properties:
password:
description: Password used for authentication. Saved in a secret store
type: string
type:
$ref: '#/components/schemas/HTTPBasicAuthType'
username:
description: Username used for authentication.
type: string
required:
- type
type: object
HTTPBody:
description: The definition of `HTTPBody` object.
properties:
Expand Down Expand Up @@ -18516,13 +18559,17 @@ components:
type: array
type: object
HTTPCredentials:
description: The definition of `HTTPCredentials` object.
description: The definition of the `HTTPCredentials` object.
oneOf:
- $ref: '#/components/schemas/HTTPTokenAuth'
- $ref: '#/components/schemas/HTTPBasicAuth'
- $ref: '#/components/schemas/HTTPMtlsAuth'
HTTPCredentialsUpdate:
description: The definition of `HTTPCredentialsUpdate` object.
description: The definition of the `HTTPCredentialsUpdate` object.
oneOf:
- $ref: '#/components/schemas/HTTPTokenAuthUpdate'
- $ref: '#/components/schemas/HTTPBasicAuthUpdate'
- $ref: '#/components/schemas/HTTPMtlsAuthUpdate'
HTTPHeader:
description: The definition of `HTTPHeader` object.
properties:
Expand Down Expand Up @@ -18558,10 +18605,10 @@ components:
- name
type: object
HTTPIntegration:
description: The definition of `HTTPIntegration` object.
description: The definition of the `HTTPIntegration` object.
properties:
base_url:
description: Base HTTP url for the integration
description: Base HTTP url for the integration.
example: http://datadoghq.com
type: string
credentials:
Expand All @@ -18574,18 +18621,18 @@ components:
- credentials
type: object
HTTPIntegrationType:
description: The definition of `HTTPIntegrationType` object.
description: The definition of the `HTTPIntegrationType` object.
enum:
- HTTP
example: HTTP
type: string
x-enum-varnames:
- HTTP
HTTPIntegrationUpdate:
description: The definition of `HTTPIntegrationUpdate` object.
description: The definition of the `HTTPIntegrationUpdate` object.
properties:
base_url:
description: Base HTTP url for the integration
description: Base HTTP url for the integration.
example: http://datadoghq.com
type: string
credentials:
Expand Down Expand Up @@ -18671,6 +18718,46 @@ components:
required:
- message
type: object
HTTPMtlsAuth:
description: The definition of the `HTTPMtlsAuth` object.
properties:
certificate:
description: Certificate of authority used to sign the request.
example: ''
type: string
private_key:
description: Private key used for the MTLS handshake
example: ''
type: string
type:
$ref: '#/components/schemas/HTTPMtlsAuthType'
required:
- type
- certificate
- private_key
type: object
HTTPMtlsAuthType:
description: The definition of the `HTTPMtlsAuth` object.
enum:
- HTTPMtlsAuth
example: HTTPMtlsAuth
type: string
x-enum-varnames:
- HTTPMTLSAUTH
HTTPMtlsAuthUpdate:
description: The definition of the `HTTPMtlsAuth` object.
properties:
certificate:
description: Certificate of authority used to sign the request.
type: string
private_key:
description: Private key used for the MTLS handshake
type: string
type:
$ref: '#/components/schemas/HTTPMtlsAuthType'
required:
- type
type: object
HTTPToken:
description: The definition of `HTTPToken` object.
properties:
Expand Down Expand Up @@ -18716,7 +18803,7 @@ components:
- type
type: object
HTTPTokenAuthType:
description: The definition of `HTTPTokenAuthType` object.
description: The definition of the `HTTPTokenAuth` object.
enum:
- HTTPTokenAuth
example: HTTPTokenAuth
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Create a new Action Connection with HTTPMtlsAuth returns "Successfully created Action Connection" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new

body = DatadogAPIClient::V2::CreateActionConnectionRequest.new({
data: DatadogAPIClient::V2::ActionConnectionData.new({
type: DatadogAPIClient::V2::ActionConnectionDataType::ACTION_CONNECTION,
attributes: DatadogAPIClient::V2::ActionConnectionAttributes.new({
name: "HTTP mTLS Connection exampleactionconnection",
integration: DatadogAPIClient::V2::HTTPIntegration.new({
type: DatadogAPIClient::V2::HTTPIntegrationType::HTTP,
base_url: "https://api.example.com",
credentials: DatadogAPIClient::V2::HTTPMtlsAuth.new({
type: DatadogAPIClient::V2::HTTPMtlsAuthType::HTTPMTLSAUTH,
certificate: '-----BEGIN CERTIFICATE-----\nMIICXjCCAUYCCQDOGcCfCHfhPzANBgkqhkiG9w0BAQsFADAzMQswCQYDVQQGEwJV\nUzELMAkGA1UECAwCQ0ExFTATBgNVBAoMDERhdGFkb2cgSW5jLjAeFw0yNDA1MTQw\nMDA1NThaFw0yNTA1MTQwMDA1NThaMDMxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJD\nQTEVMBMGA1UECgwMRGF0YWRvZyBJbmMuMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A\nMIIBCgKCAQEAwQDTmLqWv2L6YhzBcjKgPEzd3kE+9dZ4hBXBCjK6HgF/3aOKOSYq\nM9KPFHgJj6SjUJ+8TqX4sV6yW5xGX8dKjOpTYQfExEjGYcVrqKoOGg2k6dGkHyGm\n2VzL4zKyK1C3zJ4KpJnMYK8dPPcgzJvO7jGxGKMgLVU3VNdxKGTrqKmC6RbZLQOz\nM3fLp7bF2VcJ6VkGKW+yBK6vVMbQKMvjTbGqr3vIRd8SZzKRTsyIzXQDKgOv2vPn\nSqYJjKFJ8vJ7JeH6zGyLjQ1cGVy9jJ3+TjJoJhCGOyGzJpBGIcXfYjFDLcSRh7KE\nQIDAQABo1MwUTAdBgNVHQ4EFgQU/V8vJkPJ8b9yQnC/9bJ2kJGJ5MjoyEwHwYDVR0j\nBBgwFoAU/V8vJkPJ8b9yQnC/9bJ2kJGJ5Mjo\n-----END CERTIFICATE-----',
private_key: '-----BEGIN PRIVATE KEY-----\nMIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDBaNOMV7V8T7gR\nOmNcNfqGHxPrLLo1w2J7J8h6S8bVD9yCH2JKV8J5G2J8J0V8J3Jg8b3Jg8LxJgV\nV8J6JgV8J9JgJg8LJg8VJgV5JgLLJgVVJg8V4Jg8VLJg8V6JgV8JqJgVV8J3JgV\nV8J7JgVV8J5JgVV8J8JgVVJg8LJgJVLJgLVJgVVJgLJgVVJgVVJgVVJgLVJgVV\nJgVVJgVVJgLJgVVJgLVJgLLJgVVJgVLJgVVJgVLJgVVJgVVJgVVJgVVJgVVJg\nVVJgVVJgVVJgVVJgVVJgVVJgVVJgVVJgVVJgVVJgVVJgVVJgVVJgVVJgVVJgVVJ\nAgMBAAECggEBAKoJkJJJJkJJkJ\n-----END PRIVATE KEY-----',
}),
}),
}),
}),
})
p api_instance.create_action_connection(body)
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Create a new Action Connection with HTTPBasicAuth returns "Successfully created Action Connection" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new

body = DatadogAPIClient::V2::CreateActionConnectionRequest.new({
data: DatadogAPIClient::V2::ActionConnectionData.new({
type: DatadogAPIClient::V2::ActionConnectionDataType::ACTION_CONNECTION,
attributes: DatadogAPIClient::V2::ActionConnectionAttributes.new({
name: "HTTP Basic Auth Connection exampleactionconnection",
integration: DatadogAPIClient::V2::HTTPIntegration.new({
type: DatadogAPIClient::V2::HTTPIntegrationType::HTTP,
base_url: "https://api.example.com",
credentials: DatadogAPIClient::V2::HTTPBasicAuth.new({
type: DatadogAPIClient::V2::HTTPBasicAuthType::HTTPBASICAUTH,
username: "test-user",
password: "test-password",
}),
}),
}),
}),
})
p api_instance.create_action_connection(body)
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Create a new Action Connection with HTTPTokenAuth returns "Successfully created Action Connection" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new

body = DatadogAPIClient::V2::CreateActionConnectionRequest.new({
data: DatadogAPIClient::V2::ActionConnectionData.new({
type: DatadogAPIClient::V2::ActionConnectionDataType::ACTION_CONNECTION,
attributes: DatadogAPIClient::V2::ActionConnectionAttributes.new({
name: "HTTP Token Connection exampleactionconnection",
integration: DatadogAPIClient::V2::HTTPIntegration.new({
type: DatadogAPIClient::V2::HTTPIntegrationType::HTTP,
base_url: "https://api.example.com",
credentials: DatadogAPIClient::V2::HTTPTokenAuth.new({
type: DatadogAPIClient::V2::HTTPTokenAuthType::HTTPTOKENAUTH,
tokens: [
DatadogAPIClient::V2::HTTPToken.new({
name: "ApiKey",
type: DatadogAPIClient::V2::TokenType::SECRET,
value: "secret-token-value",
}),
],
headers: [
DatadogAPIClient::V2::HTTPHeader.new({
name: "Authorization",
value: "Bearer token-value",
}),
],
}),
}),
}),
}),
})
p api_instance.create_action_connection(body)
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Update an existing Action Connection with HTTPBasicAuth returns "Successfully updated Action Connection" response

require "datadog_api_client"
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: "HTTP Basic Auth Updated",
integration: DatadogAPIClient::V2::HTTPIntegrationUpdate.new({
type: DatadogAPIClient::V2::HTTPIntegrationType::HTTP,
base_url: "https://api.updated.com",
credentials: DatadogAPIClient::V2::HTTPBasicAuthUpdate.new({
type: DatadogAPIClient::V2::HTTPBasicAuthType::HTTPBASICAUTH,
username: "updated-user",
password: "updated-password",
}),
}),
}),
}),
})
p api_instance.update_action_connection("cb460d51-3c88-4e87-adac-d47131d0423d", body)
Loading
Loading