All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| ImportSettings | Post /import | Import settings |
[]map[string]interface{} ImportSettings(ctx).Body(body).TimeoutSeconds(timeoutSeconds).Namespace(namespace).Unlocked(unlocked).Locked(locked).Execute()
Import settings
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
body := "body_example" // string |
timeoutSeconds := int64(789) // int64 | (optional)
namespace := "namespace_example" // string | (optional)
unlocked := "unlocked_example" // string | (optional)
locked := "locked_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ImportApi.ImportSettings(context.Background()).Body(body).TimeoutSeconds(timeoutSeconds).Namespace(namespace).Unlocked(unlocked).Locked(locked).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ImportApi.ImportSettings``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ImportSettings`: []map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `ImportApi.ImportSettings`: %v\n", resp)
}Other parameters are passed through a pointer to a apiImportSettingsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| body | string | ||
| timeoutSeconds | int64 | ||
| namespace | string | ||
| unlocked | string | ||
| locked | string |
[]map[string]interface{}
ApiToken, ServiceBearer, ServiceToken
- Content-Type: plain/text
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]