Harness AutoStopping Rules API

This contains APIs to create and manage AutoStopping Rules for your cloud resources.

Operations 13

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 /gateway/lw/api/accounts/{account_id}/autostopping/rules List AutoStopping rules · List AutoStopping Rules #
Ask an LLM
“Which AutoStopping rules do I have set up to shut down idle cloud resources?”
“Can I list only the rules running in dry-run mode?”
Tell an agent
List the AutoStopping rules in account {account}.
Show dry-run AutoStopping rules in account {account}.
POST /gateway/lw/api/accounts/{account_id}/autostopping/rules Create an AutoStopping rule · Create an AutoStopping Rule #
Ask an LLM
“How do I create a rule that stops idle cloud VMs automatically?”
“Can a new AutoStopping rule be applied immediately and depend on other rules?”
Tell an agent
Create an AutoStopping rule in account {account} for service {service}.
Add a new AutoStopping rule in {account} with dependencies {deps} and apply it now.
GET /gateway/lw/api/accounts/{account_id}/autostopping/rules/{rule_id} Get an AutoStopping rule's configuration · Return AutoStopping Rule details #
Ask an LLM
“What idle time and resources are configured on a particular AutoStopping rule?”
“Can I see the full setup of one AutoStopping rule?”
Tell an agent
Get AutoStopping rule {rule} in account {account}.
Show the configuration of AutoStopping rule {rule}.
DELETE /gateway/lw/api/accounts/{account_id}/autostopping/rules/{rule_id} Delete an AutoStopping rule · Delete an AutoStopping Rule #
Ask an LLM
“How do I permanently remove an AutoStopping rule?”
“Can a deleted AutoStopping rule be recovered afterwards?”
Tell an agent destructive · confirm first
Delete AutoStopping rule {rule} from account {account}.
Permanently remove AutoStopping rule {rule}.
GET /gateway/lw/api/accounts/{account_id}/autostopping/rules/{rule_id}/health Check an AutoStopping rule's health · Return health status of an AutoStopping Rule #
Ask an LLM
“Is my AutoStopping rule healthy and operating right now?”
“What is the current operational status of an AutoStopping rule?”
Tell an agent
Check the health of AutoStopping rule {rule} in account {account}.
Report whether AutoStopping rule {rule} is healthy.
GET /gateway/lw/api/accounts/{account_id}/autostopping/rules/{rule_id}/savings Get daily savings from one AutoStopping rule · Return savings details for an AutoStopping Rule #
Ask an LLM
“How much money has one AutoStopping rule saved each day?”
“What were the savings from a specific rule over last month?”
Tell an agent
Show daily savings for AutoStopping rule {rule} in account {account}.
Get savings for rule {rule} from {from} to {to}.
GET /gateway/lw/api/accounts/{account_id}/autostopping/rules/{rule_id}/resources List resources managed by an AutoStopping rule · List all the resources for an AutoStopping Rule #
Ask an LLM
“Which cloud resources does this AutoStopping rule control?”
“Can I see a rule's managed instances in one region of a cloud account?”
Tell an agent
List resources for AutoStopping rule {rule} in cloud account {cloud_account} region {region}.
Show what AutoStopping rule {rule} in account {account} manages in {region}.
GET /gateway/lw/api/accounts/{account_id}/autostopping/rules/{rule_id}/diagnostics Run diagnostics on an AutoStopping rule · Return diagnostics result of an AutoStopping Rule #
Ask an LLM
“Why isn't my AutoStopping rule stopping resources as expected?”
“Can I get diagnostic results to troubleshoot an AutoStopping rule?”
Tell an agent
Get diagnostics for AutoStopping rule {rule} in account {account}.
Troubleshoot AutoStopping rule {rule} with its diagnostics.
POST /gateway/lw/api/accounts/{account_id}/autostopping/rules/{rule_id}/warmup Start resources behind an AutoStopping rule · Warm up an AutoStopping Rule #
Ask an LLM
“How do I bring idle resources back online immediately without waiting for traffic?”
“Can I warm up a rule's resources and set a custom idle time?”
Tell an agent
Warm up AutoStopping rule {rule} in account {account}.
Start the resources of rule {rule} with an idle time of {minutes} minutes.
POST /gateway/lw/api/accounts/{account_id}/autostopping/rules/{rule_id}/cooldown Stop resources behind an AutoStopping rule now · Cool down an AutoStopping Rule #
Ask an LLM
“How do I shut down a rule's resources right away to save cost?”
“Can I force a cool down on an AutoStopping rule?”
Tell an agent
Cool down AutoStopping rule {rule} in account {account}.
Force-stop the resources managed by rule {rule} immediately.
GET /gateway/lw/api/accounts/{account_id}/autostopping/rules/{rule_id}/cooldown_meta Get cool down status of an AutoStopping rule · Return metadata of cool down of an AutoStopping Rule #
Ask an LLM
“What is the cool down configuration and status of this AutoStopping rule?”
“When did an AutoStopping rule last cool down its resources?”
Tell an agent
Get cool down metadata for AutoStopping rule {rule} in account {account}.
Show the cool down status of rule {rule}.
GET /gateway/lw/api/accounts/{account_id}/autostopping/rules/savings/cumulative Get total savings across AutoStopping rules · Return cumulative savings for all the AutoStopping Rules #
Ask an LLM
“How much have all my AutoStopping rules saved in total?”
“What are the cumulative savings from AutoStopping for the account?”
Tell an agent
Show cumulative AutoStopping savings for account {account}.
Total up the savings from every AutoStopping rule in {account}.
PUT /gateway/lw/api/accounts/{account_id}/autostopping/rules/{rule_id}/toggle_state Enable or disable an AutoStopping rule · Disable/Enable an Autostopping Rule #
Ask an LLM
“How do I temporarily turn off an AutoStopping rule without deleting it?”
“Can I re-enable an AutoStopping rule I disabled?”
Tell an agent
Set disable to {disable} on AutoStopping rule {rule} in account {account}.
Disable AutoStopping rule {rule} in {account}.

Documentation

Specifications

Schemas & Data

Other Resources

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-autostopping-rules-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-autostopping-rules-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Harness AutoStopping Rules 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 (41 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/openapi/harness-autostopping-rules-api-openapi.yml