at.happyproto.admin.setAutoscalePaused

Pause or resume the autoscaler. Pausing stops new host requests; one under way carries on. Staff only.

Repository @happyproto.at did:plc:mo7vq4jbioxwafy5zkcc3eux namespace authority
Details · procedure
Kindprocedure
Authorityadmin.happyproto.at
Indexed
cid bafyreih7rjlhtgxka3xpmtbjicnkj2iheuzipzuyor6eferomwofqy5tze

Checks

Valid
  • unlimited-string defs.main.input.schema.properties.idempotencyKeyNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Pause or resume the autoscaler. Pausing stops new host requests; one under way carries on. Staff only.",
      "errors": [
        {
          "description": "This endpoint requires an authenticated caller.",
          "name": "AuthRequired"
        },
        {
          "description": "The caller is not HappyProto staff, or the provisioner does not treat them as staff.",
          "name": "Forbidden"
        },
        {
          "description": "The input was malformed, or the provisioner refused it as malformed.",
          "name": "InvalidRequest"
        },
        {
          "description": "No such host request.",
          "name": "NotFound"
        },
        {
          "description": "Passed through from the provisioner.",
          "name": "InvalidSlug"
        },
        {
          "description": "Passed through from the provisioner.",
          "name": "SlugTaken"
        },
        {
          "description": "Passed through from the provisioner.",
          "name": "NotEntitled"
        },
        {
          "description": "Passed through from the provisioner.",
          "name": "InstanceLimit"
        },
        {
          "description": "Passed through from the provisioner.",
          "name": "NoCapacity"
        },
        {
          "description": "Passed through from the provisioner.",
          "name": "OperationInProgress"
        },
        {
          "description": "Only a failed request can be retried.",
          "name": "NotRetryable"
        },
        {
          "description": "A registered or cancelled request cannot be cancelled.",
          "name": "NotCancellable"
        },
        {
          "description": "Another host request is under way.",
          "name": "RequestInFlight"
        },
        {
          "description": "The provisioner has no GitHub App to start workflows with.",
          "name": "ScalerNotConfigured"
        },
        {
          "description": "The request's host already has a host row: retire it, or set it active and leave the request. The message says which.",
          "name": "HostRegistered"
        },
        {
          "description": "confirm is not the request's host name.",
          "name": "ConfirmationMismatch"
        },
        {
          "description": "GitHub would not start the workflow. The request is unchanged.",
          "name": "DispatchFailed"
        },
        {
          "description": "The provisioner is unreachable, not configured, or answered with an error it does not explain to callers.",
          "name": "Upstream"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "idempotencyKey": {
              "description": "A UUID. Repeating a request with the same key replays its answer.",
              "type": "string"
            },
            "paused": {
              "type": "boolean"
            }
          },
          "required": [
            "paused",
            "idempotencyKey"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "autoscale": {
              "ref": "at.happyproto.admin.defs#autoscale",
              "type": "ref"
            }
          },
          "required": [
            "autoscale"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "at.happyproto.admin.setAutoscalePaused",
  "lexicon": 1
}