aYOUne
← DevOps API

DeploymentActions

Singular: DeploymentAction — Base-URL: https://devops-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)

play_circle Jetzt ausprobieren beta

Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.

Beispiel-Response (aufgezeichnet) Beispiel

Eine echte, zuvor aufgezeichnete GET /:id-Antwort dieses Endpunkts — nicht der Live-Call oben. Sensible Felder sind maskiert.

{
  "payload": {
    "params": {
      "podName": "VITREOUS_IVORY_TAUN WE",
      "reason": "Force restart via DevOps UI"
    },
    "result": {
      "success": false,
      "error": "Deployment undefined not found"
    },
    "_id": "6a77f56c1a5c0ce430a1bffd",
    "action": "delete_pod",
    "status": "failed",
    "triggeredBy": "6045f4d25704710012485569",
    "triggeredAt": "2026-08-09T03:35:08.516Z",
    "resourceName": "VITREOUS_IVORY_TAUN WE",
    "isDraft": true,
    "createdAt": "2026-08-09T03:35:08.516Z",
    "updatedAt": "2026-08-09T03:35:08.540Z",
    "completedAt": "2026-08-09T03:35:08.539Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://devops-api.ayoune.app/deploymentactions/6a77f56c1a5c0ce430a1bffd",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "K8Clusters",
        "title": "MODEL_K8CLUSTER",
        "href": "https://api.ayoune.app/devops/k8clusters",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "devops.k8clusters"
      },
      {
        "rel": "K8Deployments",
        "title": "MODEL_K8DEPLOYMENT",
        "href": "https://api.ayoune.app/devops/k8deployments",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "devops.k8deployments"
      }
    ],
    "debugId": "6a8d0ff224c77f2b28440a4f",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_DEPLOYMENTACTION",
        "href": "https://api.ayoune.app/devops/deploymentactions/6a77f56c1a5c0ce430a1bffd/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_DEPLOYMENTACTION",
        "href": "https://api.ayoune.app/devops/deploymentactions/6a77f56c1a5c0ce430a1bffd",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.24.0",
      "core": "2026.319.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2409",
      "reset": "1787633135",
      "resetDate": "Tue Aug 25 2026"
    },
    "responseTime": 68.603109,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
GET /deploymentactions Liste mit Filtern/Paginierung devops.deploymentactions.view
GET /deploymentactions/:id Einzelner Datensatz devops.deploymentactions.view
POST /deploymentactions Neuen Datensatz erstellen devops.deploymentactions.new
PUT /deploymentactions Datensatz aktualisieren devops.deploymentactions.edit
DELETE /deploymentactions/:id Datensatz löschen devops.deploymentactions.delete

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// Alle abrufen
const list = await ay.devops.deploymentActions.find().limit(10).exec();

// Einzelnen Datensatz
const one = await ay.devops.deploymentActions.findById('OBJECT_ID').exec();

// Erstellen
const created = await ay.devops.deploymentActions.create({ name: 'Foo' });

Weiterführend