List fleet

Compares what was written with what is running, one row per service along a single causal line: head, the commit on the branch; built, the image that commit produced; declared, the tag pinned in the universe repository; running, what the cluster serves.

GET /v1/ci/fleet

Addresshttps://api.hanzo.ai/v1/ci/fleet
MethodGET
Operationget_ci_fleet
AuthAuthorization: Bearer $HANZO_API_KEY

Compares what was written with what is running, one row per service along a single causal line: head, the commit on the branch; built, the image that commit produced; declared, the tag pinned in the universe repository; running, what the cluster serves. A service whose four values disagree names the step that broke.

Request

GET /v1/ci/fleet takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200ci.Pipelinesok
defaultproblem-detailsrefused

200 body — 37 fields.

FieldInTypeAlwaysDescription
fetchedAtbodystring (date-time)—
orgsbodystring[]—
servicesbodyci.Pipeline[]—
services[].behindbodyinteger (int64)—Behind counts commits after the one that last produced an image whose own build has FINISHED without producing one, and Since is when the oldest of them landed.
services[].builtbodyci.Artifact—
services[].built.digestbodystring—
services[].built.tagbodystring—
services[].declaredbodyci.Artifact—
services[].declared.digestbodystring—
services[].declared.tagbodystring—
services[].driftbodystring[]—
services[].headbodyci.Tip—
services[].head.atbodystring (date-time)—
services[].head.buildbodyci.Check—
services[].head.build.atbodystring (date-time)—
services[].head.build.jobbodystring—Job is the job that decided State.
services[].head.build.numberbodyinteger (int64)—
services[].head.build.statebodystring—State is success | failure | running | absent.
services[].head.build.testedbodyboolean—Tested reports that the run's tests executed; Verdict reports that the run said anything about tests at all.
services[].head.build.urlbodystring—
services[].head.build.verdictbodyboolean—
services[].head.shabodystring—
services[].head.titlebodystring—
services[].imagebodystring—ghcr.io/hanzoai/cloud
services[].namebodystring—cloud
services[].namespacebodystring—hanzo
services[].orgbodystring—Hanzo Git owner; empty when the repo is unresolved
services[].pinnedAtbodystring (date-time)—
services[].readybodyinteger (int64)—
services[].repobodystring—hanzo-inc/cloud
services[].runningbodyci.Artifact—
services[].running.digestbodystring—
services[].running.tagbodystring—
services[].sincebodystring (date-time)—
services[].wantbodyinteger (int64)—
sourceErrbodystring—
stalebodyboolean—

Failure carries the platform error shape — see Errors.

Examples

hanzo ci fleet
import { Configuration, CiApi } from 'hanzoai';

const api = new CiApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getCiFleet();
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import CiApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = CiApi(client).get_ci_fleet()
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.CiAPI.GetCiFleet(context.Background()).Execute()
if err != nil {
	return err
}
use hanzo_client::apis::{configuration::Configuration, ci_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = ci_api::get_ci_fleet(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.CiApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new CiApi(client).getCiFleet();
curl https://api.hanzo.ai/v1/ci/fleet \
  -H "Authorization: Bearer $HANZO_API_KEY"

Tool ci, op get_ci_fleet — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.

curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "ci",
         "arguments": {
           "op": "get_ci_fleet",
           "input": {}
         }
       }
     }'

Ci API · All Hanzo APIs · Interactive reference

Was this page useful?