All URIs are relative to https://api.beget.com
Method | HTTP request | Description |
---|---|---|
MysqlServiceChangeAccessPassword | Patch /v1/cloud/mysql/{service_id}/db/{db_name}/access/{host} | |
MysqlServiceCreateAccess | Post /v1/cloud/mysql/{service_id}/db/{db_name}/access | |
MysqlServiceCreateDb | Post /v1/cloud/mysql/{service_id}/db | |
MysqlServiceGetConfig | Get /v1/cloud/mysql/{service_id}/config | |
MysqlServiceGetDbList | Get /v1/cloud/mysql/{service_id}/db | |
MysqlServiceRemoveAccess | Delete /v1/cloud/mysql/{service_id}/db/{db_name}/access/{host} | |
MysqlServiceRemoveDb | Delete /v1/cloud/mysql/{service_id}/db/{db_name} | |
MysqlServiceSetConfig | Put /v1/cloud/mysql/{service_id}/config | |
MysqlServiceUpdateDb | Patch /v1/cloud/mysql/{service_id}/db/{db_name} |
MysqlChangeAccessPasswordResponse MysqlServiceChangeAccessPassword(ctx, serviceId, dbName, host).MysqlChangeAccessPasswordRequest(mysqlChangeAccessPasswordRequest).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
serviceId := "serviceId_example" // string |
dbName := "dbName_example" // string |
host := "host_example" // string |
mysqlChangeAccessPasswordRequest := *openapiclient.NewMysqlChangeAccessPasswordRequest() // MysqlChangeAccessPasswordRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.MysqlServiceApi.MysqlServiceChangeAccessPassword(context.Background(), serviceId, dbName, host).MysqlChangeAccessPasswordRequest(mysqlChangeAccessPasswordRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MysqlServiceApi.MysqlServiceChangeAccessPassword``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MysqlServiceChangeAccessPassword`: MysqlChangeAccessPasswordResponse
fmt.Fprintf(os.Stdout, "Response from `MysqlServiceApi.MysqlServiceChangeAccessPassword`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
serviceId | string | ||
dbName | string | ||
host | string |
Other parameters are passed through a pointer to a apiMysqlServiceChangeAccessPasswordRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
mysqlChangeAccessPasswordRequest | MysqlChangeAccessPasswordRequest | |
MysqlChangeAccessPasswordResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MysqlCreateAccessResponse MysqlServiceCreateAccess(ctx, serviceId, dbName).MysqlCreateAccessRequest(mysqlCreateAccessRequest).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
serviceId := "serviceId_example" // string |
dbName := "dbName_example" // string |
mysqlCreateAccessRequest := *openapiclient.NewMysqlCreateAccessRequest() // MysqlCreateAccessRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.MysqlServiceApi.MysqlServiceCreateAccess(context.Background(), serviceId, dbName).MysqlCreateAccessRequest(mysqlCreateAccessRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MysqlServiceApi.MysqlServiceCreateAccess``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MysqlServiceCreateAccess`: MysqlCreateAccessResponse
fmt.Fprintf(os.Stdout, "Response from `MysqlServiceApi.MysqlServiceCreateAccess`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
serviceId | string | ||
dbName | string |
Other parameters are passed through a pointer to a apiMysqlServiceCreateAccessRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
mysqlCreateAccessRequest | MysqlCreateAccessRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MysqlCreateDbResponse MysqlServiceCreateDb(ctx, serviceId).MysqlCreateDbRequest(mysqlCreateDbRequest).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
serviceId := "serviceId_example" // string |
mysqlCreateDbRequest := *openapiclient.NewMysqlCreateDbRequest() // MysqlCreateDbRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.MysqlServiceApi.MysqlServiceCreateDb(context.Background(), serviceId).MysqlCreateDbRequest(mysqlCreateDbRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MysqlServiceApi.MysqlServiceCreateDb``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MysqlServiceCreateDb`: MysqlCreateDbResponse
fmt.Fprintf(os.Stdout, "Response from `MysqlServiceApi.MysqlServiceCreateDb`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
serviceId | string |
Other parameters are passed through a pointer to a apiMysqlServiceCreateDbRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
mysqlCreateDbRequest | MysqlCreateDbRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MysqlGetConfigResponse MysqlServiceGetConfig(ctx, serviceId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
serviceId := "serviceId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.MysqlServiceApi.MysqlServiceGetConfig(context.Background(), serviceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MysqlServiceApi.MysqlServiceGetConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MysqlServiceGetConfig`: MysqlGetConfigResponse
fmt.Fprintf(os.Stdout, "Response from `MysqlServiceApi.MysqlServiceGetConfig`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
serviceId | string |
Other parameters are passed through a pointer to a apiMysqlServiceGetConfigRequest 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]
MysqlGetDbListResponse MysqlServiceGetDbList(ctx, serviceId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
serviceId := "serviceId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.MysqlServiceApi.MysqlServiceGetDbList(context.Background(), serviceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MysqlServiceApi.MysqlServiceGetDbList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MysqlServiceGetDbList`: MysqlGetDbListResponse
fmt.Fprintf(os.Stdout, "Response from `MysqlServiceApi.MysqlServiceGetDbList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
serviceId | string |
Other parameters are passed through a pointer to a apiMysqlServiceGetDbListRequest 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]
MysqlRemoveAccessResponse MysqlServiceRemoveAccess(ctx, serviceId, dbName, host).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
serviceId := "serviceId_example" // string |
dbName := "dbName_example" // string |
host := "host_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.MysqlServiceApi.MysqlServiceRemoveAccess(context.Background(), serviceId, dbName, host).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MysqlServiceApi.MysqlServiceRemoveAccess``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MysqlServiceRemoveAccess`: MysqlRemoveAccessResponse
fmt.Fprintf(os.Stdout, "Response from `MysqlServiceApi.MysqlServiceRemoveAccess`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
serviceId | string | ||
dbName | string | ||
host | string |
Other parameters are passed through a pointer to a apiMysqlServiceRemoveAccessRequest 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]
MysqlRemoveDbResponse MysqlServiceRemoveDb(ctx, serviceId, dbName).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
serviceId := "serviceId_example" // string |
dbName := "dbName_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.MysqlServiceApi.MysqlServiceRemoveDb(context.Background(), serviceId, dbName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MysqlServiceApi.MysqlServiceRemoveDb``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MysqlServiceRemoveDb`: MysqlRemoveDbResponse
fmt.Fprintf(os.Stdout, "Response from `MysqlServiceApi.MysqlServiceRemoveDb`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
serviceId | string | ||
dbName | string |
Other parameters are passed through a pointer to a apiMysqlServiceRemoveDbRequest 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]
MysqlSetConfigResponse MysqlServiceSetConfig(ctx, serviceId).MysqlSetConfigRequest(mysqlSetConfigRequest).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
serviceId := "serviceId_example" // string |
mysqlSetConfigRequest := *openapiclient.NewMysqlSetConfigRequest() // MysqlSetConfigRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.MysqlServiceApi.MysqlServiceSetConfig(context.Background(), serviceId).MysqlSetConfigRequest(mysqlSetConfigRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MysqlServiceApi.MysqlServiceSetConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MysqlServiceSetConfig`: MysqlSetConfigResponse
fmt.Fprintf(os.Stdout, "Response from `MysqlServiceApi.MysqlServiceSetConfig`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
serviceId | string |
Other parameters are passed through a pointer to a apiMysqlServiceSetConfigRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
mysqlSetConfigRequest | MysqlSetConfigRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MysqlUpdateDbResponse MysqlServiceUpdateDb(ctx, serviceId, dbName).MysqlUpdateDbRequest(mysqlUpdateDbRequest).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
serviceId := "serviceId_example" // string |
dbName := "dbName_example" // string |
mysqlUpdateDbRequest := *openapiclient.NewMysqlUpdateDbRequest() // MysqlUpdateDbRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.MysqlServiceApi.MysqlServiceUpdateDb(context.Background(), serviceId, dbName).MysqlUpdateDbRequest(mysqlUpdateDbRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MysqlServiceApi.MysqlServiceUpdateDb``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MysqlServiceUpdateDb`: MysqlUpdateDbResponse
fmt.Fprintf(os.Stdout, "Response from `MysqlServiceApi.MysqlServiceUpdateDb`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
serviceId | string | ||
dbName | string |
Other parameters are passed through a pointer to a apiMysqlServiceUpdateDbRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
mysqlUpdateDbRequest | MysqlUpdateDbRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]