All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| ConfigureUniverseAlerts | Post /api/v1/customers/{cUUID}/universes/{uniUUID}/config_alerts | Configure alerts for a universe |
| DeleteUniverse | Delete /api/v1/customers/{cUUID}/universes/{uniUUID} | Delete a universe |
| GetUniverse | Get /api/v1/customers/{cUUID}/universes/{uniUUID} | Get a universe |
| ListUniverses | Get /api/v1/customers/{cUUID}/universes | List universes |
| PauseUniverse | Post /api/v1/customers/{cUUID}/universes/{uniUUID}/pause | Pause a universe |
| ResetUniverseVersion | Put /api/v1/customers/{cUUID}/universes/{uniUUID}/setup_universe_2dc | Reset universe version |
| ResumeUniverse | Post /api/v1/customers/{cUUID}/universes/{uniUUID}/resume | Resume a paused universe |
| SetUniverseBackupFlag | Put /api/v1/customers/{cUUID}/universes/{uniUUID}/update_backup_state | Set a universe's backup flag |
| SetUniverseHelm3Compatible | Put /api/v1/customers/{cUUID}/universes/{uniUUID}/mark_helm3_compatible | Flag a universe as Helm 3-compatible - deprecated |
| SetUniverseKey | Post /api/v1/customers/{cUUID}/universes/{uniUUID}/set_key | Set a universe's key |
| UpdateLoadBalancerConfig | Put /api/v1/customers/{cUUID}/universes/{uniUUID}/update_lb_config | Update load balancer config |
YBPSuccess ConfigureUniverseAlerts(ctx, cUUID, uniUUID).Request(request).Execute()
Configure alerts for a universe
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uniUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UniverseManagementAPI.ConfigureUniverseAlerts(context.Background(), cUUID, uniUUID).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UniverseManagementAPI.ConfigureUniverseAlerts``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ConfigureUniverseAlerts`: YBPSuccess
fmt.Fprintf(os.Stdout, "Response from `UniverseManagementAPI.ConfigureUniverseAlerts`: %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 apiConfigureUniverseAlertsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
request | interface{} | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
YBPTask DeleteUniverse(ctx, cUUID, uniUUID).IsForceDelete(isForceDelete).IsDeleteBackups(isDeleteBackups).IsDeleteAssociatedCerts(isDeleteAssociatedCerts).Request(request).Execute()
Delete a universe
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uniUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
isForceDelete := true // bool | (optional) (default to false)
isDeleteBackups := true // bool | (optional) (default to false)
isDeleteAssociatedCerts := true // bool | (optional) (default to false)
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UniverseManagementAPI.DeleteUniverse(context.Background(), cUUID, uniUUID).IsForceDelete(isForceDelete).IsDeleteBackups(isDeleteBackups).IsDeleteAssociatedCerts(isDeleteAssociatedCerts).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UniverseManagementAPI.DeleteUniverse``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteUniverse`: YBPTask
fmt.Fprintf(os.Stdout, "Response from `UniverseManagementAPI.DeleteUniverse`: %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 apiDeleteUniverseRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
isForceDelete | bool | | [default to false] isDeleteBackups | bool | | [default to false] isDeleteAssociatedCerts | bool | | [default to false] request | interface{} | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UniverseResp GetUniverse(ctx, cUUID, uniUUID).Execute()
Get a universe
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uniUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UniverseManagementAPI.GetUniverse(context.Background(), cUUID, uniUUID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UniverseManagementAPI.GetUniverse``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetUniverse`: UniverseResp
fmt.Fprintf(os.Stdout, "Response from `UniverseManagementAPI.GetUniverse`: %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 apiGetUniverseRequest 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]
[]UniverseResp ListUniverses(ctx, cUUID).Name(name).Execute()
List universes
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
name := "name_example" // string | (optional) (default to "null")
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UniverseManagementAPI.ListUniverses(context.Background(), cUUID).Name(name).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UniverseManagementAPI.ListUniverses``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListUniverses`: []UniverseResp
fmt.Fprintf(os.Stdout, "Response from `UniverseManagementAPI.ListUniverses`: %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 apiListUniversesRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
name | string | | [default to "null"]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
YBPTask PauseUniverse(ctx, cUUID, uniUUID).Request(request).Execute()
Pause a universe
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uniUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UniverseManagementAPI.PauseUniverse(context.Background(), cUUID, uniUUID).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UniverseManagementAPI.PauseUniverse``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PauseUniverse`: YBPTask
fmt.Fprintf(os.Stdout, "Response from `UniverseManagementAPI.PauseUniverse`: %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 apiPauseUniverseRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
request | interface{} | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
YBPSuccess ResetUniverseVersion(ctx, cUUID, uniUUID).Request(request).Execute()
Reset universe version
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uniUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UniverseManagementAPI.ResetUniverseVersion(context.Background(), cUUID, uniUUID).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UniverseManagementAPI.ResetUniverseVersion``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ResetUniverseVersion`: YBPSuccess
fmt.Fprintf(os.Stdout, "Response from `UniverseManagementAPI.ResetUniverseVersion`: %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 apiResetUniverseVersionRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
request | interface{} | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
YBPTask ResumeUniverse(ctx, cUUID, uniUUID).Request(request).Execute()
Resume a paused universe
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uniUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UniverseManagementAPI.ResumeUniverse(context.Background(), cUUID, uniUUID).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UniverseManagementAPI.ResumeUniverse``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ResumeUniverse`: YBPTask
fmt.Fprintf(os.Stdout, "Response from `UniverseManagementAPI.ResumeUniverse`: %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 apiResumeUniverseRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
request | interface{} | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
YBPSuccess SetUniverseBackupFlag(ctx, cUUID, uniUUID).MarkActive(markActive).Request(request).Execute()
Set a universe's backup flag
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uniUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
markActive := true // bool | (optional)
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UniverseManagementAPI.SetUniverseBackupFlag(context.Background(), cUUID, uniUUID).MarkActive(markActive).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UniverseManagementAPI.SetUniverseBackupFlag``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SetUniverseBackupFlag`: YBPSuccess
fmt.Fprintf(os.Stdout, "Response from `UniverseManagementAPI.SetUniverseBackupFlag`: %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 apiSetUniverseBackupFlagRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
markActive | bool | | request | interface{} | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
YBPSuccess SetUniverseHelm3Compatible(ctx, cUUID, uniUUID).Request(request).Execute()
Flag a universe as Helm 3-compatible - deprecated
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uniUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UniverseManagementAPI.SetUniverseHelm3Compatible(context.Background(), cUUID, uniUUID).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UniverseManagementAPI.SetUniverseHelm3Compatible``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SetUniverseHelm3Compatible`: YBPSuccess
fmt.Fprintf(os.Stdout, "Response from `UniverseManagementAPI.SetUniverseHelm3Compatible`: %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 apiSetUniverseHelm3CompatibleRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
request | interface{} | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UniverseResp SetUniverseKey(ctx, cUUID, uniUUID).SetUniverseKeyRequest(setUniverseKeyRequest).Request(request).Execute()
Set a universe's key
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uniUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
setUniverseKeyRequest := *openapiclient.NewEncryptionAtRestConfig() // EncryptionAtRestConfig |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UniverseManagementAPI.SetUniverseKey(context.Background(), cUUID, uniUUID).SetUniverseKeyRequest(setUniverseKeyRequest).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UniverseManagementAPI.SetUniverseKey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SetUniverseKey`: UniverseResp
fmt.Fprintf(os.Stdout, "Response from `UniverseManagementAPI.SetUniverseKey`: %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 apiSetUniverseKeyRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
setUniverseKeyRequest | EncryptionAtRestConfig | | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateLoadBalancerConfig UpdateLoadBalancerConfig(ctx, cUUID, uniUUID).Request(request).Execute()
Update load balancer config
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uniUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UniverseManagementAPI.UpdateLoadBalancerConfig(context.Background(), cUUID, uniUUID).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UniverseManagementAPI.UpdateLoadBalancerConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateLoadBalancerConfig`: UpdateLoadBalancerConfig
fmt.Fprintf(os.Stdout, "Response from `UniverseManagementAPI.UpdateLoadBalancerConfig`: %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 apiUpdateLoadBalancerConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
request | interface{} | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]