All URIs are relative to https://api.hyperone.com/v2
| Method | HTTP request | Description |
|---|---|---|
| ComputeProjectVmConnectGet | Get /compute/{locationId}/project/{projectId}/vm/{vmId}/connect/{connectId} | Get compute/vm.connect |
| ComputeProjectVmConnectList | Get /compute/{locationId}/project/{projectId}/vm/{vmId}/connect | List compute/vm.connect |
| ComputeProjectVmConnectOpen | Post /compute/{locationId}/project/{projectId}/vm/{vmId}/connect/{connectId}/actions/open | Open compute/vm.connect |
| ComputeProjectVmCreate | Post /compute/{locationId}/project/{projectId}/vm | Create compute/vm |
| ComputeProjectVmDelete | Delete /compute/{locationId}/project/{projectId}/vm/{vmId} | Delete compute/vm |
| ComputeProjectVmDiskCreate | Post /compute/{locationId}/project/{projectId}/vm/{vmId}/disk | Create compute/vm.disk |
| ComputeProjectVmDiskList | Get /compute/{locationId}/project/{projectId}/vm/{vmId}/disk | List compute/vm.disk |
| ComputeProjectVmEventGet | Get /compute/{locationId}/project/{projectId}/vm/{vmId}/event/{eventId} | Get compute/vm.event |
| ComputeProjectVmEventList | Get /compute/{locationId}/project/{projectId}/vm/{vmId}/event | List compute/vm.event |
| ComputeProjectVmFlavour | Post /compute/{locationId}/project/{projectId}/vm/{vmId}/actions/flavour | Flavour compute/vm |
| ComputeProjectVmGet | Get /compute/{locationId}/project/{projectId}/vm/{vmId} | Get compute/vm |
| ComputeProjectVmIsoCreate | Post /compute/{locationId}/project/{projectId}/vm/{vmId}/iso | Create compute/vm.iso |
| ComputeProjectVmIsoList | Get /compute/{locationId}/project/{projectId}/vm/{vmId}/iso | List compute/vm.iso |
| ComputeProjectVmList | Get /compute/{locationId}/project/{projectId}/vm | List compute/vm |
| ComputeProjectVmMetricGet | Get /compute/{locationId}/project/{projectId}/vm/{vmId}/metric/{metricId} | Get compute/vm.metric |
| ComputeProjectVmMetricList | Get /compute/{locationId}/project/{projectId}/vm/{vmId}/metric | List compute/vm.metric |
| ComputeProjectVmMetricSeriesList | Get /compute/{locationId}/project/{projectId}/vm/{vmId}/metric/{metricId}/series | List compute/vm.series |
| ComputeProjectVmPasswordReset | Post /compute/{locationId}/project/{projectId}/vm/{vmId}/actions/password_reset | Password reset compute/vm |
| ComputeProjectVmRestart | Post /compute/{locationId}/project/{projectId}/vm/{vmId}/actions/restart | Restart compute/vm |
| ComputeProjectVmSerialport | Post /compute/{locationId}/project/{projectId}/vm/{vmId}/actions/serialport | Serialport compute/vm |
| ComputeProjectVmServiceGet | Get /compute/{locationId}/project/{projectId}/vm/{vmId}/service/{serviceId} | Get compute/vm.service |
| ComputeProjectVmServiceList | Get /compute/{locationId}/project/{projectId}/vm/{vmId}/service | List compute/vm.service |
| ComputeProjectVmStart | Post /compute/{locationId}/project/{projectId}/vm/{vmId}/actions/start | Start compute/vm |
| ComputeProjectVmStop | Post /compute/{locationId}/project/{projectId}/vm/{vmId}/actions/stop | Stop compute/vm |
| ComputeProjectVmTagCreate | Post /compute/{locationId}/project/{projectId}/vm/{vmId}/tag | Create compute/vm.tag |
| ComputeProjectVmTagDelete | Delete /compute/{locationId}/project/{projectId}/vm/{vmId}/tag/{tagId} | Delete compute/vm.tag |
| ComputeProjectVmTagGet | Get /compute/{locationId}/project/{projectId}/vm/{vmId}/tag/{tagId} | Get compute/vm.tag |
| ComputeProjectVmTagList | Get /compute/{locationId}/project/{projectId}/vm/{vmId}/tag | List compute/vm.tag |
| ComputeProjectVmTagPut | Put /compute/{locationId}/project/{projectId}/vm/{vmId}/tag | Replace compute/vm.tag |
| ComputeProjectVmTurnoff | Post /compute/{locationId}/project/{projectId}/vm/{vmId}/actions/turnoff | Turnoff compute/vm |
| ComputeProjectVmUpdate | Patch /compute/{locationId}/project/{projectId}/vm/{vmId} | Update compute/vm |
Connect ComputeProjectVmConnectGet(ctx, projectId, locationId, vmId, connectId).Execute()
Get compute/vm.connect
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
connectId := "connectId_example" // string | connectId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmConnectGet(context.Background(), projectId, locationId, vmId, connectId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmConnectGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmConnectGet`: Connect
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmConnectGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id | |
| connectId | string | connectId |
Other parameters are passed through a pointer to a apiComputeProjectVmConnectGetRequest 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]
[]Connect ComputeProjectVmConnectList(ctx, projectId, locationId, vmId).Execute()
List compute/vm.connect
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmConnectList(context.Background(), projectId, locationId, vmId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmConnectList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmConnectList`: []Connect
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmConnectList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id |
Other parameters are passed through a pointer to a apiComputeProjectVmConnectListRequest 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]
ComputeProjectVmConnectOpen(ctx, projectId, locationId, vmId, connectId).ComputeProjectVmConnectOpen(computeProjectVmConnectOpen).Execute()
Open compute/vm.connect
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
connectId := "connectId_example" // string | connectId
computeProjectVmConnectOpen := *openapiclient.NewComputeProjectVmConnectOpen() // ComputeProjectVmConnectOpen |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmConnectOpen(context.Background(), projectId, locationId, vmId, connectId).ComputeProjectVmConnectOpen(computeProjectVmConnectOpen).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmConnectOpen``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id | |
| connectId | string | connectId |
Other parameters are passed through a pointer to a apiComputeProjectVmConnectOpenRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
computeProjectVmConnectOpen | ComputeProjectVmConnectOpen | |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Vm ComputeProjectVmCreate(ctx, projectId, locationId).ComputeProjectVmCreate(computeProjectVmCreate).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
Create compute/vm
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
computeProjectVmCreate := *openapiclient.NewComputeProjectVmCreate("Name_example", "Service_example") // ComputeProjectVmCreate |
xIdempotencyKey := "xIdempotencyKey_example" // string | Idempotency key (optional)
xDryRun := "xDryRun_example" // string | Dry run (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmCreate(context.Background(), projectId, locationId).ComputeProjectVmCreate(computeProjectVmCreate).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmCreate`: Vm
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmCreate`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id |
Other parameters are passed through a pointer to a apiComputeProjectVmCreateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
computeProjectVmCreate | ComputeProjectVmCreate | | xIdempotencyKey | string | Idempotency key | xDryRun | string | Dry run |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Vm ComputeProjectVmDelete(ctx, projectId, locationId, vmId).Execute()
Delete compute/vm
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmDelete(context.Background(), projectId, locationId, vmId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmDelete`: Vm
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmDelete`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id |
Other parameters are passed through a pointer to a apiComputeProjectVmDeleteRequest 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]
Disk ComputeProjectVmDiskCreate(ctx, projectId, locationId, vmId).ComputeProjectVmDiskCreate(computeProjectVmDiskCreate).Execute()
Create compute/vm.disk
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
computeProjectVmDiskCreate := *openapiclient.NewComputeProjectVmDiskCreate("Disk_example") // ComputeProjectVmDiskCreate |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmDiskCreate(context.Background(), projectId, locationId, vmId).ComputeProjectVmDiskCreate(computeProjectVmDiskCreate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmDiskCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmDiskCreate`: Disk
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmDiskCreate`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id |
Other parameters are passed through a pointer to a apiComputeProjectVmDiskCreateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
computeProjectVmDiskCreate | ComputeProjectVmDiskCreate | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Disk ComputeProjectVmDiskList(ctx, projectId, locationId, vmId).Execute()
List compute/vm.disk
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmDiskList(context.Background(), projectId, locationId, vmId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmDiskList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmDiskList`: []Disk
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmDiskList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id |
Other parameters are passed through a pointer to a apiComputeProjectVmDiskListRequest 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]
Event ComputeProjectVmEventGet(ctx, projectId, locationId, vmId, eventId).Execute()
Get compute/vm.event
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
eventId := "eventId_example" // string | eventId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmEventGet(context.Background(), projectId, locationId, vmId, eventId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmEventGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmEventGet`: Event
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmEventGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id | |
| eventId | string | eventId |
Other parameters are passed through a pointer to a apiComputeProjectVmEventGetRequest 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]
[]Event ComputeProjectVmEventList(ctx, projectId, locationId, vmId).Limit(limit).Skip(skip).Execute()
List compute/vm.event
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
limit := float32(8.14) // float32 | $limit (optional) (default to 100)
skip := float32(8.14) // float32 | $skip (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmEventList(context.Background(), projectId, locationId, vmId).Limit(limit).Skip(skip).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmEventList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmEventList`: []Event
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmEventList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id |
Other parameters are passed through a pointer to a apiComputeProjectVmEventListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
limit | float32 | $limit | [default to 100] skip | float32 | $skip |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Vm ComputeProjectVmFlavour(ctx, projectId, locationId, vmId).ComputeProjectVmFlavour(computeProjectVmFlavour).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
Flavour compute/vm
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
computeProjectVmFlavour := *openapiclient.NewComputeProjectVmFlavour("Service_example") // ComputeProjectVmFlavour |
xIdempotencyKey := "xIdempotencyKey_example" // string | Idempotency key (optional)
xDryRun := "xDryRun_example" // string | Dry run (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmFlavour(context.Background(), projectId, locationId, vmId).ComputeProjectVmFlavour(computeProjectVmFlavour).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmFlavour``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmFlavour`: Vm
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmFlavour`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id |
Other parameters are passed through a pointer to a apiComputeProjectVmFlavourRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
computeProjectVmFlavour | ComputeProjectVmFlavour | | xIdempotencyKey | string | Idempotency key | xDryRun | string | Dry run |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Vm ComputeProjectVmGet(ctx, projectId, locationId, vmId).Execute()
Get compute/vm
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmGet(context.Background(), projectId, locationId, vmId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmGet`: Vm
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id |
Other parameters are passed through a pointer to a apiComputeProjectVmGetRequest 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]
Iso ComputeProjectVmIsoCreate(ctx, projectId, locationId, vmId).ComputeProjectVmIsoCreate(computeProjectVmIsoCreate).Execute()
Create compute/vm.iso
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
computeProjectVmIsoCreate := *openapiclient.NewComputeProjectVmIsoCreate() // ComputeProjectVmIsoCreate |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmIsoCreate(context.Background(), projectId, locationId, vmId).ComputeProjectVmIsoCreate(computeProjectVmIsoCreate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmIsoCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmIsoCreate`: Iso
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmIsoCreate`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id |
Other parameters are passed through a pointer to a apiComputeProjectVmIsoCreateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
computeProjectVmIsoCreate | ComputeProjectVmIsoCreate | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Iso ComputeProjectVmIsoList(ctx, projectId, locationId, vmId).Execute()
List compute/vm.iso
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmIsoList(context.Background(), projectId, locationId, vmId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmIsoList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmIsoList`: []Iso
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmIsoList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id |
Other parameters are passed through a pointer to a apiComputeProjectVmIsoListRequest 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]
[]Vm ComputeProjectVmList(ctx, projectId, locationId).Name(name).TagValue(tagValue).TagKey(tagKey).Execute()
List compute/vm
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
name := "name_example" // string | Filter by name (optional)
tagValue := "tagValue_example" // string | Filter by tag.value (optional)
tagKey := "tagKey_example" // string | Filter by tag.key (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmList(context.Background(), projectId, locationId).Name(name).TagValue(tagValue).TagKey(tagKey).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmList`: []Vm
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id |
Other parameters are passed through a pointer to a apiComputeProjectVmListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
name | string | Filter by name | tagValue | string | Filter by tag.value | tagKey | string | Filter by tag.key |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Metric ComputeProjectVmMetricGet(ctx, projectId, locationId, vmId, metricId).Execute()
Get compute/vm.metric
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
metricId := "metricId_example" // string | metricId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmMetricGet(context.Background(), projectId, locationId, vmId, metricId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmMetricGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmMetricGet`: Metric
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmMetricGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id | |
| metricId | string | metricId |
Other parameters are passed through a pointer to a apiComputeProjectVmMetricGetRequest 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]
[]Metric ComputeProjectVmMetricList(ctx, projectId, locationId, vmId).Execute()
List compute/vm.metric
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmMetricList(context.Background(), projectId, locationId, vmId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmMetricList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmMetricList`: []Metric
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmMetricList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id |
Other parameters are passed through a pointer to a apiComputeProjectVmMetricListRequest 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]
[]Point ComputeProjectVmMetricSeriesList(ctx, projectId, locationId, vmId, metricId).Interval(interval).Timespan(timespan).Aligner(aligner).Execute()
List compute/vm.series
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
metricId := "metricId_example" // string | metricId
interval := "interval_example" // string | interval (optional)
timespan := "timespan_example" // string | timespan (optional)
aligner := "aligner_example" // string | aligner (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmMetricSeriesList(context.Background(), projectId, locationId, vmId, metricId).Interval(interval).Timespan(timespan).Aligner(aligner).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmMetricSeriesList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmMetricSeriesList`: []Point
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmMetricSeriesList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id | |
| metricId | string | metricId |
Other parameters are passed through a pointer to a apiComputeProjectVmMetricSeriesListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
interval | string | interval | timespan | string | timespan | aligner | string | aligner |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Vm ComputeProjectVmPasswordReset(ctx, projectId, locationId, vmId).ComputeProjectVmPasswordReset(computeProjectVmPasswordReset).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
Password reset compute/vm
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
computeProjectVmPasswordReset := *openapiclient.NewComputeProjectVmPasswordReset("Exponent_example", "Modulus_example", "UserName_example") // ComputeProjectVmPasswordReset |
xIdempotencyKey := "xIdempotencyKey_example" // string | Idempotency key (optional)
xDryRun := "xDryRun_example" // string | Dry run (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmPasswordReset(context.Background(), projectId, locationId, vmId).ComputeProjectVmPasswordReset(computeProjectVmPasswordReset).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmPasswordReset``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmPasswordReset`: Vm
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmPasswordReset`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id |
Other parameters are passed through a pointer to a apiComputeProjectVmPasswordResetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
computeProjectVmPasswordReset | ComputeProjectVmPasswordReset | | xIdempotencyKey | string | Idempotency key | xDryRun | string | Dry run |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Vm ComputeProjectVmRestart(ctx, projectId, locationId, vmId).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
Restart compute/vm
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
xIdempotencyKey := "xIdempotencyKey_example" // string | Idempotency key (optional)
xDryRun := "xDryRun_example" // string | Dry run (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmRestart(context.Background(), projectId, locationId, vmId).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmRestart``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmRestart`: Vm
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmRestart`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id |
Other parameters are passed through a pointer to a apiComputeProjectVmRestartRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
xIdempotencyKey | string | Idempotency key | xDryRun | string | Dry run |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
*os.File ComputeProjectVmSerialport(ctx, projectId, locationId, vmId).ComputeProjectVmSerialport(computeProjectVmSerialport).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
Serialport compute/vm
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
computeProjectVmSerialport := *openapiclient.NewComputeProjectVmSerialport() // ComputeProjectVmSerialport |
xIdempotencyKey := "xIdempotencyKey_example" // string | Idempotency key (optional)
xDryRun := "xDryRun_example" // string | Dry run (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmSerialport(context.Background(), projectId, locationId, vmId).ComputeProjectVmSerialport(computeProjectVmSerialport).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmSerialport``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmSerialport`: *os.File
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmSerialport`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id |
Other parameters are passed through a pointer to a apiComputeProjectVmSerialportRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
computeProjectVmSerialport | ComputeProjectVmSerialport | | xIdempotencyKey | string | Idempotency key | xDryRun | string | Dry run |
- Content-Type: application/json
- Accept: text/plain, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResourceService ComputeProjectVmServiceGet(ctx, projectId, locationId, vmId, serviceId).Execute()
Get compute/vm.service
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
serviceId := "serviceId_example" // string | serviceId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmServiceGet(context.Background(), projectId, locationId, vmId, serviceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmServiceGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmServiceGet`: ResourceService
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmServiceGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id | |
| serviceId | string | serviceId |
Other parameters are passed through a pointer to a apiComputeProjectVmServiceGetRequest 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]
[]ResourceService ComputeProjectVmServiceList(ctx, projectId, locationId, vmId).Execute()
List compute/vm.service
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmServiceList(context.Background(), projectId, locationId, vmId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmServiceList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmServiceList`: []ResourceService
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmServiceList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id |
Other parameters are passed through a pointer to a apiComputeProjectVmServiceListRequest 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]
Vm ComputeProjectVmStart(ctx, projectId, locationId, vmId).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
Start compute/vm
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
xIdempotencyKey := "xIdempotencyKey_example" // string | Idempotency key (optional)
xDryRun := "xDryRun_example" // string | Dry run (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmStart(context.Background(), projectId, locationId, vmId).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmStart``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmStart`: Vm
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmStart`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id |
Other parameters are passed through a pointer to a apiComputeProjectVmStartRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
xIdempotencyKey | string | Idempotency key | xDryRun | string | Dry run |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Vm ComputeProjectVmStop(ctx, projectId, locationId, vmId).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
Stop compute/vm
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
xIdempotencyKey := "xIdempotencyKey_example" // string | Idempotency key (optional)
xDryRun := "xDryRun_example" // string | Dry run (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmStop(context.Background(), projectId, locationId, vmId).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmStop``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmStop`: Vm
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmStop`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id |
Other parameters are passed through a pointer to a apiComputeProjectVmStopRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
xIdempotencyKey | string | Idempotency key | xDryRun | string | Dry run |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Tag ComputeProjectVmTagCreate(ctx, projectId, locationId, vmId).Tag(tag).Execute()
Create compute/vm.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
tag := *openapiclient.NewTag("Id_example", "Key_example", "Value_example") // Tag |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmTagCreate(context.Background(), projectId, locationId, vmId).Tag(tag).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmTagCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmTagCreate`: Tag
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmTagCreate`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id |
Other parameters are passed through a pointer to a apiComputeProjectVmTagCreateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
tag | Tag | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ComputeProjectVmTagDelete(ctx, projectId, locationId, vmId, tagId).Execute()
Delete compute/vm.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
tagId := "tagId_example" // string | tagId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmTagDelete(context.Background(), projectId, locationId, vmId, tagId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmTagDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id | |
| tagId | string | tagId |
Other parameters are passed through a pointer to a apiComputeProjectVmTagDeleteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Tag ComputeProjectVmTagGet(ctx, projectId, locationId, vmId, tagId).Execute()
Get compute/vm.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
tagId := "tagId_example" // string | tagId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmTagGet(context.Background(), projectId, locationId, vmId, tagId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmTagGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmTagGet`: Tag
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmTagGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id | |
| tagId | string | tagId |
Other parameters are passed through a pointer to a apiComputeProjectVmTagGetRequest 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]
[]Tag ComputeProjectVmTagList(ctx, projectId, locationId, vmId).Execute()
List compute/vm.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmTagList(context.Background(), projectId, locationId, vmId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmTagList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmTagList`: []Tag
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmTagList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id |
Other parameters are passed through a pointer to a apiComputeProjectVmTagListRequest 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]
[]Tag ComputeProjectVmTagPut(ctx, projectId, locationId, vmId).Tag(tag).Execute()
Replace compute/vm.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
tag := []openapiclient.Tag{*openapiclient.NewTag("Id_example", "Key_example", "Value_example")} // []Tag |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmTagPut(context.Background(), projectId, locationId, vmId).Tag(tag).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmTagPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmTagPut`: []Tag
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmTagPut`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id |
Other parameters are passed through a pointer to a apiComputeProjectVmTagPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
tag | []Tag | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Vm ComputeProjectVmTurnoff(ctx, projectId, locationId, vmId).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
Turnoff compute/vm
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
xIdempotencyKey := "xIdempotencyKey_example" // string | Idempotency key (optional)
xDryRun := "xDryRun_example" // string | Dry run (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmTurnoff(context.Background(), projectId, locationId, vmId).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmTurnoff``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmTurnoff`: Vm
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmTurnoff`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id |
Other parameters are passed through a pointer to a apiComputeProjectVmTurnoffRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
xIdempotencyKey | string | Idempotency key | xDryRun | string | Dry run |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Vm ComputeProjectVmUpdate(ctx, projectId, locationId, vmId).ComputeProjectVmUpdate(computeProjectVmUpdate).Execute()
Update compute/vm
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
vmId := "vmId_example" // string | Vm Id
computeProjectVmUpdate := *openapiclient.NewComputeProjectVmUpdate() // ComputeProjectVmUpdate |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectVmApi.ComputeProjectVmUpdate(context.Background(), projectId, locationId, vmId).ComputeProjectVmUpdate(computeProjectVmUpdate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectVmApi.ComputeProjectVmUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectVmUpdate`: Vm
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectVmApi.ComputeProjectVmUpdate`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| vmId | string | Vm Id |
Other parameters are passed through a pointer to a apiComputeProjectVmUpdateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
computeProjectVmUpdate | ComputeProjectVmUpdate | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]