Cluster object regexes

Cluster object regexes

List all cluster object regexes in descending order with backward pagination.

GEThttps://cloud-api.calyptia.com/v1/pipelines/{pipelineID}/cluster_object_regexes
Authorization
Path parameters
pipelineID*string (uuid)
Query parameters
Response

OK

Body
items*array of ClusterObjectRegex (object)
endCursor*nullable string
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/pipelines/{pipelineID}/cluster_object_regexes', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();
Response
{
  "items": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "pipelineID": "123e4567-e89b-12d3-a456-426614174000",
      "regex": "text",
      "description": "text",
      "createdAt": "2024-10-16T08:50:12.277Z",
      "updatedAt": "2024-10-16T08:50:12.277Z",
      "clusterObjects": [
        {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "name": "text",
          "kind": "namespace",
          "createdAt": "2024-10-16T08:50:12.277Z",
          "updatedAt": "2024-10-16T08:50:12.277Z"
        }
      ]
    }
  ],
  "endCursor": "text"
}

Create cluster object regex

Create a new cluster object regex.

POSThttps://cloud-api.calyptia.com/v1/pipelines/{pipelineID}/cluster_object_regexes
Authorization
Path parameters
pipelineID*string (uuid)
Body
regex*string
description*string
Response

Created

Body
id*string (uuid)
createdAt*string (date-time)
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/pipelines/{pipelineID}/cluster_object_regexes', {
    method: 'POST',
    headers: {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "regex": "text",
      "description": "text"
    }),
});
const data = await response.json();
Response
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "createdAt": "2024-10-16T08:50:12.277Z"
}