All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
DownloadNodeAgentInstaller | Get /api/v1/node_agents/download | Download Node Agent Installer or Package |
GetNodeAgent | Get /api/v1/customers/{cUUID}/node_agents/{nUUID} | Get Node Agent |
ListNodeAgents | Get /api/v1/customers/{cUUID}/node_agents | List Node Agents |
PageListNodeAgents | Post /api/v1/customers/{cUUID}/node_agents/page | List Node Agents (paginated) |
ReinstallNodeAgent | Post /api/v1/customers/{cUUID}/universes/{uniUUID}/node_agents | Reinstall Node Agent |
string DownloadNodeAgentInstaller(ctx).DownloadType(downloadType).Os(os).Arch(arch).Execute()
Download Node Agent Installer or Package
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
downloadType := "downloadType_example" // string | (optional) (default to "INSTALLER")
os := "os_example" // string | (optional)
arch := "arch_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.NodeAgentsApi.DownloadNodeAgentInstaller(context.Background()).DownloadType(downloadType).Os(os).Arch(arch).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeAgentsApi.DownloadNodeAgentInstaller``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DownloadNodeAgentInstaller`: string
fmt.Fprintf(os.Stdout, "Response from `NodeAgentsApi.DownloadNodeAgentInstaller`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiDownloadNodeAgentInstallerRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
downloadType | string | [default to "INSTALLER"] | |
os | string | ||
arch | string |
string
- Content-Type: Not defined
- Accept: application/gzip, application/x-sh
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NodeAgentResp GetNodeAgent(ctx, cUUID, nUUID).Execute()
Get Node Agent
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
nUUID := TODO // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.NodeAgentsApi.GetNodeAgent(context.Background(), cUUID, nUUID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeAgentsApi.GetNodeAgent``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetNodeAgent`: NodeAgentResp
fmt.Fprintf(os.Stdout, "Response from `NodeAgentsApi.GetNodeAgent`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string | ||
nUUID | string |
Other parameters are passed through a pointer to a apiGetNodeAgentRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]NodeAgentResp ListNodeAgents(ctx, cUUID).NodeIp(nodeIp).Execute()
List Node Agents
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
nodeIp := "nodeIp_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.NodeAgentsApi.ListNodeAgents(context.Background(), cUUID).NodeIp(nodeIp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeAgentsApi.ListNodeAgents``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListNodeAgents`: []NodeAgentResp
fmt.Fprintf(os.Stdout, "Response from `NodeAgentsApi.ListNodeAgents`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string |
Other parameters are passed through a pointer to a apiListNodeAgentsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
nodeIp | string | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NodeAgentPagedApiResponse PageListNodeAgents(ctx, cUUID).PageNodeAgentRequest(pageNodeAgentRequest).Request(request).Execute()
List Node Agents (paginated)
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
pageNodeAgentRequest := *openapiclient.NewNodeAgentPagedApiQuery("Direction_example", *openapiclient.NewNodeAgentApiFilter("CloudType_example", []string{"NodeIps_example"}, "ProviderUuid_example", "RegionUuid_example", "UniverseUuid_example", "ZoneUuid_example"), int32(123), false, int32(123), "SortBy_example") // NodeAgentPagedApiQuery |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.NodeAgentsApi.PageListNodeAgents(context.Background(), cUUID).PageNodeAgentRequest(pageNodeAgentRequest).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeAgentsApi.PageListNodeAgents``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PageListNodeAgents`: NodeAgentPagedApiResponse
fmt.Fprintf(os.Stdout, "Response from `NodeAgentsApi.PageListNodeAgents`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string |
Other parameters are passed through a pointer to a apiPageListNodeAgentsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
pageNodeAgentRequest | NodeAgentPagedApiQuery | | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NodeAgent ReinstallNodeAgent(ctx, cUUID, uniUUID).ReinstallNodeAgentForm(reinstallNodeAgentForm).Request(request).Execute()
Reinstall Node Agent
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
uniUUID := TODO // string |
reinstallNodeAgentForm := *openapiclient.NewReinstallNodeAgentForm() // ReinstallNodeAgentForm |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.NodeAgentsApi.ReinstallNodeAgent(context.Background(), cUUID, uniUUID).ReinstallNodeAgentForm(reinstallNodeAgentForm).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeAgentsApi.ReinstallNodeAgent``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ReinstallNodeAgent`: NodeAgent
fmt.Fprintf(os.Stdout, "Response from `NodeAgentsApi.ReinstallNodeAgent`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string | ||
uniUUID | string |
Other parameters are passed through a pointer to a apiReinstallNodeAgentRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
reinstallNodeAgentForm | ReinstallNodeAgentForm | | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]