58 KiB
\ComputeAPI
All URIs are relative to https://api.hanzo.ai
| Method | HTTP request | Description |
|---|---|---|
| AttachCluster | Post /v1/compute/clusters | Attaches a BYO cluster to the caller's org — the kubeconfig is validated, KMS-sealed and added to the fleet — and answers 201 with the cluster as it now appears on GET /v1/compute/clusters. |
| BindMachineAgent | Put /v1/compute/machines/{id}/agent | Binds a cloud Agent to one of the caller org's machines: the machine is recorded as running that Agent's @hanzo/bot runtime. |
| CancelFleetJob | Post /v1/compute/fleet/jobs/{id}/cancel | Cancels a queued or running render in the caller's org. |
| CreateKubernetesCluster | Post /v1/compute/k8s/clusters | Provisions a DOKS cluster for the caller's org and answers 201. |
| CreateNodePool | Post /v1/compute/clusters/{clusterId}/pools | Adds a node pool to one of the caller org's clusters and answers 201 with the created pool. |
| DeleteKubernetesCluster | Delete /v1/compute/k8s/clusters/{id} | Destroys a DOKS cluster by id and answers 204. |
| DeleteMachine | Delete /v1/compute/machines/{id} | Terminates one of the caller org's machines. |
| DeleteNodePool | Delete /v1/compute/clusters/{clusterId}/pools/{poolId} | Removes a node pool from one of the caller org's clusters. |
| DetachCluster | Delete /v1/compute/clusters/{id} | Removes a BYO cluster from the caller org's fleet. |
| GetComputeRegions | Get /v1/compute/regions | Lists the regions a machine can be launched in. |
| GetComputeSizes | Get /v1/compute/sizes | Lists the machine sizes available to launch, with their specifications. |
| GetKubernetesCluster | Get /v1/compute/k8s/clusters/{id} | Returns one cluster's detail: node pools + worker nodes. |
| GetMachine | Get /v1/compute/machines/{id} | Returns one of the caller org's machines by its org-scoped name. |
| GetMachineAgent | Get /v1/compute/machines/{id}/agent | Returns the agent binding of one of the caller org's machines, or 404 when the machine runs no bot runtime. |
| ListClusters | Get /v1/compute/clusters | Returns the caller org's clusters from both sources: the managed clusters projected from Visor's node pools, and the BYO clusters attached to the caller's project. |
| ListFleet | Get /v1/compute/fleet | Returns every compute unit the caller's org has, from every source, each carrying its latest utilization: agent run-targets, the BYO machines that dialed in, attached BYO clusters and Visor-provisioned machines. |
| ListFleetJobs | Get /v1/compute/fleet/jobs | Returns the caller org's gpu-jobs render queue, each row tagged with the GPU it targets (empty = the shared any-GPU lane) and the node claiming it, optionally narrowed to one GPU's queue and/or one status. |
| ListFleetSamples | Get /v1/compute/fleet/samples | Returns the caller org's utilization series, oldest first. |
| ListFleetWorkers | Get /v1/compute/fleet/workers | Returns the caller org's BYO machines — the ones that dialed in via `hanzo link` — with everything each host reported about itself. |
| ListGpuAlerts | Get /v1/compute/gpus/alerts | Is an HONEST empty surface: Visor exposes no GPU alert inventory, so this returns [] rather than fabricating alerts. |
| ListGpus | Get /v1/compute/gpus | Returns one row per physical accelerator the caller's org has, derived from its real GPU machines (the size slug says how many cards a node holds) and from the accelerators BYO workers report through nvidia-smi. |
| ListKubernetesClusters | Get /v1/compute/k8s/clusters | Lists the org's DOKS clusters (Visor, house account) folded with the org's BYO clusters — ONE fleet cluster view under the unified k8s noun. |
| ListKubernetesNodes | Get /v1/compute/k8s/nodes | Returns every DOKS worker node in the org's clusters as a machine — the SAME set the fleet folds in (managedMachines), exposed directly under the k8s noun. |
| ListMachineAgents | Get /v1/compute/machines/agents | Returns every agent↔machine binding in the caller's org — which machines are running which cloud Agent, with vm's own reconciled status. |
| ListMachines | Get /v1/compute/machines | Returns every machine the caller's org has — Visor's registry, the live DigitalOcean droplets and the DOKS worker nodes (deduped into one union), plus the BYO machines that dialed in via `hanzo link` (provider "byo"). |
| PostComputeMachines | Post /v1/compute/machines | Launch a metered machine for your org, or price one first with dryRun |
| PostComputeMachinesByIdByAction | Post /v1/compute/machines/{id}/{action} | Message a bot, or stop it, by naming the action in the path |
| RecordFleetSample | Post /v1/compute/fleet/samples | Records a BYO worker's live GPU utilization into the SAME series the fleet board overlays. |
| ScaleNodePool | Post /v1/compute/clusters/{clusterId}/pools/{poolId}/scale | Resizes a node pool to an absolute node count and returns the pool as Visor reports it after the change. |
| UnbindMachineAgent | Delete /v1/compute/machines/{id}/agent | Detaches the agent runtime from one of the caller org's machines. |
AttachCluster
ComputeClusterView AttachCluster(ctx).ComputeClusterAttach(computeClusterAttach).Execute()
Attaches a BYO cluster to the caller's org — the kubeconfig is validated, KMS-sealed and added to the fleet — and answers 201 with the cluster as it now appears on GET /v1/compute/clusters.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
computeClusterAttach := *openapiclient.NewComputeClusterAttach() // ComputeClusterAttach |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.AttachCluster(context.Background()).ComputeClusterAttach(computeClusterAttach).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.AttachCluster``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AttachCluster`: ComputeClusterView
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.AttachCluster`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAttachClusterRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| computeClusterAttach | ComputeClusterAttach |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BindMachineAgent
ComputeAgentBinding BindMachineAgent(ctx, id).ComputeBindAgentReq(computeBindAgentReq).Execute()
Binds a cloud Agent to one of the caller org's machines: the machine is recorded as running that Agent's @hanzo/bot runtime.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
id := "id_example" // string | ID is the machine to bind, from the URL path.
computeBindAgentReq := *openapiclient.NewComputeBindAgentReq() // ComputeBindAgentReq |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.BindMachineAgent(context.Background(), id).ComputeBindAgentReq(computeBindAgentReq).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.BindMachineAgent``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `BindMachineAgent`: ComputeAgentBinding
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.BindMachineAgent`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string | ID is the machine to bind, from the URL path. |
Other Parameters
Other parameters are passed through a pointer to a apiBindMachineAgentRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
computeBindAgentReq | ComputeBindAgentReq | |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CancelFleetJob
ComputeJobCanceled CancelFleetJob(ctx, id).ComputeJobCancel(computeJobCancel).Execute()
Cancels a queued or running render in the caller's org.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
id := "id_example" // string | ID is the job (activity) id, from the URL path.
computeJobCancel := *openapiclient.NewComputeJobCancel() // ComputeJobCancel |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.CancelFleetJob(context.Background(), id).ComputeJobCancel(computeJobCancel).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.CancelFleetJob``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CancelFleetJob`: ComputeJobCanceled
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.CancelFleetJob`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string | ID is the job (activity) id, from the URL path. |
Other Parameters
Other parameters are passed through a pointer to a apiCancelFleetJobRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
computeJobCancel | ComputeJobCancel | |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateKubernetesCluster
ComputeClusterView CreateKubernetesCluster(ctx).ComputeCreateClusterReq(computeCreateClusterReq).Execute()
Provisions a DOKS cluster for the caller's org and answers 201.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
computeCreateClusterReq := *openapiclient.NewComputeCreateClusterReq() // ComputeCreateClusterReq |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.CreateKubernetesCluster(context.Background()).ComputeCreateClusterReq(computeCreateClusterReq).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.CreateKubernetesCluster``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateKubernetesCluster`: ComputeClusterView
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.CreateKubernetesCluster`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiCreateKubernetesClusterRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| computeCreateClusterReq | ComputeCreateClusterReq |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateNodePool
ComputeNodePoolView CreateNodePool(ctx, clusterId).ComputePoolCreate(computePoolCreate).Execute()
Adds a node pool to one of the caller org's clusters and answers 201 with the created pool.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
clusterId := "clusterId_example" // string | ClusterID is the cluster to add the pool to, from the URL path.
computePoolCreate := *openapiclient.NewComputePoolCreate() // ComputePoolCreate |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.CreateNodePool(context.Background(), clusterId).ComputePoolCreate(computePoolCreate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.CreateNodePool``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateNodePool`: ComputeNodePoolView
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.CreateNodePool`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| clusterId | string | ClusterID is the cluster to add the pool to, from the URL path. |
Other Parameters
Other parameters are passed through a pointer to a apiCreateNodePoolRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
computePoolCreate | ComputePoolCreate | |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteKubernetesCluster
DeleteKubernetesCluster(ctx, id).Execute()
Destroys a DOKS cluster by id and answers 204.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
id := "id_example" // string | ID is the provider's DOKS cluster id. Visor scopes the lookup to the caller's org, so another tenant's id resolves to not-found rather than their cluster.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ComputeAPI.DeleteKubernetesCluster(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.DeleteKubernetesCluster``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string | ID is the provider's DOKS cluster id. Visor scopes the lookup to the caller's org, so another tenant's id resolves to not-found rather than their cluster. |
Other Parameters
Other parameters are passed through a pointer to a apiDeleteKubernetesClusterRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
Return type
(empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteMachine
DeleteMachine(ctx, id).Execute()
Terminates one of the caller org's machines.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
id := "id_example" // string | ID is the machine's org-scoped NAME — the stable key Visor addresses a machine by (owner/name), not the ephemeral provider id.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ComputeAPI.DeleteMachine(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.DeleteMachine``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string | ID is the machine's org-scoped NAME — the stable key Visor addresses a machine by (owner/name), not the ephemeral provider id. |
Other Parameters
Other parameters are passed through a pointer to a apiDeleteMachineRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
Return type
(empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteNodePool
DeleteNodePool(ctx, clusterId, poolId).Provider(provider).Execute()
Removes a node pool from one of the caller org's clusters.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
clusterId := "clusterId_example" // string | ClusterID and PoolID address the pool, from the URL path.
poolId := "poolId_example" // string |
provider := "provider_example" // string | Provider is the cloud the cluster lives on, from ?provider=. Required. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ComputeAPI.DeleteNodePool(context.Background(), clusterId, poolId).Provider(provider).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.DeleteNodePool``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| clusterId | string | ClusterID and PoolID address the pool, from the URL path. | |
| poolId | string |
Other Parameters
Other parameters are passed through a pointer to a apiDeleteNodePoolRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
provider | string | Provider is the cloud the cluster lives on, from ?provider=. Required. |
Return type
(empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DetachCluster
ComputeClusterDetached DetachCluster(ctx, id).Execute()
Removes a BYO cluster from the caller org's fleet.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
id := "id_example" // string | ID is the cluster's fleet name (the `name` it was attached under), matched lower-cased.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.DetachCluster(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.DetachCluster``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DetachCluster`: ComputeClusterDetached
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.DetachCluster`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string | ID is the cluster's fleet name (the `name` it was attached under), matched lower-cased. |
Other Parameters
Other parameters are passed through a pointer to a apiDetachClusterRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetComputeRegions
interface{} GetComputeRegions(ctx).Execute()
Lists the regions a machine can be launched in.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.GetComputeRegions(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.GetComputeRegions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetComputeRegions`: interface{}
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.GetComputeRegions`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiGetComputeRegionsRequest struct via the builder pattern
Return type
interface{}
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetComputeSizes
interface{} GetComputeSizes(ctx).Execute()
Lists the machine sizes available to launch, with their specifications.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.GetComputeSizes(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.GetComputeSizes``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetComputeSizes`: interface{}
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.GetComputeSizes`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiGetComputeSizesRequest struct via the builder pattern
Return type
interface{}
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetKubernetesCluster
ComputeClusterDetailView GetKubernetesCluster(ctx, id).Execute()
Returns one cluster's detail: node pools + worker nodes.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
id := "id_example" // string | ID is the provider's DOKS cluster id. Visor scopes the lookup to the caller's org, so another tenant's id resolves to not-found rather than their cluster.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.GetKubernetesCluster(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.GetKubernetesCluster``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetKubernetesCluster`: ComputeClusterDetailView
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.GetKubernetesCluster`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string | ID is the provider's DOKS cluster id. Visor scopes the lookup to the caller's org, so another tenant's id resolves to not-found rather than their cluster. |
Other Parameters
Other parameters are passed through a pointer to a apiGetKubernetesClusterRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetMachine
ComputeMachineView GetMachine(ctx, id).Execute()
Returns one of the caller org's machines by its org-scoped name.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
id := "id_example" // string | ID is the machine's org-scoped NAME — the stable key Visor addresses a machine by (owner/name), not the ephemeral provider id.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.GetMachine(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.GetMachine``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetMachine`: ComputeMachineView
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.GetMachine`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string | ID is the machine's org-scoped NAME — the stable key Visor addresses a machine by (owner/name), not the ephemeral provider id. |
Other Parameters
Other parameters are passed through a pointer to a apiGetMachineRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetMachineAgent
ComputeAgentBinding GetMachineAgent(ctx, id).Execute()
Returns the agent binding of one of the caller org's machines, or 404 when the machine runs no bot runtime.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
id := "id_example" // string | ID is the machine's org-scoped NAME — the stable key Visor addresses a machine by (owner/name), not the ephemeral provider id.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.GetMachineAgent(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.GetMachineAgent``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetMachineAgent`: ComputeAgentBinding
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.GetMachineAgent`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string | ID is the machine's org-scoped NAME — the stable key Visor addresses a machine by (owner/name), not the ephemeral provider id. |
Other Parameters
Other parameters are passed through a pointer to a apiGetMachineAgentRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListClusters
ComputeClusterList ListClusters(ctx).Execute()
Returns the caller org's clusters from both sources: the managed clusters projected from Visor's node pools, and the BYO clusters attached to the caller's project.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.ListClusters(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.ListClusters``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListClusters`: ComputeClusterList
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.ListClusters`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiListClustersRequest struct via the builder pattern
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListFleet
ComputeFleetBoard ListFleet(ctx).Execute()
Returns every compute unit the caller's org has, from every source, each carrying its latest utilization: agent run-targets, the BYO machines that dialed in, attached BYO clusters and Visor-provisioned machines.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.ListFleet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.ListFleet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListFleet`: ComputeFleetBoard
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.ListFleet`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiListFleetRequest struct via the builder pattern
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListFleetJobs
ComputeJobList ListFleetJobs(ctx).Gpu(gpu).Status(status).Execute()
Returns the caller org's gpu-jobs render queue, each row tagged with the GPU it targets (empty = the shared any-GPU lane) and the node claiming it, optionally narrowed to one GPU's queue and/or one status.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
gpu := "gpu_example" // string | GPU selects one node's lane: jobs TARGETED at it (gpu:<node>) or CLAIMED by it. The literal \"shared\" selects the any-GPU lane — no target, no claimant. Matched case-insensitively. (optional)
status := "status_example" // string | Status selects one lifecycle state: queued, running, stalled, completed, failed or canceled. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.ListFleetJobs(context.Background()).Gpu(gpu).Status(status).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.ListFleetJobs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListFleetJobs`: ComputeJobList
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.ListFleetJobs`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiListFleetJobsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| gpu | string | GPU selects one node's lane: jobs TARGETED at it (gpu:<node>) or CLAIMED by it. The literal "shared" selects the any-GPU lane — no target, no claimant. Matched case-insensitively. | |
| status | string | Status selects one lifecycle state: queued, running, stalled, completed, failed or canceled. |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListFleetSamples
ComputeSampleList ListFleetSamples(ctx).Unit(unit).Source(source).Range_(range_).Execute()
Returns the caller org's utilization series, oldest first.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
unit := "unit_example" // string | Unit selects one compute unit's series by its source-local id. (optional)
source := "source_example" // string | Source selects one plane: \"agent\", \"byo\" or \"visor\". (optional)
range_ := "range__example" // string | Range is the lookback window (e.g. \"1h\", \"24h\", \"7d\"); empty takes the warehouse default. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.ListFleetSamples(context.Background()).Unit(unit).Source(source).Range_(range_).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.ListFleetSamples``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListFleetSamples`: ComputeSampleList
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.ListFleetSamples`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiListFleetSamplesRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| unit | string | Unit selects one compute unit's series by its source-local id. | |
| source | string | Source selects one plane: "agent", "byo" or "visor". | |
| range_ | string | Range is the lookback window (e.g. "1h", "24h", "7d"); empty takes the warehouse default. |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListFleetWorkers
ComputeWorkerList ListFleetWorkers(ctx).Execute()
Returns the caller org's BYO machines — the ones that dialed in via hanzo link — with everything each host reported about itself.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.ListFleetWorkers(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.ListFleetWorkers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListFleetWorkers`: ComputeWorkerList
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.ListFleetWorkers`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiListFleetWorkersRequest struct via the builder pattern
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListGpuAlerts
ComputeGpuAlertList ListGpuAlerts(ctx).Execute()
Is an HONEST empty surface: Visor exposes no GPU alert inventory, so this returns [] rather than fabricating alerts.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.ListGpuAlerts(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.ListGpuAlerts``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListGpuAlerts`: ComputeGpuAlertList
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.ListGpuAlerts`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiListGpuAlertsRequest struct via the builder pattern
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListGpus
ComputeGpuList ListGpus(ctx).Execute()
Returns one row per physical accelerator the caller's org has, derived from its real GPU machines (the size slug says how many cards a node holds) and from the accelerators BYO workers report through nvidia-smi.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.ListGpus(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.ListGpus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListGpus`: ComputeGpuList
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.ListGpus`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiListGpusRequest struct via the builder pattern
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListKubernetesClusters
ComputeClusterList ListKubernetesClusters(ctx).Execute()
Lists the org's DOKS clusters (Visor, house account) folded with the org's BYO clusters — ONE fleet cluster view under the unified k8s noun.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.ListKubernetesClusters(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.ListKubernetesClusters``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListKubernetesClusters`: ComputeClusterList
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.ListKubernetesClusters`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiListKubernetesClustersRequest struct via the builder pattern
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListKubernetesNodes
ComputeNodeList ListKubernetesNodes(ctx).Execute()
Returns every DOKS worker node in the org's clusters as a machine — the SAME set the fleet folds in (managedMachines), exposed directly under the k8s noun.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.ListKubernetesNodes(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.ListKubernetesNodes``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListKubernetesNodes`: ComputeNodeList
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.ListKubernetesNodes`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiListKubernetesNodesRequest struct via the builder pattern
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListMachineAgents
ComputeBindingList ListMachineAgents(ctx).Execute()
Returns every agent↔machine binding in the caller's org — which machines are running which cloud Agent, with vm's own reconciled status.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.ListMachineAgents(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.ListMachineAgents``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListMachineAgents`: ComputeBindingList
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.ListMachineAgents`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiListMachineAgentsRequest struct via the builder pattern
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListMachines
ComputeMachineList ListMachines(ctx).Kind(kind).Execute()
Returns every machine the caller's org has — Visor's registry, the live DigitalOcean droplets and the DOKS worker nodes (deduped into one union), plus the BYO machines that dialed in via hanzo link (provider "byo").
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
kind := "kind_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.ListMachines(context.Background()).Kind(kind).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.ListMachines``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListMachines`: ComputeMachineList
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.ListMachines`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiListMachinesRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| kind | string |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PostComputeMachines
PostComputeMachines(ctx).Execute()
Launch a metered machine for your org, or price one first with dryRun
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ComputeAPI.PostComputeMachines(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.PostComputeMachines``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiPostComputeMachinesRequest struct via the builder pattern
Return type
(empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PostComputeMachinesByIdByAction
PostComputeMachinesByIdByAction(ctx, id, action).Execute()
Message a bot, or stop it, by naming the action in the path
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
id := "id_example" // string |
action := "action_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ComputeAPI.PostComputeMachinesByIdByAction(context.Background(), id, action).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.PostComputeMachinesByIdByAction``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string | ||
| action | string |
Other Parameters
Other parameters are passed through a pointer to a apiPostComputeMachinesByIdByActionRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
Return type
(empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RecordFleetSample
ComputeSampleAccepted RecordFleetSample(ctx).ComputeSampleIngest(computeSampleIngest).Execute()
Records a BYO worker's live GPU utilization into the SAME series the fleet board overlays.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
computeSampleIngest := *openapiclient.NewComputeSampleIngest() // ComputeSampleIngest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.RecordFleetSample(context.Background()).ComputeSampleIngest(computeSampleIngest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.RecordFleetSample``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RecordFleetSample`: ComputeSampleAccepted
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.RecordFleetSample`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiRecordFleetSampleRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| computeSampleIngest | ComputeSampleIngest |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ScaleNodePool
ComputeNodePoolView ScaleNodePool(ctx, clusterId, poolId).ComputePoolScale(computePoolScale).Execute()
Resizes a node pool to an absolute node count and returns the pool as Visor reports it after the change.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
clusterId := "clusterId_example" // string | ClusterID is the cluster holding the pool, from the URL path.
poolId := "poolId_example" // string | PoolID is the pool to resize, from the URL path — the `poolId` a cluster read reports for it. Required.
computePoolScale := *openapiclient.NewComputePoolScale() // ComputePoolScale |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeAPI.ScaleNodePool(context.Background(), clusterId, poolId).ComputePoolScale(computePoolScale).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.ScaleNodePool``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ScaleNodePool`: ComputeNodePoolView
fmt.Fprintf(os.Stdout, "Response from `ComputeAPI.ScaleNodePool`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| clusterId | string | ClusterID is the cluster holding the pool, from the URL path. | |
| poolId | string | PoolID is the pool to resize, from the URL path — the `poolId` a cluster read reports for it. Required. |
Other Parameters
Other parameters are passed through a pointer to a apiScaleNodePoolRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
computePoolScale | ComputePoolScale | |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UnbindMachineAgent
UnbindMachineAgent(ctx, id).Execute()
Detaches the agent runtime from one of the caller org's machines.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
id := "id_example" // string | ID is the machine's org-scoped NAME — the stable key Visor addresses a machine by (owner/name), not the ephemeral provider id.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ComputeAPI.UnbindMachineAgent(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeAPI.UnbindMachineAgent``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string | ID is the machine's org-scoped NAME — the stable key Visor addresses a machine by (owner/name), not the ephemeral provider id. |
Other Parameters
Other parameters are passed through a pointer to a apiUnbindMachineAgentRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
Return type
(empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]