---
title: "Run a command or script on nodes"
description: "Every target is checked as the caller first: fleets.commands.run, or fleets.scripts.run on the script and fleets.scripts.runOn, on each node's resource name + /<osUser>. One denied target is 403 for the whole run; a tag selector matching no node is 400 no_targets. The command text and parameter values aren't recorded in Trails."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Fleets API

`POST /v1/organizations/{orgId}/projects/{projectId}/command-runs`

Every target is checked as the caller first: fleets.commands.run, or fleets.scripts.run on the script and fleets.scripts.runOn, on each node's resource name + /<osUser>. One denied target is 403 for the whole run; a tag selector matching no node is 400 no_targets. The command text and parameter values aren't recorded in Trails.

## Authentication

Requires one of the following:

- `apiKey`, http, header `Authorization`
- `oauth`, http, header `Authorization`
- `sessionCookie`, apiKey, in cookie

## Path parameters

- `SendCommand.path.orgId` (string, required) — UUID or prefixed ID (org_…)
- `SendCommand.path.projectId` (string, required) — UUID or prefixed ID (prj_…)

## Header parameters

- `SendCommand.header.Idempotency-Key` (string, optional) — Makes a retry safe: the same key and request get the stored response.
  - pattern `^[\x21-\x7e]{1,200}$`

## Request body

_Required._

- `SendCommand.osUser` (string, required) — An OS account name: one path component, no /, *, : or .
  - pattern `^[a-z_][a-z0-9_-]{0,31}$`
- `SendCommand.targets` (one of, required) — Explicit nodes, or a tag selector in the project, resolved once when the run is created: 1 to 1,000 nodes.
  - one of: `object`, `object`
- `SendCommand.command` (string | null, optional) — A shell string run with /bin/sh -c. Exactly one of command and script.
  - minLength 1; maxLength 65536
- `SendCommand.deliveryTimeoutSeconds` (integer, optional) — How long an offline node's invocation waits before it ends undelivered.
  - min 30; max 172800; default `3600`
- `SendCommand.maxConcurrency` (one of, optional) — Invocations running at once: 1-1,000, or a percentage of the targets (rounded up, at least 1). Default 50.
  - one of: `integer`, `string`
- `SendCommand.maxErrors` (one of, optional) — Failed invocations after which no more start: 0-1,000, or a percentage of the targets. Default 0.
  - one of: `integer`, `string`
- `SendCommand.script` (one of, optional)
  - one of: [RunScript](/fleets-api/schemas/RunScript/), `null`
- `SendCommand.timeoutSeconds` (integer, optional)
  - min 1; max 172800; default `3600`

## Example request

```json
{
  "command": "string",
  "deliveryTimeoutSeconds": 3600,
  "maxConcurrency": 1,
  "maxErrors": 1000,
  "osUser": "string",
  "script": {
    "id": "string",
    "parameters": {
      "property1": "string",
      "property2": "string"
    },
    "version": 1
  },
  "targets": {
    "nodes": [
      "string"
    ]
  },
  "timeoutSeconds": 3600
}
```

## Code samples

### cURL

```curl
curl --request POST \
  --url https://fleets-api.ezghcloud.com/v1/organizations/string/projects/string/command-runs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "command": "string",
  "deliveryTimeoutSeconds": 3600,
  "maxConcurrency": 1,
  "maxErrors": 1000,
  "osUser": "string",
  "script": {
    "id": "string",
    "parameters": {
      "property1": "string",
      "property2": "string"
    },
    "version": 1
  },
  "targets": {
    "nodes": [
      "string"
    ]
  },
  "timeoutSeconds": 3600
}
'
```

### TypeScript

```typescript
const url = 'https://fleets-api.ezghcloud.com/v1/organizations/string/projects/string/command-runs';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    command: 'string',
    deliveryTimeoutSeconds: 3600,
    maxConcurrency: 1,
    maxErrors: 1000,
    osUser: 'string',
    script: {
      id: 'string',
      parameters: {property1: 'string', property2: 'string'},
      version: 1
    },
    targets: {nodes: ['string']},
    timeoutSeconds: 3600
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://fleets-api.ezghcloud.com/v1/organizations/string/projects/string/command-runs"

payload = {
    "command": "string",
    "deliveryTimeoutSeconds": 3600,
    "maxConcurrency": 1,
    "maxErrors": 1000,
    "osUser": "string",
    "script": {
        "id": "string",
        "parameters": {
            "property1": "string",
            "property2": "string"
        },
        "version": 1
    },
    "targets": { "nodes": ["string"] },
    "timeoutSeconds": 3600
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 201

The run.

#### Example

```json
{
  "command": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "deliveryDeadline": "2019-08-24T14:15:22Z",
  "endedAt": "2019-08-24T14:15:22Z",
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "maxConcurrency": 0,
  "maxErrors": 0,
  "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  "osUser": "string",
  "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
  "region": "string",
  "resourceName": "string",
  "script": {
    "id": "string",
    "parameters": {
      "property1": "string",
      "property2": "string"
    },
    "version": 1
  },
  "sentBy": {
    "principalId": "string",
    "type": "string",
    "userName": "string"
  },
  "slug": "string",
  "status": "string",
  "targets": {
    "nodes": [
      "string"
    ]
  },
  "timeoutSeconds": 0
}
```

- `SendCommand.response.201.command` (string | null, required)
- `SendCommand.response.201.createdAt` (string, required)
  - format `date-time`
- `SendCommand.response.201.deliveryDeadline` (string, required)
  - format `date-time`
- `SendCommand.response.201.endedAt` (string | null, required)
  - format `date-time`
- `SendCommand.response.201.id` (string, required)
  - format `uuid`
- `SendCommand.response.201.maxConcurrency` (integer | string, required)
- `SendCommand.response.201.maxErrors` (integer | string, required)
- `SendCommand.response.201.organizationId` (string, required)
  - format `uuid`
- `SendCommand.response.201.osUser` (string, required)
- `SendCommand.response.201.projectId` (string, required)
  - format `uuid`
- `SendCommand.response.201.region` (string, required)
- `SendCommand.response.201.resourceName` (string, required)
- `SendCommand.response.201.script` (one of, required)
  - one of: [RunScript](/fleets-api/schemas/RunScript/), `null`
- `SendCommand.response.201.sentBy` (object, required)
  - `SendCommand.response.201.sentBy.principalId` (string, required)
  - `SendCommand.response.201.sentBy.type` (string, required) — org-api's userIdentity type (User, SsoUser, Bot, ...); clients treat others as unknown.
  - `SendCommand.response.201.sentBy.userName` (string | null, required)
- `SendCommand.response.201.slug` (string, required)
- `SendCommand.response.201.status` (string, required) — pending, running, succeeded, failed or cancelled; clients treat others as unknown.
- `SendCommand.response.201.targets` (one of, required) — Explicit nodes, or a tag selector in the project, resolved once when the run is created: 1 to 1,000 nodes.
  - one of: `object`, `object`
- `SendCommand.response.201.timeoutSeconds` (integer, required)

### 400

invalid_request (with issues), invalid_cursor, or the endpoint's own 400 codes.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `SendCommand.response.400.error` (object, required)
  - `SendCommand.response.400.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `SendCommand.response.400.error.message` (string, required)
    - maxLength 1024
  - `SendCommand.response.400.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `SendCommand.response.400.error.issues.message` (string, required)
    - `SendCommand.response.400.error.issues.path` (string, required)
  - `SendCommand.response.400.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `SendCommand.response.400.error.quota.id` (string, required)
    - `SendCommand.response.400.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `SendCommand.response.400.error.quota.limit` (integer, required)
      - min 0
    - `SendCommand.response.400.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `SendCommand.response.400.error.quota.inFlight` (integer, optional)
      - min 0
    - `SendCommand.response.400.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `SendCommand.response.400.error.quota.region` (string, optional)
    - `SendCommand.response.400.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `SendCommand.response.400.error.quota.scopeResourceName` (string, optional)
    - `SendCommand.response.400.error.quota.used` (integer, optional)
      - min 0
    - `SendCommand.response.400.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 401

unauthenticated: no credential, or one that doesn't check out.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `SendCommand.response.401.error` (object, required)
  - `SendCommand.response.401.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `SendCommand.response.401.error.message` (string, required)
    - maxLength 1024
  - `SendCommand.response.401.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `SendCommand.response.401.error.issues.message` (string, required)
    - `SendCommand.response.401.error.issues.path` (string, required)
  - `SendCommand.response.401.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `SendCommand.response.401.error.quota.id` (string, required)
    - `SendCommand.response.401.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `SendCommand.response.401.error.quota.limit` (integer, required)
      - min 0
    - `SendCommand.response.401.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `SendCommand.response.401.error.quota.inFlight` (integer, optional)
      - min 0
    - `SendCommand.response.401.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `SendCommand.response.401.error.quota.region` (string, optional)
    - `SendCommand.response.401.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `SendCommand.response.401.error.quota.scopeResourceName` (string, optional)
    - `SendCommand.response.401.error.quota.used` (integer, optional)
      - min 0
    - `SendCommand.response.401.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 403

access_denied: the caller's policies don't allow the action; forbidden_origin: a cookie-authenticated write from an origin that isn't allowed; spend_limit_reached.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `SendCommand.response.403.error` (object, required)
  - `SendCommand.response.403.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `SendCommand.response.403.error.message` (string, required)
    - maxLength 1024
  - `SendCommand.response.403.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `SendCommand.response.403.error.issues.message` (string, required)
    - `SendCommand.response.403.error.issues.path` (string, required)
  - `SendCommand.response.403.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `SendCommand.response.403.error.quota.id` (string, required)
    - `SendCommand.response.403.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `SendCommand.response.403.error.quota.limit` (integer, required)
      - min 0
    - `SendCommand.response.403.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `SendCommand.response.403.error.quota.inFlight` (integer, optional)
      - min 0
    - `SendCommand.response.403.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `SendCommand.response.403.error.quota.region` (string, optional)
    - `SendCommand.response.403.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `SendCommand.response.403.error.quota.scopeResourceName` (string, optional)
    - `SendCommand.response.403.error.quota.used` (integer, optional)
      - min 0
    - `SendCommand.response.403.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 404

not_found: unknown, malformed, or in an organization the caller isn't in.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `SendCommand.response.404.error` (object, required)
  - `SendCommand.response.404.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `SendCommand.response.404.error.message` (string, required)
    - maxLength 1024
  - `SendCommand.response.404.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `SendCommand.response.404.error.issues.message` (string, required)
    - `SendCommand.response.404.error.issues.path` (string, required)
  - `SendCommand.response.404.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `SendCommand.response.404.error.quota.id` (string, required)
    - `SendCommand.response.404.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `SendCommand.response.404.error.quota.limit` (integer, required)
      - min 0
    - `SendCommand.response.404.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `SendCommand.response.404.error.quota.inFlight` (integer, optional)
      - min 0
    - `SendCommand.response.404.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `SendCommand.response.404.error.quota.region` (string, optional)
    - `SendCommand.response.404.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `SendCommand.response.404.error.quota.scopeResourceName` (string, optional)
    - `SendCommand.response.404.error.quota.used` (integer, optional)
      - min 0
    - `SendCommand.response.404.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 409

quota_exceeded (an allocation quota, with quota), idempotency_conflict, idempotency_in_progress (with Retry-After), organization_deletion_pending, operation_in_progress, or the endpoint's own 409 codes.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `SendCommand.response.409.error` (object, required)
  - `SendCommand.response.409.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `SendCommand.response.409.error.message` (string, required)
    - maxLength 1024
  - `SendCommand.response.409.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `SendCommand.response.409.error.issues.message` (string, required)
    - `SendCommand.response.409.error.issues.path` (string, required)
  - `SendCommand.response.409.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `SendCommand.response.409.error.quota.id` (string, required)
    - `SendCommand.response.409.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `SendCommand.response.409.error.quota.limit` (integer, required)
      - min 0
    - `SendCommand.response.409.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `SendCommand.response.409.error.quota.inFlight` (integer, optional)
      - min 0
    - `SendCommand.response.409.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `SendCommand.response.409.error.quota.region` (string, optional)
    - `SendCommand.response.409.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `SendCommand.response.409.error.quota.scopeResourceName` (string, optional)
    - `SendCommand.response.409.error.quota.used` (integer, optional)
      - min 0
    - `SendCommand.response.409.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 413

payload_too_large: the body is over the endpoint's limit (1 MiB unless it says otherwise).

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `SendCommand.response.413.error` (object, required)
  - `SendCommand.response.413.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `SendCommand.response.413.error.message` (string, required)
    - maxLength 1024
  - `SendCommand.response.413.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `SendCommand.response.413.error.issues.message` (string, required)
    - `SendCommand.response.413.error.issues.path` (string, required)
  - `SendCommand.response.413.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `SendCommand.response.413.error.quota.id` (string, required)
    - `SendCommand.response.413.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `SendCommand.response.413.error.quota.limit` (integer, required)
      - min 0
    - `SendCommand.response.413.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `SendCommand.response.413.error.quota.inFlight` (integer, optional)
      - min 0
    - `SendCommand.response.413.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `SendCommand.response.413.error.quota.region` (string, optional)
    - `SendCommand.response.413.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `SendCommand.response.413.error.quota.scopeResourceName` (string, optional)
    - `SendCommand.response.413.error.quota.used` (integer, optional)
      - min 0
    - `SendCommand.response.413.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 429

too_many_requests, with Retry-After; or quota_exceeded (a rate, usage or concurrency quota, with quota), never with Retry-After.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `SendCommand.response.429.error` (object, required)
  - `SendCommand.response.429.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `SendCommand.response.429.error.message` (string, required)
    - maxLength 1024
  - `SendCommand.response.429.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `SendCommand.response.429.error.issues.message` (string, required)
    - `SendCommand.response.429.error.issues.path` (string, required)
  - `SendCommand.response.429.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `SendCommand.response.429.error.quota.id` (string, required)
    - `SendCommand.response.429.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `SendCommand.response.429.error.quota.limit` (integer, required)
      - min 0
    - `SendCommand.response.429.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `SendCommand.response.429.error.quota.inFlight` (integer, optional)
      - min 0
    - `SendCommand.response.429.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `SendCommand.response.429.error.quota.region` (string, optional)
    - `SendCommand.response.429.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `SendCommand.response.429.error.quota.scopeResourceName` (string, optional)
    - `SendCommand.response.429.error.quota.used` (integer, optional)
      - min 0
    - `SendCommand.response.429.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 500

internal_error: a bug; the details are in the logs, under the request ID.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `SendCommand.response.500.error` (object, required)
  - `SendCommand.response.500.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `SendCommand.response.500.error.message` (string, required)
    - maxLength 1024
  - `SendCommand.response.500.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `SendCommand.response.500.error.issues.message` (string, required)
    - `SendCommand.response.500.error.issues.path` (string, required)
  - `SendCommand.response.500.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `SendCommand.response.500.error.quota.id` (string, required)
    - `SendCommand.response.500.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `SendCommand.response.500.error.quota.limit` (integer, required)
      - min 0
    - `SendCommand.response.500.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `SendCommand.response.500.error.quota.inFlight` (integer, optional)
      - min 0
    - `SendCommand.response.500.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `SendCommand.response.500.error.quota.region` (string, optional)
    - `SendCommand.response.500.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `SendCommand.response.500.error.quota.scopeResourceName` (string, optional)
    - `SendCommand.response.500.error.quota.used` (integer, optional)
      - min 0
    - `SendCommand.response.500.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 503

unavailable: a dependency the request needs is down. Retry after Retry-After.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `SendCommand.response.503.error` (object, required)
  - `SendCommand.response.503.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `SendCommand.response.503.error.message` (string, required)
    - maxLength 1024
  - `SendCommand.response.503.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `SendCommand.response.503.error.issues.message` (string, required)
    - `SendCommand.response.503.error.issues.path` (string, required)
  - `SendCommand.response.503.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `SendCommand.response.503.error.quota.id` (string, required)
    - `SendCommand.response.503.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `SendCommand.response.503.error.quota.limit` (integer, required)
      - min 0
    - `SendCommand.response.503.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `SendCommand.response.503.error.quota.inFlight` (integer, optional)
      - min 0
    - `SendCommand.response.503.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `SendCommand.response.503.error.quota.region` (string, optional)
    - `SendCommand.response.503.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `SendCommand.response.503.error.quota.scopeResourceName` (string, optional)
    - `SendCommand.response.503.error.quota.used` (integer, optional)
      - min 0
    - `SendCommand.response.503.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.


Source: https://docs.ezghcloud.com/fleets-api/SendCommand/index.md
