Skip to content

Latest commit

 

History

History
81 lines (51 loc) · 2.13 KB

File metadata and controls

81 lines (51 loc) · 2.13 KB

\UniverseActionsAPI

All URIs are relative to http://localhost

Method HTTP request Description
ImportUniverse Post /api/v1/customers/{cUUID}/universes/import Import a universe - deprecated

ImportUniverse

ImportUniverseFormData ImportUniverse(ctx, cUUID).Request(request).Execute()

Import a universe - deprecated

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/yugabyte/platform-go-client/v1"
)

func main() {
	cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | 
	request := TODO // interface{} |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.UniverseActionsAPI.ImportUniverse(context.Background(), cUUID).Request(request).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `UniverseActionsAPI.ImportUniverse``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ImportUniverse`: ImportUniverseFormData
	fmt.Fprintf(os.Stdout, "Response from `UniverseActionsAPI.ImportUniverse`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
cUUID string

Other Parameters

Other parameters are passed through a pointer to a apiImportUniverseRequest struct via the builder pattern

Name Type Description Notes

request | interface{} | |

Return type

ImportUniverseFormData

Authorization

apiKeyAuth

HTTP request headers

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

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