All URIs are relative to https://api.beget.com
Method | HTTP request | Description |
---|---|---|
PostgresqlServiceCreateDb | Post /v1/cloud/postgresql/{service_id}/db | |
PostgresqlServiceCreateRole | Post /v1/cloud/postgresql/{service_id}/role | |
PostgresqlServiceGetConfig | Get /v1/cloud/postgresql/{service_id}/config | |
PostgresqlServiceGetDbList | Get /v1/cloud/postgresql/{service_id}/db | |
PostgresqlServiceGetRemoteAccess | Get /v1/cloud/postgresql/{service_id}/remote-access | |
PostgresqlServiceGetRoleList | Get /v1/cloud/postgresql/{service_id}/role | |
PostgresqlServiceRemoveDb | Delete /v1/cloud/postgresql/{service_id}/db/{db_name} | |
PostgresqlServiceRemoveRole | Delete /v1/cloud/postgresql/{service_id}/role/{role_name} | |
PostgresqlServiceSetConfig | Put /v1/cloud/postgresql/{service_id}/config | |
PostgresqlServiceUpdateDb | Patch /v1/cloud/postgresql/{service_id}/db/{db_name} | |
PostgresqlServiceUpdateRemoteAccess | Put /v1/cloud/postgresql/{service_id}/remote-access | |
PostgresqlServiceUpdateRole | Patch /v1/cloud/postgresql/{service_id}/role/{role_name} |
PostgresqlPgCreateDbResponse PostgresqlServiceCreateDb(ctx, serviceId).PostgresqlPgCreateDbRequest(postgresqlPgCreateDbRequest).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
serviceId := "serviceId_example" // string |
postgresqlPgCreateDbRequest := *openapiclient.NewPostgresqlPgCreateDbRequest() // PostgresqlPgCreateDbRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PostgresqlServiceApi.PostgresqlServiceCreateDb(context.Background(), serviceId).PostgresqlPgCreateDbRequest(postgresqlPgCreateDbRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceCreateDb``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostgresqlServiceCreateDb`: PostgresqlPgCreateDbResponse
fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceCreateDb`: %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 apiPostgresqlServiceCreateDbRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
postgresqlPgCreateDbRequest | PostgresqlPgCreateDbRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PostgresqlPgCreateRoleResponse PostgresqlServiceCreateRole(ctx, serviceId).PostgresqlPgCreateRoleRequest(postgresqlPgCreateRoleRequest).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
serviceId := "serviceId_example" // string |
postgresqlPgCreateRoleRequest := *openapiclient.NewPostgresqlPgCreateRoleRequest() // PostgresqlPgCreateRoleRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PostgresqlServiceApi.PostgresqlServiceCreateRole(context.Background(), serviceId).PostgresqlPgCreateRoleRequest(postgresqlPgCreateRoleRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceCreateRole``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostgresqlServiceCreateRole`: PostgresqlPgCreateRoleResponse
fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceCreateRole`: %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 apiPostgresqlServiceCreateRoleRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
postgresqlPgCreateRoleRequest | PostgresqlPgCreateRoleRequest | |
PostgresqlPgCreateRoleResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PostgresqlPgGetConfigResponse PostgresqlServiceGetConfig(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.PostgresqlServiceApi.PostgresqlServiceGetConfig(context.Background(), serviceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceGetConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostgresqlServiceGetConfig`: PostgresqlPgGetConfigResponse
fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceGetConfig`: %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 apiPostgresqlServiceGetConfigRequest 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]
PostgresqlPgGetDbListResponse PostgresqlServiceGetDbList(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.PostgresqlServiceApi.PostgresqlServiceGetDbList(context.Background(), serviceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceGetDbList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostgresqlServiceGetDbList`: PostgresqlPgGetDbListResponse
fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceGetDbList`: %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 apiPostgresqlServiceGetDbListRequest 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]
PostgresqlPgGetRemoteAccessResponse PostgresqlServiceGetRemoteAccess(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.PostgresqlServiceApi.PostgresqlServiceGetRemoteAccess(context.Background(), serviceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceGetRemoteAccess``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostgresqlServiceGetRemoteAccess`: PostgresqlPgGetRemoteAccessResponse
fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceGetRemoteAccess`: %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 apiPostgresqlServiceGetRemoteAccessRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
PostgresqlPgGetRemoteAccessResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PostgresqlPgGetRoleListResponse PostgresqlServiceGetRoleList(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.PostgresqlServiceApi.PostgresqlServiceGetRoleList(context.Background(), serviceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceGetRoleList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostgresqlServiceGetRoleList`: PostgresqlPgGetRoleListResponse
fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceGetRoleList`: %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 apiPostgresqlServiceGetRoleListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
PostgresqlPgGetRoleListResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PostgresqlPgRemoveDbResponse PostgresqlServiceRemoveDb(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.PostgresqlServiceApi.PostgresqlServiceRemoveDb(context.Background(), serviceId, dbName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceRemoveDb``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostgresqlServiceRemoveDb`: PostgresqlPgRemoveDbResponse
fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceRemoveDb`: %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 apiPostgresqlServiceRemoveDbRequest 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]
PostgresqlPgRemoveRoleResponse PostgresqlServiceRemoveRole(ctx, serviceId, roleName).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
serviceId := "serviceId_example" // string |
roleName := "roleName_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PostgresqlServiceApi.PostgresqlServiceRemoveRole(context.Background(), serviceId, roleName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceRemoveRole``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostgresqlServiceRemoveRole`: PostgresqlPgRemoveRoleResponse
fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceRemoveRole`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
serviceId | string | ||
roleName | string |
Other parameters are passed through a pointer to a apiPostgresqlServiceRemoveRoleRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
PostgresqlPgRemoveRoleResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PostgresqlPgSetConfigResponse PostgresqlServiceSetConfig(ctx, serviceId).PostgresqlPgSetConfigRequest(postgresqlPgSetConfigRequest).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
serviceId := "serviceId_example" // string |
postgresqlPgSetConfigRequest := *openapiclient.NewPostgresqlPgSetConfigRequest() // PostgresqlPgSetConfigRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PostgresqlServiceApi.PostgresqlServiceSetConfig(context.Background(), serviceId).PostgresqlPgSetConfigRequest(postgresqlPgSetConfigRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceSetConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostgresqlServiceSetConfig`: PostgresqlPgSetConfigResponse
fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceSetConfig`: %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 apiPostgresqlServiceSetConfigRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
postgresqlPgSetConfigRequest | PostgresqlPgSetConfigRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PostgresqlPgUpdateDbResponse PostgresqlServiceUpdateDb(ctx, serviceId, dbName).PostgresqlPgUpdateDbRequest(postgresqlPgUpdateDbRequest).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
serviceId := "serviceId_example" // string |
dbName := "dbName_example" // string |
postgresqlPgUpdateDbRequest := *openapiclient.NewPostgresqlPgUpdateDbRequest() // PostgresqlPgUpdateDbRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PostgresqlServiceApi.PostgresqlServiceUpdateDb(context.Background(), serviceId, dbName).PostgresqlPgUpdateDbRequest(postgresqlPgUpdateDbRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceUpdateDb``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostgresqlServiceUpdateDb`: PostgresqlPgUpdateDbResponse
fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceUpdateDb`: %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 apiPostgresqlServiceUpdateDbRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
postgresqlPgUpdateDbRequest | PostgresqlPgUpdateDbRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PostgresqlPgUpdateRemoteAccessResponse PostgresqlServiceUpdateRemoteAccess(ctx, serviceId).PostgresqlPgUpdateRemoteAccessRequest(postgresqlPgUpdateRemoteAccessRequest).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
serviceId := "serviceId_example" // string |
postgresqlPgUpdateRemoteAccessRequest := *openapiclient.NewPostgresqlPgUpdateRemoteAccessRequest() // PostgresqlPgUpdateRemoteAccessRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PostgresqlServiceApi.PostgresqlServiceUpdateRemoteAccess(context.Background(), serviceId).PostgresqlPgUpdateRemoteAccessRequest(postgresqlPgUpdateRemoteAccessRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceUpdateRemoteAccess``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostgresqlServiceUpdateRemoteAccess`: PostgresqlPgUpdateRemoteAccessResponse
fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceUpdateRemoteAccess`: %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 apiPostgresqlServiceUpdateRemoteAccessRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
postgresqlPgUpdateRemoteAccessRequest | PostgresqlPgUpdateRemoteAccessRequest | |
PostgresqlPgUpdateRemoteAccessResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PostgresqlPgUpdateRoleResponse PostgresqlServiceUpdateRole(ctx, serviceId, roleName).PostgresqlPgUpdateRoleRequest(postgresqlPgUpdateRoleRequest).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
serviceId := "serviceId_example" // string |
roleName := "roleName_example" // string |
postgresqlPgUpdateRoleRequest := *openapiclient.NewPostgresqlPgUpdateRoleRequest() // PostgresqlPgUpdateRoleRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PostgresqlServiceApi.PostgresqlServiceUpdateRole(context.Background(), serviceId, roleName).PostgresqlPgUpdateRoleRequest(postgresqlPgUpdateRoleRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceUpdateRole``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostgresqlServiceUpdateRole`: PostgresqlPgUpdateRoleResponse
fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceUpdateRole`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
serviceId | string | ||
roleName | string |
Other parameters are passed through a pointer to a apiPostgresqlServiceUpdateRoleRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
postgresqlPgUpdateRoleRequest | PostgresqlPgUpdateRoleRequest | |
PostgresqlPgUpdateRoleResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]