Chef · Arazzo Workflow

Chef Register a Node on the Infra Server

Version 1.0.0

Check whether a node already exists, create it if it does not, and read it back.

1 workflow 1 source API 1 provider
View Spec View on GitHub Application DeliveryAutomationComplianceConfiguration ManagementDevOpsDevSecOpsHabitatInfrastructure as CodeInSpecArazzoWorkflows

Provider

chef

Workflows

register-node
Idempotently register a node with the Chef Infra Server.
Lists the existing nodes, creates the node object when the name is not already taken, and reads the created node back to verify its run list.
3 steps inputs: chefEnvironment, nodeName, normalAttributes, runList outputs: chefEnvironment, nodeName, runList
1
listExistingNodes
List the organization's nodes so the workflow can tell a new registration from a node that is already under management.
2
createNodeObject
Create the node object with its environment, run list, and normal attributes. The Infra Server rejects a duplicate node name with a 409, which keeps the registration idempotent.
3
readBackNode
Read the node back by name to confirm the Infra Server persisted the environment and run list exactly as they were sent.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Chef Register a Node on the Infra Server
  summary: Check whether a node already exists, create it if it does not, and read it back.
  description: >-
    The entry point for every Chef Infra Server integration. The workflow lists
    the organization's nodes to detect an existing registration, branches to
    create the node object only when it is genuinely new, and then reads the
    node back to confirm the run list and environment landed as sent. The
    server and organization are carried in the Infra Server base URL
    (https://{server}/organizations/{org}), and every request is signed with
    Chef signed-header authentication using the client RSA key. Each 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: nodesApi
  url: ../openapi/chef-nodes-api-openapi.yml
  type: openapi
workflows:
- workflowId: register-node
  summary: Idempotently register a node with the Chef Infra Server.
  description: >-
    Lists the existing nodes, creates the node object when the name is not
    already taken, and reads the created node back to verify its run list.
  inputs:
    type: object
    required:
    - nodeName
    properties:
      nodeName:
        type: string
        description: The unique node name to register (e.g. web-01.example.com).
      chefEnvironment:
        type: string
        description: The Chef environment to place the node in (e.g. production).
      runList:
        type: array
        description: The ordered run list for the node (e.g. ["role[base]", "recipe[nginx]"]).
        items:
          type: string
      normalAttributes:
        type: object
        description: Normal-precedence attributes to set on the node object.
  steps:
  - stepId: listExistingNodes
    description: >-
      List the organization's nodes so the workflow can tell a new registration
      from a node that is already under management.
    operationId: listNodes
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      nodes: $response.body
    onSuccess:
    - name: nodeMissing
      type: goto
      stepId: createNodeObject
      criteria:
      - context: $response.body
        condition: $[?(@property == '$inputs.nodeName')] empty true
        type: jsonpath
  - stepId: createNodeObject
    description: >-
      Create the node object with its environment, run list, and normal
      attributes. The Infra Server rejects a duplicate node name with a 409,
      which keeps the registration idempotent.
    operationId: createNode
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.nodeName
        chef_type: node
        json_class: Chef::Node
        chef_environment: $inputs.chefEnvironment
        run_list: $inputs.runList
        normal: $inputs.normalAttributes
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      nodeUri: $response.body#/uri
  - stepId: readBackNode
    description: >-
      Read the node back by name to confirm the Infra Server persisted the
      environment and run list exactly as they were sent.
    operationId: getNode
    parameters:
    - name: nodeName
      in: path
      value: $inputs.nodeName
    successCriteria:
    - condition: $statusCode == 200
    - context: $response.body
      condition: $.name == '$inputs.nodeName'
      type: jsonpath
    outputs:
      nodeName: $response.body#/name
      chefEnvironment: $response.body#/chef_environment
      runList: $response.body#/run_list
  outputs:
    nodeName: $steps.readBackNode.outputs.nodeName
    chefEnvironment: $steps.readBackNode.outputs.chefEnvironment
    runList: $steps.readBackNode.outputs.runList

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/chef-node-registration-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.