Datadog · Arazzo Workflow

Datadog Create a Logs Archive

Version 1.0.0

Create a logs archive backed by an S3 destination then read it back.

1 workflow 1 source API 1 provider
View Spec View on GitHub AnalyticsDashboardsMonitoringPlatformT1VisualizationsArazzoWorkflows

Provider

datadog

Workflows

create-log-archive
Create a logs archive then get it by id.
Creates a logs archive with an S3 destination, then retrieves the archive by id to confirm it persisted with the supplied query and destination.
2 steps inputs: accountId, bucket, name, path, query, roleName outputs: archiveId, destination
1
createArchive
Create a new logs archive that sends matching logs to an S3 bucket via the supplied AWS integration.
2
getArchive
Retrieve the newly created archive by its id to confirm it was stored with the expected query and destination.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Datadog Create a Logs Archive
  summary: Create a logs archive backed by an S3 destination then read it back.
  description: >-
    Provisions a new Datadog logs archive that forwards matching log events to
    an Amazon S3 bucket through an AWS integration, and then retrieves the
    created archive by its identifier to confirm the configuration was stored
    as expected. Every step spells out its request inline so the flow can be
    read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: archiveApi
  url: ../openapi/datadog-archive-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-log-archive
  summary: Create a logs archive then get it by id.
  description: >-
    Creates a logs archive with an S3 destination, then retrieves the archive
    by id to confirm it persisted with the supplied query and destination.
  inputs:
    type: object
    required:
    - name
    - query
    - bucket
    - accountId
    - roleName
    properties:
      name:
        type: string
        description: The display name for the new archive.
      query:
        type: string
        description: The archive query/filter; logs matching this query are archived.
      bucket:
        type: string
        description: The S3 bucket where the archive will be stored.
      path:
        type: string
        description: The path prefix within the S3 bucket.
      accountId:
        type: string
        description: The AWS account ID for the S3 integration.
      roleName:
        type: string
        description: The AWS IAM role name for the S3 integration.
  steps:
  - stepId: createArchive
    description: >-
      Create a new logs archive that sends matching logs to an S3 bucket via
      the supplied AWS integration.
    operationId: CreateLogsArchive
    requestBody:
      contentType: application/json
      payload:
        data:
          type: archives
          attributes:
            name: $inputs.name
            query: $inputs.query
            include_tags: true
            destination:
              type: s3
              bucket: $inputs.bucket
              path: $inputs.path
              integration:
                account_id: $inputs.accountId
                role_name: $inputs.roleName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      archiveId: $response.body#/data/id
      archiveName: $response.body#/data/attributes/name
  - stepId: getArchive
    description: >-
      Retrieve the newly created archive by its id to confirm it was stored
      with the expected query and destination.
    operationId: GetLogsArchive
    parameters:
    - name: archive_id
      in: path
      value: $steps.createArchive.outputs.archiveId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      archiveId: $response.body#/data/id
      destination: $response.body#/data/attributes/destination
  outputs:
    archiveId: $steps.createArchive.outputs.archiveId
    destination: $steps.getArchive.outputs.destination

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/datadog-create-log-archive-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.