Sha256: d92388ada2f235ea6961b4e31e83e0c2b64519bedae81045c24820a8fae00412

Contents?: true

Size: 1.07 KB

Versions: 33

Compression:

Stored size: 1.07 KB

Contents

# Update an archive returns "OK" response

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

body = DatadogAPIClient::V2::LogsArchiveCreateRequest.new({
  data: DatadogAPIClient::V2::LogsArchiveCreateRequestDefinition.new({
    attributes: DatadogAPIClient::V2::LogsArchiveCreateRequestAttributes.new({
      destination: DatadogAPIClient::V2::LogsArchiveDestinationAzure.new({
        container: "container-name",
        integration: DatadogAPIClient::V2::LogsArchiveIntegrationAzure.new({
          client_id: "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa",
          tenant_id: "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa",
        }),
        storage_account: "account-name",
        type: DatadogAPIClient::V2::LogsArchiveDestinationAzureType::AZURE,
      }),
      include_tags: false,
      name: "Nginx Archive",
      query: "source:nginx",
      rehydration_max_scan_size_in_gb: 100,
      rehydration_tags: [
        "team:intake",
        "team:app",
      ],
    }),
    type: "archives",
  }),
})
p api_instance.update_logs_archive("archive_id", body)

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
datadog_api_client-2.28.1 examples/v2/logs-archives/UpdateLogsArchive.rb
datadog_api_client-2.27.1 examples/v2/logs-archives/UpdateLogsArchive.rb
datadog_api_client-2.26.1 examples/v2/logs-archives/UpdateLogsArchive.rb
datadog_api_client-2.26.0 examples/v2/logs-archives/UpdateLogsArchive.rb
datadog_api_client-2.25.0 examples/v2/logs-archives/UpdateLogsArchive.rb
datadog_api_client-2.24.0 examples/v2/logs-archives/UpdateLogsArchive.rb
datadog_api_client-2.22.0 examples/v2/logs-archives/UpdateLogsArchive.rb
datadog_api_client-2.21.0 examples/v2/logs-archives/UpdateLogsArchive.rb
datadog_api_client-2.20.0 examples/v2/logs-archives/UpdateLogsArchive.rb
datadog_api_client-2.19.0 examples/v2/logs-archives/UpdateLogsArchive.rb
datadog_api_client-2.18.0 examples/v2/logs-archives/UpdateLogsArchive.rb
datadog_api_client-2.17.0 examples/v2/logs-archives/UpdateLogsArchive.rb
datadog_api_client-2.16.0 examples/v2/logs-archives/UpdateLogsArchive.rb
datadog_api_client-2.15.0 examples/v2/logs-archives/UpdateLogsArchive.rb
datadog_api_client-2.14.0 examples/v2/logs-archives/UpdateLogsArchive.rb
datadog_api_client-2.13.0 examples/v2/logs-archives/UpdateLogsArchive.rb
datadog_api_client-2.12.0 examples/v2/logs-archives/UpdateLogsArchive.rb
datadog_api_client-2.11.0 examples/v2/logs-archives/UpdateLogsArchive.rb
datadog_api_client-2.10.0 examples/v2/logs-archives/UpdateLogsArchive.rb
datadog_api_client-2.9.0 examples/v2/logs-archives/UpdateLogsArchive.rb