All URIs are relative to https://api.beget.com
| Method | HTTP request | Description |
|---|---|---|
| NetworkDriveServiceGetLimits | Get /v1/cloud/network-drive/limits | |
| NetworkDriveServiceGetMounts | Get /v1/cloud/network-drive/mounts | |
| NetworkDriveServiceGetPrice | Get /v1/cloud/network-drive/price | |
| NetworkDriveServiceMount | Post /v1/cloud/network-drive/{service_id}/mount | |
| NetworkDriveServiceResize | Post /v1/cloud/network-drive/{service_id}/resize | |
| NetworkDriveServiceSetMounts | Post /v1/cloud/network-drive/mounts | |
| NetworkDriveServiceUnmount | Post /v1/cloud/network-drive/{service_id}/unmount |
NetworkDriveGetLimitsResponse NetworkDriveServiceGetLimits(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/LTD-Beget/openapi-cloud-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NetworkDriveServiceApi.NetworkDriveServiceGetLimits(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkDriveServiceApi.NetworkDriveServiceGetLimits``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NetworkDriveServiceGetLimits`: NetworkDriveGetLimitsResponse
fmt.Fprintf(os.Stdout, "Response from `NetworkDriveServiceApi.NetworkDriveServiceGetLimits`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiNetworkDriveServiceGetLimitsRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NetworkDriveGetMountsResponse NetworkDriveServiceGetMounts(ctx).ResourceId(resourceId).ResourceType(resourceType).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/LTD-Beget/openapi-cloud-go"
)
func main() {
resourceId := "resourceId_example" // string | (optional)
resourceType := "resourceType_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NetworkDriveServiceApi.NetworkDriveServiceGetMounts(context.Background()).ResourceId(resourceId).ResourceType(resourceType).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkDriveServiceApi.NetworkDriveServiceGetMounts``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NetworkDriveServiceGetMounts`: NetworkDriveGetMountsResponse
fmt.Fprintf(os.Stdout, "Response from `NetworkDriveServiceApi.NetworkDriveServiceGetMounts`: %v\n", resp)
}Other parameters are passed through a pointer to a apiNetworkDriveServiceGetMountsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| resourceId | string | ||
| resourceType | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NetworkDriveGetPriceResponse NetworkDriveServiceGetPrice(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/LTD-Beget/openapi-cloud-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NetworkDriveServiceApi.NetworkDriveServiceGetPrice(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkDriveServiceApi.NetworkDriveServiceGetPrice``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NetworkDriveServiceGetPrice`: NetworkDriveGetPriceResponse
fmt.Fprintf(os.Stdout, "Response from `NetworkDriveServiceApi.NetworkDriveServiceGetPrice`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiNetworkDriveServiceGetPriceRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NetworkDriveMountResponse NetworkDriveServiceMount(ctx, serviceId).NetworkDriveMountRequest(networkDriveMountRequest).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/LTD-Beget/openapi-cloud-go"
)
func main() {
serviceId := "serviceId_example" // string |
networkDriveMountRequest := *openapiclient.NewNetworkDriveMountRequest() // NetworkDriveMountRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NetworkDriveServiceApi.NetworkDriveServiceMount(context.Background(), serviceId).NetworkDriveMountRequest(networkDriveMountRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkDriveServiceApi.NetworkDriveServiceMount``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NetworkDriveServiceMount`: NetworkDriveMountResponse
fmt.Fprintf(os.Stdout, "Response from `NetworkDriveServiceApi.NetworkDriveServiceMount`: %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 apiNetworkDriveServiceMountRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
networkDriveMountRequest | NetworkDriveMountRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NetworkDriveResizeResponse NetworkDriveServiceResize(ctx, serviceId).NetworkDriveResizeRequest(networkDriveResizeRequest).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/LTD-Beget/openapi-cloud-go"
)
func main() {
serviceId := "serviceId_example" // string |
networkDriveResizeRequest := *openapiclient.NewNetworkDriveResizeRequest() // NetworkDriveResizeRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NetworkDriveServiceApi.NetworkDriveServiceResize(context.Background(), serviceId).NetworkDriveResizeRequest(networkDriveResizeRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkDriveServiceApi.NetworkDriveServiceResize``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NetworkDriveServiceResize`: NetworkDriveResizeResponse
fmt.Fprintf(os.Stdout, "Response from `NetworkDriveServiceApi.NetworkDriveServiceResize`: %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 apiNetworkDriveServiceResizeRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
networkDriveResizeRequest | NetworkDriveResizeRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NetworkDriveSetMountsResponse NetworkDriveServiceSetMounts(ctx).NetworkDriveSetMountsRequest(networkDriveSetMountsRequest).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/LTD-Beget/openapi-cloud-go"
)
func main() {
networkDriveSetMountsRequest := *openapiclient.NewNetworkDriveSetMountsRequest() // NetworkDriveSetMountsRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NetworkDriveServiceApi.NetworkDriveServiceSetMounts(context.Background()).NetworkDriveSetMountsRequest(networkDriveSetMountsRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkDriveServiceApi.NetworkDriveServiceSetMounts``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NetworkDriveServiceSetMounts`: NetworkDriveSetMountsResponse
fmt.Fprintf(os.Stdout, "Response from `NetworkDriveServiceApi.NetworkDriveServiceSetMounts`: %v\n", resp)
}Other parameters are passed through a pointer to a apiNetworkDriveServiceSetMountsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| networkDriveSetMountsRequest | NetworkDriveSetMountsRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NetworkDriveUnmountResponse NetworkDriveServiceUnmount(ctx, serviceId).NetworkDriveUnmountRequest(networkDriveUnmountRequest).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/LTD-Beget/openapi-cloud-go"
)
func main() {
serviceId := "serviceId_example" // string |
networkDriveUnmountRequest := *openapiclient.NewNetworkDriveUnmountRequest() // NetworkDriveUnmountRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NetworkDriveServiceApi.NetworkDriveServiceUnmount(context.Background(), serviceId).NetworkDriveUnmountRequest(networkDriveUnmountRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NetworkDriveServiceApi.NetworkDriveServiceUnmount``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NetworkDriveServiceUnmount`: NetworkDriveUnmountResponse
fmt.Fprintf(os.Stdout, "Response from `NetworkDriveServiceApi.NetworkDriveServiceUnmount`: %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 apiNetworkDriveServiceUnmountRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
networkDriveUnmountRequest | NetworkDriveUnmountRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]