All URIs are relative to https://api.linode.com
Method | HTTP request | Description |
---|---|---|
DeleteNodeBalancer | Delete /{apiVersion}/nodebalancers/{nodeBalancerId} | Delete a NodeBalancer |
DeleteNodeBalancerConfig | Delete /{apiVersion}/nodebalancers/{nodeBalancerId}/configs/{configId} | Delete a config |
DeleteNodeBalancerConfigNode | Delete /{apiVersion}/nodebalancers/{nodeBalancerId}/configs/{configId}/nodes/{nodeId} | Delete a NodeBalancer's node |
GetNodeBalancer | Get /{apiVersion}/nodebalancers/{nodeBalancerId} | Get a NodeBalancer |
GetNodeBalancerConfig | Get /{apiVersion}/nodebalancers/{nodeBalancerId}/configs/{configId} | Get a config |
GetNodeBalancerConfigNodes | Get /{apiVersion}/nodebalancers/{nodeBalancerId}/configs/{configId}/nodes | List nodes |
GetNodeBalancerConfigs | Get /{apiVersion}/nodebalancers/{nodeBalancerId}/configs | List configs |
GetNodeBalancerFirewalls | Get /{apiVersion}/nodebalancers/{nodeBalancerId}/firewalls | List NodeBalancer firewalls |
GetNodeBalancerNode | Get /{apiVersion}/nodebalancers/{nodeBalancerId}/configs/{configId}/nodes/{nodeId} | Get a NodeBalancer's node |
GetNodeBalancerStats | Get /{apiVersion}/nodebalancers/{nodeBalancerId}/stats | Get NodeBalancer statistics |
GetNodeBalancerTypes | Get /{apiVersion}/nodebalancers/types | List NodeBalancer types |
GetNodeBalancers | Get /{apiVersion}/nodebalancers | List NodeBalancers |
PostNodeBalancer | Post /{apiVersion}/nodebalancers | Create a NodeBalancer |
PostNodeBalancerConfig | Post /{apiVersion}/nodebalancers/{nodeBalancerId}/configs | Create a config |
PostNodeBalancerNode | Post /{apiVersion}/nodebalancers/{nodeBalancerId}/configs/{configId}/nodes | Create a node |
PostRebuildNodeBalancerConfig | Post /{apiVersion}/nodebalancers/{nodeBalancerId}/configs/{configId}/rebuild | Rebuild a config |
PutNodeBalancer | Put /{apiVersion}/nodebalancers/{nodeBalancerId} | Update a NodeBalancer |
PutNodeBalancerConfig | Put /{apiVersion}/nodebalancers/{nodeBalancerId}/configs/{configId} | Update a config |
PutNodeBalancerNode | Put /{apiVersion}/nodebalancers/{nodeBalancerId}/configs/{configId}/nodes/{nodeId} | Update a node |
map[string]interface{} DeleteNodeBalancer(ctx, apiVersion, nodeBalancerId).Execute()
Delete a NodeBalancer
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
apiVersion := "apiVersion_example" // string | __Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta. (default to "v4")
nodeBalancerId := int32(56) // int32 | The ID of the NodeBalancer to access.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NodeBalancersAPI.DeleteNodeBalancer(context.Background(), apiVersion, nodeBalancerId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeBalancersAPI.DeleteNodeBalancer``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteNodeBalancer`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `NodeBalancersAPI.DeleteNodeBalancer`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
apiVersion | string | Enum Call either the `v4` URL, or `v4beta` for operations still in Beta. | [default to "v4"] |
nodeBalancerId | int32 | The ID of the NodeBalancer to access. |
Other parameters are passed through a pointer to a apiDeleteNodeBalancerRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
map[string]interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} DeleteNodeBalancerConfig(ctx, apiVersion, nodeBalancerId, configId).Execute()
Delete a config
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
apiVersion := "apiVersion_example" // string | __Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta. (default to "v4")
nodeBalancerId := int32(56) // int32 | The ID of the NodeBalancer to access.
configId := int32(56) // int32 | The ID of the Config to access.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NodeBalancersAPI.DeleteNodeBalancerConfig(context.Background(), apiVersion, nodeBalancerId, configId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeBalancersAPI.DeleteNodeBalancerConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteNodeBalancerConfig`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `NodeBalancersAPI.DeleteNodeBalancerConfig`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
apiVersion | string | Enum Call either the `v4` URL, or `v4beta` for operations still in Beta. | [default to "v4"] |
nodeBalancerId | int32 | The ID of the NodeBalancer to access. | |
configId | int32 | The ID of the Config to access. |
Other parameters are passed through a pointer to a apiDeleteNodeBalancerConfigRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
map[string]interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} DeleteNodeBalancerConfigNode(ctx, apiVersion, nodeBalancerId, configId, nodeId).Execute()
Delete a NodeBalancer's node
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
apiVersion := "apiVersion_example" // string | __Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta. (default to "v4")
nodeBalancerId := int32(56) // int32 | The ID of the NodeBalancer to access.
configId := int32(56) // int32 | The ID of the Config to access.
nodeId := "nodeId_example" // string | The ID of the Node to access.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NodeBalancersAPI.DeleteNodeBalancerConfigNode(context.Background(), apiVersion, nodeBalancerId, configId, nodeId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeBalancersAPI.DeleteNodeBalancerConfigNode``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteNodeBalancerConfigNode`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `NodeBalancersAPI.DeleteNodeBalancerConfigNode`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
apiVersion | string | Enum Call either the `v4` URL, or `v4beta` for operations still in Beta. | [default to "v4"] |
nodeBalancerId | int32 | The ID of the NodeBalancer to access. | |
configId | int32 | The ID of the Config to access. | |
nodeId | string | The ID of the Node to access. |
Other parameters are passed through a pointer to a apiDeleteNodeBalancerConfigNodeRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
map[string]interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NodeBalancer GetNodeBalancer(ctx, apiVersion, nodeBalancerId).Execute()
Get a NodeBalancer
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
apiVersion := "apiVersion_example" // string | __Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta. (default to "v4")
nodeBalancerId := int32(56) // int32 | The ID of the NodeBalancer to access.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NodeBalancersAPI.GetNodeBalancer(context.Background(), apiVersion, nodeBalancerId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeBalancersAPI.GetNodeBalancer``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetNodeBalancer`: NodeBalancer
fmt.Fprintf(os.Stdout, "Response from `NodeBalancersAPI.GetNodeBalancer`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
apiVersion | string | Enum Call either the `v4` URL, or `v4beta` for operations still in Beta. | [default to "v4"] |
nodeBalancerId | int32 | The ID of the NodeBalancer to access. |
Other parameters are passed through a pointer to a apiGetNodeBalancerRequest 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]
GetNodeBalancerConfigs200ResponseDataInner GetNodeBalancerConfig(ctx, apiVersion, nodeBalancerId, configId).Execute()
Get a config
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
apiVersion := "apiVersion_example" // string | __Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta. (default to "v4")
nodeBalancerId := int32(56) // int32 | The ID of the NodeBalancer to access.
configId := int32(56) // int32 | The ID of the Config to access.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NodeBalancersAPI.GetNodeBalancerConfig(context.Background(), apiVersion, nodeBalancerId, configId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeBalancersAPI.GetNodeBalancerConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetNodeBalancerConfig`: GetNodeBalancerConfigs200ResponseDataInner
fmt.Fprintf(os.Stdout, "Response from `NodeBalancersAPI.GetNodeBalancerConfig`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
apiVersion | string | Enum Call either the `v4` URL, or `v4beta` for operations still in Beta. | [default to "v4"] |
nodeBalancerId | int32 | The ID of the NodeBalancer to access. | |
configId | int32 | The ID of the Config to access. |
Other parameters are passed through a pointer to a apiGetNodeBalancerConfigRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
GetNodeBalancerConfigs200ResponseDataInner
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetNodeBalancerConfigNodes200Response GetNodeBalancerConfigNodes(ctx, apiVersion, nodeBalancerId, configId).Page(page).PageSize(pageSize).Execute()
List nodes
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
apiVersion := "apiVersion_example" // string | __Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta. (default to "v4")
nodeBalancerId := int32(56) // int32 | The ID of the NodeBalancer to access.
configId := int32(56) // int32 | The ID of the NodeBalancer config to access.
page := int32(56) // int32 | The page of a collection to return. (optional) (default to 1)
pageSize := int32(56) // int32 | The number of items to return per page. (optional) (default to 100)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NodeBalancersAPI.GetNodeBalancerConfigNodes(context.Background(), apiVersion, nodeBalancerId, configId).Page(page).PageSize(pageSize).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeBalancersAPI.GetNodeBalancerConfigNodes``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetNodeBalancerConfigNodes`: GetNodeBalancerConfigNodes200Response
fmt.Fprintf(os.Stdout, "Response from `NodeBalancersAPI.GetNodeBalancerConfigNodes`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
apiVersion | string | Enum Call either the `v4` URL, or `v4beta` for operations still in Beta. | [default to "v4"] |
nodeBalancerId | int32 | The ID of the NodeBalancer to access. | |
configId | int32 | The ID of the NodeBalancer config to access. |
Other parameters are passed through a pointer to a apiGetNodeBalancerConfigNodesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
page | int32 | The page of a collection to return. | [default to 1] pageSize | int32 | The number of items to return per page. | [default to 100]
GetNodeBalancerConfigNodes200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetNodeBalancerConfigs200Response GetNodeBalancerConfigs(ctx, apiVersion, nodeBalancerId).Page(page).PageSize(pageSize).Execute()
List configs
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
apiVersion := "apiVersion_example" // string | __Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta. (default to "v4")
nodeBalancerId := int32(56) // int32 | The ID of the NodeBalancer to access.
page := int32(56) // int32 | The page of a collection to return. (optional) (default to 1)
pageSize := int32(56) // int32 | The number of items to return per page. (optional) (default to 100)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NodeBalancersAPI.GetNodeBalancerConfigs(context.Background(), apiVersion, nodeBalancerId).Page(page).PageSize(pageSize).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeBalancersAPI.GetNodeBalancerConfigs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetNodeBalancerConfigs`: GetNodeBalancerConfigs200Response
fmt.Fprintf(os.Stdout, "Response from `NodeBalancersAPI.GetNodeBalancerConfigs`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
apiVersion | string | Enum Call either the `v4` URL, or `v4beta` for operations still in Beta. | [default to "v4"] |
nodeBalancerId | int32 | The ID of the NodeBalancer to access. |
Other parameters are passed through a pointer to a apiGetNodeBalancerConfigsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
page | int32 | The page of a collection to return. | [default to 1] pageSize | int32 | The number of items to return per page. | [default to 100]
GetNodeBalancerConfigs200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetNodeBalancerFirewalls200Response GetNodeBalancerFirewalls(ctx, apiVersion, nodeBalancerId).Execute()
List NodeBalancer firewalls
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
apiVersion := "apiVersion_example" // string | __Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta. (default to "v4")
nodeBalancerId := int32(56) // int32 | The ID of the NodeBalancer to access.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NodeBalancersAPI.GetNodeBalancerFirewalls(context.Background(), apiVersion, nodeBalancerId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeBalancersAPI.GetNodeBalancerFirewalls``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetNodeBalancerFirewalls`: GetNodeBalancerFirewalls200Response
fmt.Fprintf(os.Stdout, "Response from `NodeBalancersAPI.GetNodeBalancerFirewalls`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
apiVersion | string | Enum Call either the `v4` URL, or `v4beta` for operations still in Beta. | [default to "v4"] |
nodeBalancerId | int32 | The ID of the NodeBalancer to access. |
Other parameters are passed through a pointer to a apiGetNodeBalancerFirewallsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
GetNodeBalancerFirewalls200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PostNodeBalancerRequestConfigsInnerNodesInner GetNodeBalancerNode(ctx, apiVersion, nodeBalancerId, configId, nodeId).Execute()
Get a NodeBalancer's node
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
apiVersion := "apiVersion_example" // string | __Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta. (default to "v4")
nodeBalancerId := int32(56) // int32 | The ID of the NodeBalancer to access.
configId := int32(56) // int32 | The ID of the Config to access.
nodeId := "nodeId_example" // string | The ID of the Node to access.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NodeBalancersAPI.GetNodeBalancerNode(context.Background(), apiVersion, nodeBalancerId, configId, nodeId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeBalancersAPI.GetNodeBalancerNode``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetNodeBalancerNode`: PostNodeBalancerRequestConfigsInnerNodesInner
fmt.Fprintf(os.Stdout, "Response from `NodeBalancersAPI.GetNodeBalancerNode`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
apiVersion | string | Enum Call either the `v4` URL, or `v4beta` for operations still in Beta. | [default to "v4"] |
nodeBalancerId | int32 | The ID of the NodeBalancer to access. | |
configId | int32 | The ID of the Config to access. | |
nodeId | string | The ID of the Node to access. |
Other parameters are passed through a pointer to a apiGetNodeBalancerNodeRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
PostNodeBalancerRequestConfigsInnerNodesInner
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetNodeBalancerStats200Response GetNodeBalancerStats(ctx, apiVersion, nodeBalancerId).Execute()
Get NodeBalancer statistics
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
apiVersion := "apiVersion_example" // string | __Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta. (default to "v4")
nodeBalancerId := int32(56) // int32 | The ID of the NodeBalancer to access.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NodeBalancersAPI.GetNodeBalancerStats(context.Background(), apiVersion, nodeBalancerId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeBalancersAPI.GetNodeBalancerStats``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetNodeBalancerStats`: GetNodeBalancerStats200Response
fmt.Fprintf(os.Stdout, "Response from `NodeBalancersAPI.GetNodeBalancerStats`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
apiVersion | string | Enum Call either the `v4` URL, or `v4beta` for operations still in Beta. | [default to "v4"] |
nodeBalancerId | int32 | The ID of the NodeBalancer to access. |
Other parameters are passed through a pointer to a apiGetNodeBalancerStatsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
GetNodeBalancerStats200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetNodeBalancerTypes200Response GetNodeBalancerTypes(ctx, apiVersion).Execute()
List NodeBalancer types
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
apiVersion := "apiVersion_example" // string | __Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta. (default to "v4")
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NodeBalancersAPI.GetNodeBalancerTypes(context.Background(), apiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeBalancersAPI.GetNodeBalancerTypes``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetNodeBalancerTypes`: GetNodeBalancerTypes200Response
fmt.Fprintf(os.Stdout, "Response from `NodeBalancersAPI.GetNodeBalancerTypes`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
apiVersion | string | Enum Call either the `v4` URL, or `v4beta` for operations still in Beta. | [default to "v4"] |
Other parameters are passed through a pointer to a apiGetNodeBalancerTypesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
GetNodeBalancerTypes200Response
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetLinodeNodeBalancers200Response GetNodeBalancers(ctx, apiVersion).Page(page).PageSize(pageSize).Execute()
List NodeBalancers
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
apiVersion := "apiVersion_example" // string | __Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta. (default to "v4")
page := int32(56) // int32 | The page of a collection to return. (optional) (default to 1)
pageSize := int32(56) // int32 | The number of items to return per page. (optional) (default to 100)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NodeBalancersAPI.GetNodeBalancers(context.Background(), apiVersion).Page(page).PageSize(pageSize).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeBalancersAPI.GetNodeBalancers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetNodeBalancers`: GetLinodeNodeBalancers200Response
fmt.Fprintf(os.Stdout, "Response from `NodeBalancersAPI.GetNodeBalancers`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
apiVersion | string | Enum Call either the `v4` URL, or `v4beta` for operations still in Beta. | [default to "v4"] |
Other parameters are passed through a pointer to a apiGetNodeBalancersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
page | int32 | The page of a collection to return. | [default to 1] pageSize | int32 | The number of items to return per page. | [default to 100]
GetLinodeNodeBalancers200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NodeBalancer PostNodeBalancer(ctx, apiVersion).PostNodeBalancerRequest(postNodeBalancerRequest).Execute()
Create a NodeBalancer
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
apiVersion := "apiVersion_example" // string | __Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta. (default to "v4")
postNodeBalancerRequest := *openapiclient.NewPostNodeBalancerRequest("us-east") // PostNodeBalancerRequest | Information about the NodeBalancer to create.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NodeBalancersAPI.PostNodeBalancer(context.Background(), apiVersion).PostNodeBalancerRequest(postNodeBalancerRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeBalancersAPI.PostNodeBalancer``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostNodeBalancer`: NodeBalancer
fmt.Fprintf(os.Stdout, "Response from `NodeBalancersAPI.PostNodeBalancer`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
apiVersion | string | Enum Call either the `v4` URL, or `v4beta` for operations still in Beta. | [default to "v4"] |
Other parameters are passed through a pointer to a apiPostNodeBalancerRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
postNodeBalancerRequest | PostNodeBalancerRequest | Information about the NodeBalancer to create. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetNodeBalancerConfigs200ResponseDataInner PostNodeBalancerConfig(ctx, apiVersion, nodeBalancerId).GetNodeBalancerConfigs200ResponseDataInner(getNodeBalancerConfigs200ResponseDataInner).Execute()
Create a config
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
apiVersion := "apiVersion_example" // string | __Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta. (default to "v4")
nodeBalancerId := int32(56) // int32 | The ID of the NodeBalancer to access.
getNodeBalancerConfigs200ResponseDataInner := *openapiclient.NewGetNodeBalancerConfigs200ResponseDataInner() // GetNodeBalancerConfigs200ResponseDataInner | Information about the port to configure. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NodeBalancersAPI.PostNodeBalancerConfig(context.Background(), apiVersion, nodeBalancerId).GetNodeBalancerConfigs200ResponseDataInner(getNodeBalancerConfigs200ResponseDataInner).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeBalancersAPI.PostNodeBalancerConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostNodeBalancerConfig`: GetNodeBalancerConfigs200ResponseDataInner
fmt.Fprintf(os.Stdout, "Response from `NodeBalancersAPI.PostNodeBalancerConfig`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
apiVersion | string | Enum Call either the `v4` URL, or `v4beta` for operations still in Beta. | [default to "v4"] |
nodeBalancerId | int32 | The ID of the NodeBalancer to access. |
Other parameters are passed through a pointer to a apiPostNodeBalancerConfigRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
getNodeBalancerConfigs200ResponseDataInner | GetNodeBalancerConfigs200ResponseDataInner | Information about the port to configure. |
GetNodeBalancerConfigs200ResponseDataInner
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PostNodeBalancerRequestConfigsInnerNodesInner PostNodeBalancerNode(ctx, apiVersion, nodeBalancerId, configId).PostNodeBalancerNodeRequest(postNodeBalancerNodeRequest).Execute()
Create a node
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
apiVersion := "apiVersion_example" // string | __Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta. (default to "v4")
nodeBalancerId := int32(56) // int32 | The ID of the NodeBalancer to access.
configId := int32(56) // int32 | The ID of the NodeBalancer config to access.
postNodeBalancerNodeRequest := *openapiclient.NewPostNodeBalancerNodeRequest("192.168.210.120:80", "node54321") // PostNodeBalancerNodeRequest | Information about the Node to create.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NodeBalancersAPI.PostNodeBalancerNode(context.Background(), apiVersion, nodeBalancerId, configId).PostNodeBalancerNodeRequest(postNodeBalancerNodeRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeBalancersAPI.PostNodeBalancerNode``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostNodeBalancerNode`: PostNodeBalancerRequestConfigsInnerNodesInner
fmt.Fprintf(os.Stdout, "Response from `NodeBalancersAPI.PostNodeBalancerNode`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
apiVersion | string | Enum Call either the `v4` URL, or `v4beta` for operations still in Beta. | [default to "v4"] |
nodeBalancerId | int32 | The ID of the NodeBalancer to access. | |
configId | int32 | The ID of the NodeBalancer config to access. |
Other parameters are passed through a pointer to a apiPostNodeBalancerNodeRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
postNodeBalancerNodeRequest | PostNodeBalancerNodeRequest | Information about the Node to create. |
PostNodeBalancerRequestConfigsInnerNodesInner
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetNodeBalancerConfigs200ResponseDataInner PostRebuildNodeBalancerConfig(ctx, apiVersion, nodeBalancerId, configId).PostRebuildNodeBalancerConfigRequest(postRebuildNodeBalancerConfigRequest).Execute()
Rebuild a config
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
apiVersion := "apiVersion_example" // string | __Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta. (default to "v4")
nodeBalancerId := int32(56) // int32 | The ID of the NodeBalancer to access.
configId := int32(56) // int32 | The ID of the Config to access.
postRebuildNodeBalancerConfigRequest := *openapiclient.NewPostRebuildNodeBalancerConfigRequest([]openapiclient.PostRebuildNodeBalancerConfigRequestAllOfNodesInner{*openapiclient.NewPostRebuildNodeBalancerConfigRequestAllOfNodesInner()}) // PostRebuildNodeBalancerConfigRequest | Information about the NodeBalancer Config to rebuild.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NodeBalancersAPI.PostRebuildNodeBalancerConfig(context.Background(), apiVersion, nodeBalancerId, configId).PostRebuildNodeBalancerConfigRequest(postRebuildNodeBalancerConfigRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeBalancersAPI.PostRebuildNodeBalancerConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostRebuildNodeBalancerConfig`: GetNodeBalancerConfigs200ResponseDataInner
fmt.Fprintf(os.Stdout, "Response from `NodeBalancersAPI.PostRebuildNodeBalancerConfig`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
apiVersion | string | Enum Call either the `v4` URL, or `v4beta` for operations still in Beta. | [default to "v4"] |
nodeBalancerId | int32 | The ID of the NodeBalancer to access. | |
configId | int32 | The ID of the Config to access. |
Other parameters are passed through a pointer to a apiPostRebuildNodeBalancerConfigRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
postRebuildNodeBalancerConfigRequest | PostRebuildNodeBalancerConfigRequest | Information about the NodeBalancer Config to rebuild. |
GetNodeBalancerConfigs200ResponseDataInner
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NodeBalancer PutNodeBalancer(ctx, apiVersion, nodeBalancerId).NodeBalancer(nodeBalancer).Execute()
Update a NodeBalancer
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
apiVersion := "apiVersion_example" // string | __Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta. (default to "v4")
nodeBalancerId := int32(56) // int32 | The ID of the NodeBalancer to access.
nodeBalancer := *openapiclient.NewNodeBalancer() // NodeBalancer | The information to update.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NodeBalancersAPI.PutNodeBalancer(context.Background(), apiVersion, nodeBalancerId).NodeBalancer(nodeBalancer).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeBalancersAPI.PutNodeBalancer``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PutNodeBalancer`: NodeBalancer
fmt.Fprintf(os.Stdout, "Response from `NodeBalancersAPI.PutNodeBalancer`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
apiVersion | string | Enum Call either the `v4` URL, or `v4beta` for operations still in Beta. | [default to "v4"] |
nodeBalancerId | int32 | The ID of the NodeBalancer to access. |
Other parameters are passed through a pointer to a apiPutNodeBalancerRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
nodeBalancer | NodeBalancer | The information to update. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetNodeBalancerConfigs200ResponseDataInner PutNodeBalancerConfig(ctx, apiVersion, nodeBalancerId, configId).GetNodeBalancerConfigs200ResponseDataInner(getNodeBalancerConfigs200ResponseDataInner).Execute()
Update a config
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
apiVersion := "apiVersion_example" // string | __Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta. (default to "v4")
nodeBalancerId := int32(56) // int32 | The ID of the NodeBalancer to access.
configId := int32(56) // int32 | The ID of the Config to access.
getNodeBalancerConfigs200ResponseDataInner := *openapiclient.NewGetNodeBalancerConfigs200ResponseDataInner() // GetNodeBalancerConfigs200ResponseDataInner | The fields to update.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NodeBalancersAPI.PutNodeBalancerConfig(context.Background(), apiVersion, nodeBalancerId, configId).GetNodeBalancerConfigs200ResponseDataInner(getNodeBalancerConfigs200ResponseDataInner).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeBalancersAPI.PutNodeBalancerConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PutNodeBalancerConfig`: GetNodeBalancerConfigs200ResponseDataInner
fmt.Fprintf(os.Stdout, "Response from `NodeBalancersAPI.PutNodeBalancerConfig`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
apiVersion | string | Enum Call either the `v4` URL, or `v4beta` for operations still in Beta. | [default to "v4"] |
nodeBalancerId | int32 | The ID of the NodeBalancer to access. | |
configId | int32 | The ID of the Config to access. |
Other parameters are passed through a pointer to a apiPutNodeBalancerConfigRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
getNodeBalancerConfigs200ResponseDataInner | GetNodeBalancerConfigs200ResponseDataInner | The fields to update. |
GetNodeBalancerConfigs200ResponseDataInner
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PostNodeBalancerRequestConfigsInnerNodesInner PutNodeBalancerNode(ctx, apiVersion, nodeBalancerId, configId, nodeId).PostNodeBalancerRequestConfigsInnerNodesInner(postNodeBalancerRequestConfigsInnerNodesInner).Execute()
Update a node
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
apiVersion := "apiVersion_example" // string | __Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta. (default to "v4")
nodeBalancerId := int32(56) // int32 | The ID of the NodeBalancer to access.
configId := int32(56) // int32 | The ID of the Config to access.
nodeId := "nodeId_example" // string | The ID of the Node to access.
postNodeBalancerRequestConfigsInnerNodesInner := *openapiclient.NewPostNodeBalancerRequestConfigsInnerNodesInner() // PostNodeBalancerRequestConfigsInnerNodesInner | The fields to update.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NodeBalancersAPI.PutNodeBalancerNode(context.Background(), apiVersion, nodeBalancerId, configId, nodeId).PostNodeBalancerRequestConfigsInnerNodesInner(postNodeBalancerRequestConfigsInnerNodesInner).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NodeBalancersAPI.PutNodeBalancerNode``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PutNodeBalancerNode`: PostNodeBalancerRequestConfigsInnerNodesInner
fmt.Fprintf(os.Stdout, "Response from `NodeBalancersAPI.PutNodeBalancerNode`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
apiVersion | string | Enum Call either the `v4` URL, or `v4beta` for operations still in Beta. | [default to "v4"] |
nodeBalancerId | int32 | The ID of the NodeBalancer to access. | |
configId | int32 | The ID of the Config to access. | |
nodeId | string | The ID of the Node to access. |
Other parameters are passed through a pointer to a apiPutNodeBalancerNodeRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
postNodeBalancerRequestConfigsInnerNodesInner | PostNodeBalancerRequestConfigsInnerNodesInner | The fields to update. |
PostNodeBalancerRequestConfigsInnerNodesInner
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]