Harness Infrastructures API

This contains APIs related to Infrastructure Definitions

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /ng/api/infrastructures List infrastructure definitions in an environment · Gets Infrastructure list #
Ask an LLM
“Which infrastructure definitions exist in a given environment?”
“Can I filter an environment's infrastructures by deployment type or search term?”
Tell an agent
List infrastructures in environment {environment}.
Find {deploymentType} infrastructures in {environment} matching {search}.
PUT /ng/api/infrastructures Update an infrastructure definition · Update an Infrastructure by identifier #
Ask an LLM
“Can I change an existing infrastructure definition's YAML or name?”
“How do I edit the cluster or namespace settings of an infrastructure I already have?”
Tell an agent
Update infrastructure {identifier} with this YAML: {yaml}.
Rename existing infrastructure {identifier} to {name}.
POST /ng/api/infrastructures Create an infrastructure in an environment · Create an Infrastructure in an Environment #
Ask an LLM
“How do I define where a service deploys inside an environment?”
“What YAML do I need to add a new infrastructure definition?”
Tell an agent
Create infrastructure {name} in environment {environment} from YAML {yaml}.
Add a new {type} infrastructure definition using {yaml}.
GET /ng/api/infrastructures/{infraIdentifier} Get an infrastructure definition · Gets an Infrastructure by identifier #
Ask an LLM
“What is configured in one infrastructure definition?”
“Can I look up an infrastructure that was deleted?”
Tell an agent
Show infrastructure {infra} in environment {environment}.
Get infrastructure {infra}, including if deleted: {deleted}.
DELETE /ng/api/infrastructures/{infraIdentifier} Delete an infrastructure definition · Delete an Infrastructure by identifier #
Ask an LLM
“How do I remove an infrastructure definition from an environment?”
“Can I force delete an infrastructure that is still referenced?”
Tell an agent destructive · confirm first
Delete infrastructure {infra} from environment {environment}.
Force delete infrastructure {infra}.
POST /ng/api/infrastructures/import Import an infrastructure from Git · Import and Create Infrastructure from Git Repository #
Ask an LLM
“Can I create an infrastructure from a YAML file that already lives in my Git repo?”
“How do I import infrastructure definitions from a branch and file path?”
Tell an agent
Import infrastructure from {file} on branch {branch} of repo {repo} into {environment}.
Create an infrastructure in {environment} from Git file {file} in {repo}.
POST /ng/api/infrastructures/move-config/{infraIdentifier} Move an infrastructure YAML to Git · Move infra YAML from inline to remote #
Ask an LLM
“Can I move an inline infrastructure definition into a remote Git repository?”
“How do I store an infrastructure's YAML in Git on a new branch?”
Tell an agent
Move infrastructure {infra} from inline to remote with move type {moveType}.
Store infrastructure {infra} YAML in repo {repo} at {file} on branch {branch}.
PUT /ng/api/infrastructures/{infraIdentifier}/update-git-metadata Update Git metadata of a remote infrastructure · Update git-metadata in remote infrastructure Entity #
Ask an LLM
“Can I point a remote infrastructure at a different repo or file path?”
“How do I fix the Git connector reference on a remote infrastructure?”
Tell an agent
Update the Git metadata of infrastructure {infra} to repo {repo} and file {file}.
Change the connector of remote infrastructure {infra} to {connector}.

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/harness:harness-infrastructures-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

harness-infrastructures-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Harness Infrastructures API
  version: '1.0'
  description: The Harness Software Delivery Platform uses OpenAPI Specification v3.0.
  contact:
    name: API Support
    email: contact@harness.io
    url: https://harness.io/
  x-logo:
    url: https://mma.prnewswire.com/media/779232/Harnes_logo_horizontal.jpg?p=facebook
    altText: Harness
  termsOfService: https://harness.io/terms-of-use/
servers:
- url: https://app.harness.io
  description: Harness host URL
- url: https://{vanity}
  description: Vanity URL
  variables:
    vanity:
      default: app.harness.io
security:
- x-api-key: []
tags:


# --- truncated at 32 KB (203 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/openapi/harness-infrastructures-api-openapi.yml