Files
autoglue/sdk/ts/docs/ClustersApi.md
2025-12-05 12:17:36 +00:00

55 KiB

ClustersApi

All URIs are relative to https://autoglue.glueopshosted.com/api/v1

Method HTTP request Description
attachAppsLoadBalancer POST /clusters/{clusterID}/apps-load-balancer Attach an apps load balancer to a cluster
attachBastionServer POST /clusters/{clusterID}/bastion Attach a bastion server to a cluster
attachCaptainDomain POST /clusters/{clusterID}/captain-domain Attach a captain domain to a cluster
attachControlPlaneRecordSet POST /clusters/{clusterID}/control-plane-record-set Attach a control plane record set to a cluster
attachGlueOpsLoadBalancer POST /clusters/{clusterID}/glueops-load-balancer Attach a GlueOps/control-plane load balancer to a cluster
attachNodePool POST /clusters/{clusterID}/node-pools Attach a node pool to a cluster
clearClusterKubeconfig DELETE /clusters/{clusterID}/kubeconfig Clear the kubeconfig for a cluster
createCluster POST /clusters Create cluster (org scoped)
deleteCluster DELETE /clusters/{clusterID} Delete a cluster (org scoped)
detachAppsLoadBalancer DELETE /clusters/{clusterID}/apps-load-balancer Detach the apps load balancer from a cluster
detachBastionServer DELETE /clusters/{clusterID}/bastion Detach the bastion server from a cluster
detachCaptainDomain DELETE /clusters/{clusterID}/captain-domain Detach the captain domain from a cluster
detachControlPlaneRecordSet DELETE /clusters/{clusterID}/control-plane-record-set Detach the control plane record set from a cluster
detachGlueOpsLoadBalancer DELETE /clusters/{clusterID}/glueops-load-balancer Detach the GlueOps/control-plane load balancer from a cluster
detachNodePool DELETE /clusters/{clusterID}/node-pools/{nodePoolID} Detach a node pool from a cluster
getCluster GET /clusters/{clusterID} Get a single cluster by ID (org scoped)
listClusters GET /clusters List clusters (org scoped)
setClusterKubeconfig POST /clusters/{clusterID}/kubeconfig Set (or replace) the kubeconfig for a cluster
updateCluster PATCH /clusters/{clusterID} Update basic cluster details (org scoped)

attachAppsLoadBalancer

DtoClusterResponse attachAppsLoadBalancer(clusterID, dtoAttachLoadBalancerRequest, xOrgID)

Attach an apps load balancer to a cluster

Sets apps_load_balancer_id on the cluster.

Example

import {
  Configuration,
  ClustersApi,
} from '@glueops/autoglue-sdk-go';
import type { AttachAppsLoadBalancerRequest } from '@glueops/autoglue-sdk-go';

async function example() {
  console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
  const config = new Configuration({
    // To configure API key authorization: OrgKeyAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: OrgSecretAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: BearerAuth
    apiKey: "YOUR API KEY",
  });
  const api = new ClustersApi(config);

  const body = {
    // string | Cluster ID
    clusterID: clusterID_example,
    // DtoAttachLoadBalancerRequest | payload
    dtoAttachLoadBalancerRequest: ...,
    // string | Organization UUID (optional)
    xOrgID: xOrgID_example,
  } satisfies AttachAppsLoadBalancerRequest;

  try {
    const data = await api.attachAppsLoadBalancer(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
clusterID string Cluster ID [Defaults to undefined]
dtoAttachLoadBalancerRequest DtoAttachLoadBalancerRequest payload
xOrgID string Organization UUID [Optional] [Defaults to undefined]

Return type

DtoClusterResponse

Authorization

OrgKeyAuth, OrgSecretAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 bad request -
401 Unauthorized -
403 organization required -
404 cluster or load balancer not found -
500 db error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

attachBastionServer

DtoClusterResponse attachBastionServer(clusterID, dtoAttachBastionRequest, xOrgID)

Attach a bastion server to a cluster

Sets bastion_server_id on the cluster.

Example

import {
  Configuration,
  ClustersApi,
} from '@glueops/autoglue-sdk-go';
import type { AttachBastionServerRequest } from '@glueops/autoglue-sdk-go';

async function example() {
  console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
  const config = new Configuration({
    // To configure API key authorization: OrgKeyAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: OrgSecretAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: BearerAuth
    apiKey: "YOUR API KEY",
  });
  const api = new ClustersApi(config);

  const body = {
    // string | Cluster ID
    clusterID: clusterID_example,
    // DtoAttachBastionRequest | payload
    dtoAttachBastionRequest: ...,
    // string | Organization UUID (optional)
    xOrgID: xOrgID_example,
  } satisfies AttachBastionServerRequest;

  try {
    const data = await api.attachBastionServer(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
clusterID string Cluster ID [Defaults to undefined]
dtoAttachBastionRequest DtoAttachBastionRequest payload
xOrgID string Organization UUID [Optional] [Defaults to undefined]

Return type

DtoClusterResponse

Authorization

OrgKeyAuth, OrgSecretAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 bad request -
401 Unauthorized -
403 organization required -
404 cluster or server not found -
500 db error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

attachCaptainDomain

DtoClusterResponse attachCaptainDomain(clusterID, dtoAttachCaptainDomainRequest, xOrgID)

Attach a captain domain to a cluster

Sets captain_domain_id on the cluster. Validation of shape happens asynchronously.

Example

import {
  Configuration,
  ClustersApi,
} from '@glueops/autoglue-sdk-go';
import type { AttachCaptainDomainRequest } from '@glueops/autoglue-sdk-go';

async function example() {
  console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
  const config = new Configuration({
    // To configure API key authorization: OrgKeyAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: OrgSecretAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: BearerAuth
    apiKey: "YOUR API KEY",
  });
  const api = new ClustersApi(config);

  const body = {
    // string | Cluster ID
    clusterID: clusterID_example,
    // DtoAttachCaptainDomainRequest | payload
    dtoAttachCaptainDomainRequest: ...,
    // string | Organization UUID (optional)
    xOrgID: xOrgID_example,
  } satisfies AttachCaptainDomainRequest;

  try {
    const data = await api.attachCaptainDomain(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
clusterID string Cluster ID [Defaults to undefined]
dtoAttachCaptainDomainRequest DtoAttachCaptainDomainRequest payload
xOrgID string Organization UUID [Optional] [Defaults to undefined]

Return type

DtoClusterResponse

Authorization

OrgKeyAuth, OrgSecretAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 bad request -
401 Unauthorized -
403 organization required -
404 cluster or domain not found -
500 db error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

attachControlPlaneRecordSet

DtoClusterResponse attachControlPlaneRecordSet(clusterID, dtoAttachRecordSetRequest, xOrgID)

Attach a control plane record set to a cluster

Sets control_plane_record_set_id on the cluster.

Example

import {
  Configuration,
  ClustersApi,
} from '@glueops/autoglue-sdk-go';
import type { AttachControlPlaneRecordSetRequest } from '@glueops/autoglue-sdk-go';

async function example() {
  console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
  const config = new Configuration({
    // To configure API key authorization: OrgKeyAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: OrgSecretAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: BearerAuth
    apiKey: "YOUR API KEY",
  });
  const api = new ClustersApi(config);

  const body = {
    // string | Cluster ID
    clusterID: clusterID_example,
    // DtoAttachRecordSetRequest | payload
    dtoAttachRecordSetRequest: ...,
    // string | Organization UUID (optional)
    xOrgID: xOrgID_example,
  } satisfies AttachControlPlaneRecordSetRequest;

  try {
    const data = await api.attachControlPlaneRecordSet(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
clusterID string Cluster ID [Defaults to undefined]
dtoAttachRecordSetRequest DtoAttachRecordSetRequest payload
xOrgID string Organization UUID [Optional] [Defaults to undefined]

Return type

DtoClusterResponse

Authorization

OrgKeyAuth, OrgSecretAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 bad request -
401 Unauthorized -
403 organization required -
404 cluster or record set not found -
500 db error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

attachGlueOpsLoadBalancer

DtoClusterResponse attachGlueOpsLoadBalancer(clusterID, dtoAttachLoadBalancerRequest, xOrgID)

Attach a GlueOps/control-plane load balancer to a cluster

Sets glueops_load_balancer_id on the cluster.

Example

import {
  Configuration,
  ClustersApi,
} from '@glueops/autoglue-sdk-go';
import type { AttachGlueOpsLoadBalancerRequest } from '@glueops/autoglue-sdk-go';

async function example() {
  console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
  const config = new Configuration({
    // To configure API key authorization: OrgKeyAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: OrgSecretAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: BearerAuth
    apiKey: "YOUR API KEY",
  });
  const api = new ClustersApi(config);

  const body = {
    // string | Cluster ID
    clusterID: clusterID_example,
    // DtoAttachLoadBalancerRequest | payload
    dtoAttachLoadBalancerRequest: ...,
    // string | Organization UUID (optional)
    xOrgID: xOrgID_example,
  } satisfies AttachGlueOpsLoadBalancerRequest;

  try {
    const data = await api.attachGlueOpsLoadBalancer(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
clusterID string Cluster ID [Defaults to undefined]
dtoAttachLoadBalancerRequest DtoAttachLoadBalancerRequest payload
xOrgID string Organization UUID [Optional] [Defaults to undefined]

Return type

DtoClusterResponse

Authorization

OrgKeyAuth, OrgSecretAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 bad request -
401 Unauthorized -
403 organization required -
404 cluster or load balancer not found -
500 db error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

attachNodePool

DtoClusterResponse attachNodePool(clusterID, dtoAttachNodePoolRequest, xOrgID)

Attach a node pool to a cluster

Adds an entry in the cluster_node_pools join table.

Example

import {
  Configuration,
  ClustersApi,
} from '@glueops/autoglue-sdk-go';
import type { AttachNodePoolRequest } from '@glueops/autoglue-sdk-go';

async function example() {
  console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
  const config = new Configuration({
    // To configure API key authorization: OrgKeyAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: OrgSecretAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: BearerAuth
    apiKey: "YOUR API KEY",
  });
  const api = new ClustersApi(config);

  const body = {
    // string | Cluster ID
    clusterID: clusterID_example,
    // DtoAttachNodePoolRequest | payload
    dtoAttachNodePoolRequest: ...,
    // string | Organization UUID (optional)
    xOrgID: xOrgID_example,
  } satisfies AttachNodePoolRequest;

  try {
    const data = await api.attachNodePool(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
clusterID string Cluster ID [Defaults to undefined]
dtoAttachNodePoolRequest DtoAttachNodePoolRequest payload
xOrgID string Organization UUID [Optional] [Defaults to undefined]

Return type

DtoClusterResponse

Authorization

OrgKeyAuth, OrgSecretAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 bad request -
401 Unauthorized -
403 organization required -
404 cluster or node pool not found -
500 db error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

clearClusterKubeconfig

DtoClusterResponse clearClusterKubeconfig(clusterID, xOrgID)

Clear the kubeconfig for a cluster

Removes the encrypted kubeconfig, IV, and tag from the cluster record.

Example

import { Configuration, ClustersApi } from "@glueops/autoglue-sdk-go";
import type { ClearClusterKubeconfigRequest } from "@glueops/autoglue-sdk-go";

async function example() {
  console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
  const config = new Configuration({
    // To configure API key authorization: OrgKeyAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: OrgSecretAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: BearerAuth
    apiKey: "YOUR API KEY",
  });
  const api = new ClustersApi(config);

  const body = {
    // string | Cluster ID
    clusterID: clusterID_example,
    // string | Organization UUID (optional)
    xOrgID: xOrgID_example,
  } satisfies ClearClusterKubeconfigRequest;

  try {
    const data = await api.clearClusterKubeconfig(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
clusterID string Cluster ID [Defaults to undefined]
xOrgID string Organization UUID [Optional] [Defaults to undefined]

Return type

DtoClusterResponse

Authorization

OrgKeyAuth, OrgSecretAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 bad request -
401 Unauthorized -
403 organization required -
404 cluster not found -
500 db error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

createCluster

DtoClusterResponse createCluster(dtoCreateClusterRequest, xOrgID)

Create cluster (org scoped)

Creates a cluster. Status is managed by the system and starts as `pre_pending` for validation.

Example

import {
  Configuration,
  ClustersApi,
} from '@glueops/autoglue-sdk-go';
import type { CreateClusterRequest } from '@glueops/autoglue-sdk-go';

async function example() {
  console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
  const config = new Configuration({
    // To configure API key authorization: OrgKeyAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: OrgSecretAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: BearerAuth
    apiKey: "YOUR API KEY",
  });
  const api = new ClustersApi(config);

  const body = {
    // DtoCreateClusterRequest | payload
    dtoCreateClusterRequest: ...,
    // string | Organization UUID (optional)
    xOrgID: xOrgID_example,
  } satisfies CreateClusterRequest;

  try {
    const data = await api.createCluster(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
dtoCreateClusterRequest DtoCreateClusterRequest payload
xOrgID string Organization UUID [Optional] [Defaults to undefined]

Return type

DtoClusterResponse

Authorization

OrgKeyAuth, OrgSecretAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
201 Created -
400 invalid json -
401 Unauthorized -
403 organization required -
500 create failed -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

deleteCluster

string deleteCluster(clusterID, xOrgID)

Delete a cluster (org scoped)

Deletes the cluster. Related resources are cleaned up via DB constraints (e.g. CASCADE).

Example

import { Configuration, ClustersApi } from "@glueops/autoglue-sdk-go";
import type { DeleteClusterRequest } from "@glueops/autoglue-sdk-go";

async function example() {
  console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
  const config = new Configuration({
    // To configure API key authorization: OrgKeyAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: OrgSecretAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: BearerAuth
    apiKey: "YOUR API KEY",
  });
  const api = new ClustersApi(config);

  const body = {
    // string | Cluster ID
    clusterID: clusterID_example,
    // string | Organization UUID (optional)
    xOrgID: xOrgID_example,
  } satisfies DeleteClusterRequest;

  try {
    const data = await api.deleteCluster(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
clusterID string Cluster ID [Defaults to undefined]
xOrgID string Organization UUID [Optional] [Defaults to undefined]

Return type

string

Authorization

OrgKeyAuth, OrgSecretAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
204 deleted -
400 bad request -
401 Unauthorized -
403 organization required -
404 cluster not found -
500 db error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

detachAppsLoadBalancer

DtoClusterResponse detachAppsLoadBalancer(clusterID, xOrgID)

Detach the apps load balancer from a cluster

Clears apps_load_balancer_id on the cluster.

Example

import { Configuration, ClustersApi } from "@glueops/autoglue-sdk-go";
import type { DetachAppsLoadBalancerRequest } from "@glueops/autoglue-sdk-go";

async function example() {
  console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
  const config = new Configuration({
    // To configure API key authorization: OrgKeyAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: OrgSecretAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: BearerAuth
    apiKey: "YOUR API KEY",
  });
  const api = new ClustersApi(config);

  const body = {
    // string | Cluster ID
    clusterID: clusterID_example,
    // string | Organization UUID (optional)
    xOrgID: xOrgID_example,
  } satisfies DetachAppsLoadBalancerRequest;

  try {
    const data = await api.detachAppsLoadBalancer(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
clusterID string Cluster ID [Defaults to undefined]
xOrgID string Organization UUID [Optional] [Defaults to undefined]

Return type

DtoClusterResponse

Authorization

OrgKeyAuth, OrgSecretAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 bad request -
401 Unauthorized -
403 organization required -
404 cluster not found -
500 db error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

detachBastionServer

DtoClusterResponse detachBastionServer(clusterID, xOrgID)

Detach the bastion server from a cluster

Clears bastion_server_id on the cluster.

Example

import { Configuration, ClustersApi } from "@glueops/autoglue-sdk-go";
import type { DetachBastionServerRequest } from "@glueops/autoglue-sdk-go";

async function example() {
  console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
  const config = new Configuration({
    // To configure API key authorization: OrgKeyAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: OrgSecretAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: BearerAuth
    apiKey: "YOUR API KEY",
  });
  const api = new ClustersApi(config);

  const body = {
    // string | Cluster ID
    clusterID: clusterID_example,
    // string | Organization UUID (optional)
    xOrgID: xOrgID_example,
  } satisfies DetachBastionServerRequest;

  try {
    const data = await api.detachBastionServer(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
clusterID string Cluster ID [Defaults to undefined]
xOrgID string Organization UUID [Optional] [Defaults to undefined]

Return type

DtoClusterResponse

Authorization

OrgKeyAuth, OrgSecretAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 bad request -
401 Unauthorized -
403 organization required -
404 cluster not found -
500 db error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

detachCaptainDomain

DtoClusterResponse detachCaptainDomain(clusterID, xOrgID)

Detach the captain domain from a cluster

Clears captain_domain_id on the cluster. This will likely cause the cluster to become incomplete.

Example

import { Configuration, ClustersApi } from "@glueops/autoglue-sdk-go";
import type { DetachCaptainDomainRequest } from "@glueops/autoglue-sdk-go";

async function example() {
  console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
  const config = new Configuration({
    // To configure API key authorization: OrgKeyAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: OrgSecretAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: BearerAuth
    apiKey: "YOUR API KEY",
  });
  const api = new ClustersApi(config);

  const body = {
    // string | Cluster ID
    clusterID: clusterID_example,
    // string | Organization UUID (optional)
    xOrgID: xOrgID_example,
  } satisfies DetachCaptainDomainRequest;

  try {
    const data = await api.detachCaptainDomain(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
clusterID string Cluster ID [Defaults to undefined]
xOrgID string Organization UUID [Optional] [Defaults to undefined]

Return type

DtoClusterResponse

Authorization

OrgKeyAuth, OrgSecretAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 bad request -
401 Unauthorized -
403 organization required -
404 cluster not found -
500 db error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

detachControlPlaneRecordSet

DtoClusterResponse detachControlPlaneRecordSet(clusterID, xOrgID)

Detach the control plane record set from a cluster

Clears control_plane_record_set_id on the cluster.

Example

import { Configuration, ClustersApi } from "@glueops/autoglue-sdk-go";
import type { DetachControlPlaneRecordSetRequest } from "@glueops/autoglue-sdk-go";

async function example() {
  console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
  const config = new Configuration({
    // To configure API key authorization: OrgKeyAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: OrgSecretAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: BearerAuth
    apiKey: "YOUR API KEY",
  });
  const api = new ClustersApi(config);

  const body = {
    // string | Cluster ID
    clusterID: clusterID_example,
    // string | Organization UUID (optional)
    xOrgID: xOrgID_example,
  } satisfies DetachControlPlaneRecordSetRequest;

  try {
    const data = await api.detachControlPlaneRecordSet(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
clusterID string Cluster ID [Defaults to undefined]
xOrgID string Organization UUID [Optional] [Defaults to undefined]

Return type

DtoClusterResponse

Authorization

OrgKeyAuth, OrgSecretAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 bad request -
401 Unauthorized -
403 organization required -
404 cluster not found -
500 db error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

detachGlueOpsLoadBalancer

DtoClusterResponse detachGlueOpsLoadBalancer(clusterID, xOrgID)

Detach the GlueOps/control-plane load balancer from a cluster

Clears glueops_load_balancer_id on the cluster.

Example

import { Configuration, ClustersApi } from "@glueops/autoglue-sdk-go";
import type { DetachGlueOpsLoadBalancerRequest } from "@glueops/autoglue-sdk-go";

async function example() {
  console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
  const config = new Configuration({
    // To configure API key authorization: OrgKeyAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: OrgSecretAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: BearerAuth
    apiKey: "YOUR API KEY",
  });
  const api = new ClustersApi(config);

  const body = {
    // string | Cluster ID
    clusterID: clusterID_example,
    // string | Organization UUID (optional)
    xOrgID: xOrgID_example,
  } satisfies DetachGlueOpsLoadBalancerRequest;

  try {
    const data = await api.detachGlueOpsLoadBalancer(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
clusterID string Cluster ID [Defaults to undefined]
xOrgID string Organization UUID [Optional] [Defaults to undefined]

Return type

DtoClusterResponse

Authorization

OrgKeyAuth, OrgSecretAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 bad request -
401 Unauthorized -
403 organization required -
404 cluster not found -
500 db error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

detachNodePool

DtoClusterResponse detachNodePool(clusterID, nodePoolID, xOrgID)

Detach a node pool from a cluster

Removes an entry from the cluster_node_pools join table.

Example

import { Configuration, ClustersApi } from "@glueops/autoglue-sdk-go";
import type { DetachNodePoolRequest } from "@glueops/autoglue-sdk-go";

async function example() {
  console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
  const config = new Configuration({
    // To configure API key authorization: OrgKeyAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: OrgSecretAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: BearerAuth
    apiKey: "YOUR API KEY",
  });
  const api = new ClustersApi(config);

  const body = {
    // string | Cluster ID
    clusterID: clusterID_example,
    // string | Node Pool ID
    nodePoolID: nodePoolID_example,
    // string | Organization UUID (optional)
    xOrgID: xOrgID_example,
  } satisfies DetachNodePoolRequest;

  try {
    const data = await api.detachNodePool(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
clusterID string Cluster ID [Defaults to undefined]
nodePoolID string Node Pool ID [Defaults to undefined]
xOrgID string Organization UUID [Optional] [Defaults to undefined]

Return type

DtoClusterResponse

Authorization

OrgKeyAuth, OrgSecretAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 bad request -
401 Unauthorized -
403 organization required -
404 cluster or node pool not found -
500 db error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getCluster

DtoClusterResponse getCluster(clusterID, xOrgID)

Get a single cluster by ID (org scoped)

Returns a cluster with all related resources (domain, record set, load balancers, bastion, node pools).

Example

import { Configuration, ClustersApi } from "@glueops/autoglue-sdk-go";
import type { GetClusterRequest } from "@glueops/autoglue-sdk-go";

async function example() {
  console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
  const config = new Configuration({
    // To configure API key authorization: OrgKeyAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: OrgSecretAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: BearerAuth
    apiKey: "YOUR API KEY",
  });
  const api = new ClustersApi(config);

  const body = {
    // string | Cluster ID
    clusterID: clusterID_example,
    // string | Organization UUID (optional)
    xOrgID: xOrgID_example,
  } satisfies GetClusterRequest;

  try {
    const data = await api.getCluster(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
clusterID string Cluster ID [Defaults to undefined]
xOrgID string Organization UUID [Optional] [Defaults to undefined]

Return type

DtoClusterResponse

Authorization

OrgKeyAuth, OrgSecretAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 bad request -
401 Unauthorized -
403 organization required -
404 cluster not found -
500 db error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

listClusters

Array<DtoClusterResponse> listClusters(xOrgID, q)

List clusters (org scoped)

Returns clusters for the organization in X-Org-ID. Filter by `q` (name contains).

Example

import { Configuration, ClustersApi } from "@glueops/autoglue-sdk-go";
import type { ListClustersRequest } from "@glueops/autoglue-sdk-go";

async function example() {
  console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
  const config = new Configuration({
    // To configure API key authorization: OrgKeyAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: OrgSecretAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: BearerAuth
    apiKey: "YOUR API KEY",
  });
  const api = new ClustersApi(config);

  const body = {
    // string | Organization UUID (optional)
    xOrgID: xOrgID_example,
    // string | Name contains (case-insensitive) (optional)
    q: q_example,
  } satisfies ListClustersRequest;

  try {
    const data = await api.listClusters(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
xOrgID string Organization UUID [Optional] [Defaults to undefined]
q string Name contains (case-insensitive) [Optional] [Defaults to undefined]

Return type

Array<DtoClusterResponse>

Authorization

OrgKeyAuth, OrgSecretAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
401 Unauthorized -
403 organization required -
500 failed to list clusters -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

setClusterKubeconfig

DtoClusterResponse setClusterKubeconfig(clusterID, dtoSetKubeconfigRequest, xOrgID)

Set (or replace) the kubeconfig for a cluster

Stores the kubeconfig encrypted per organization. The kubeconfig is never returned in responses.

Example

import {
  Configuration,
  ClustersApi,
} from '@glueops/autoglue-sdk-go';
import type { SetClusterKubeconfigRequest } from '@glueops/autoglue-sdk-go';

async function example() {
  console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
  const config = new Configuration({
    // To configure API key authorization: OrgKeyAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: OrgSecretAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: BearerAuth
    apiKey: "YOUR API KEY",
  });
  const api = new ClustersApi(config);

  const body = {
    // string | Cluster ID
    clusterID: clusterID_example,
    // DtoSetKubeconfigRequest | payload
    dtoSetKubeconfigRequest: ...,
    // string | Organization UUID (optional)
    xOrgID: xOrgID_example,
  } satisfies SetClusterKubeconfigRequest;

  try {
    const data = await api.setClusterKubeconfig(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
clusterID string Cluster ID [Defaults to undefined]
dtoSetKubeconfigRequest DtoSetKubeconfigRequest payload
xOrgID string Organization UUID [Optional] [Defaults to undefined]

Return type

DtoClusterResponse

Authorization

OrgKeyAuth, OrgSecretAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 bad request -
401 Unauthorized -
403 organization required -
404 cluster not found -
500 db error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateCluster

DtoClusterResponse updateCluster(clusterID, dtoUpdateClusterRequest, xOrgID)

Update basic cluster details (org scoped)

Updates the cluster name, provider, and/or region. Status is managed by the system.

Example

import {
  Configuration,
  ClustersApi,
} from '@glueops/autoglue-sdk-go';
import type { UpdateClusterRequest } from '@glueops/autoglue-sdk-go';

async function example() {
  console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
  const config = new Configuration({
    // To configure API key authorization: OrgKeyAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: OrgSecretAuth
    apiKey: "YOUR API KEY",
    // To configure API key authorization: BearerAuth
    apiKey: "YOUR API KEY",
  });
  const api = new ClustersApi(config);

  const body = {
    // string | Cluster ID
    clusterID: clusterID_example,
    // DtoUpdateClusterRequest | payload
    dtoUpdateClusterRequest: ...,
    // string | Organization UUID (optional)
    xOrgID: xOrgID_example,
  } satisfies UpdateClusterRequest;

  try {
    const data = await api.updateCluster(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
clusterID string Cluster ID [Defaults to undefined]
dtoUpdateClusterRequest DtoUpdateClusterRequest payload
xOrgID string Organization UUID [Optional] [Defaults to undefined]

Return type

DtoClusterResponse

Authorization

OrgKeyAuth, OrgSecretAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 bad request -
401 Unauthorized -
403 organization required -
404 cluster not found -
500 db error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]