All URIs are relative to https://api.hyperone.com/v2
| Method | HTTP request | Description |
|---|---|---|
| VmhostProjectInstanceEventGet | Get /vmhost/{locationId}/project/{projectId}/instance/{instanceId}/event/{eventId} | Get vmhost/instance.event |
| VmhostProjectInstanceEventList | Get /vmhost/{locationId}/project/{projectId}/instance/{instanceId}/event | List vmhost/instance.event |
| VmhostProjectInstanceGet | Get /vmhost/{locationId}/project/{projectId}/instance/{instanceId} | Get vmhost/instance |
| VmhostProjectInstanceList | Get /vmhost/{locationId}/project/{projectId}/instance | List vmhost/instance |
| VmhostProjectInstanceServiceGet | Get /vmhost/{locationId}/project/{projectId}/instance/{instanceId}/service/{serviceId} | Get vmhost/instance.service |
| VmhostProjectInstanceServiceList | Get /vmhost/{locationId}/project/{projectId}/instance/{instanceId}/service | List vmhost/instance.service |
| VmhostProjectInstanceTagCreate | Post /vmhost/{locationId}/project/{projectId}/instance/{instanceId}/tag | Create vmhost/instance.tag |
| VmhostProjectInstanceTagDelete | Delete /vmhost/{locationId}/project/{projectId}/instance/{instanceId}/tag/{tagId} | Delete vmhost/instance.tag |
| VmhostProjectInstanceTagGet | Get /vmhost/{locationId}/project/{projectId}/instance/{instanceId}/tag/{tagId} | Get vmhost/instance.tag |
| VmhostProjectInstanceTagList | Get /vmhost/{locationId}/project/{projectId}/instance/{instanceId}/tag | List vmhost/instance.tag |
| VmhostProjectInstanceTagPut | Put /vmhost/{locationId}/project/{projectId}/instance/{instanceId}/tag | Replace vmhost/instance.tag |
Event VmhostProjectInstanceEventGet(ctx, projectId, locationId, instanceId, eventId).Execute()
Get vmhost/instance.event
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
instanceId := "instanceId_example" // string | Instance Id
eventId := "eventId_example" // string | eventId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VmhostProjectInstanceApi.VmhostProjectInstanceEventGet(context.Background(), projectId, locationId, instanceId, eventId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VmhostProjectInstanceApi.VmhostProjectInstanceEventGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `VmhostProjectInstanceEventGet`: Event
fmt.Fprintf(os.Stdout, "Response from `VmhostProjectInstanceApi.VmhostProjectInstanceEventGet`: %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 | |
| instanceId | string | Instance Id | |
| eventId | string | eventId |
Other parameters are passed through a pointer to a apiVmhostProjectInstanceEventGetRequest 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 VmhostProjectInstanceEventList(ctx, projectId, locationId, instanceId).Limit(limit).Skip(skip).Execute()
List vmhost/instance.event
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
instanceId := "instanceId_example" // string | Instance 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.VmhostProjectInstanceApi.VmhostProjectInstanceEventList(context.Background(), projectId, locationId, instanceId).Limit(limit).Skip(skip).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VmhostProjectInstanceApi.VmhostProjectInstanceEventList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `VmhostProjectInstanceEventList`: []Event
fmt.Fprintf(os.Stdout, "Response from `VmhostProjectInstanceApi.VmhostProjectInstanceEventList`: %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 | |
| instanceId | string | Instance Id |
Other parameters are passed through a pointer to a apiVmhostProjectInstanceEventListRequest 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]
Vmhost VmhostProjectInstanceGet(ctx, projectId, locationId, instanceId).Execute()
Get vmhost/instance
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
instanceId := "instanceId_example" // string | Instance Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VmhostProjectInstanceApi.VmhostProjectInstanceGet(context.Background(), projectId, locationId, instanceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VmhostProjectInstanceApi.VmhostProjectInstanceGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `VmhostProjectInstanceGet`: Vmhost
fmt.Fprintf(os.Stdout, "Response from `VmhostProjectInstanceApi.VmhostProjectInstanceGet`: %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 | |
| instanceId | string | Instance Id |
Other parameters are passed through a pointer to a apiVmhostProjectInstanceGetRequest 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]
[]Vmhost VmhostProjectInstanceList(ctx, projectId, locationId).EnabledServices(enabledServices).Execute()
List vmhost/instance
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
enabledServices := "enabledServices_example" // string | Filter by enabledServices (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VmhostProjectInstanceApi.VmhostProjectInstanceList(context.Background(), projectId, locationId).EnabledServices(enabledServices).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VmhostProjectInstanceApi.VmhostProjectInstanceList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `VmhostProjectInstanceList`: []Vmhost
fmt.Fprintf(os.Stdout, "Response from `VmhostProjectInstanceApi.VmhostProjectInstanceList`: %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 apiVmhostProjectInstanceListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
enabledServices | string | Filter by enabledServices |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResourceService VmhostProjectInstanceServiceGet(ctx, projectId, locationId, instanceId, serviceId).Execute()
Get vmhost/instance.service
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
instanceId := "instanceId_example" // string | Instance Id
serviceId := "serviceId_example" // string | serviceId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VmhostProjectInstanceApi.VmhostProjectInstanceServiceGet(context.Background(), projectId, locationId, instanceId, serviceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VmhostProjectInstanceApi.VmhostProjectInstanceServiceGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `VmhostProjectInstanceServiceGet`: ResourceService
fmt.Fprintf(os.Stdout, "Response from `VmhostProjectInstanceApi.VmhostProjectInstanceServiceGet`: %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 | |
| instanceId | string | Instance Id | |
| serviceId | string | serviceId |
Other parameters are passed through a pointer to a apiVmhostProjectInstanceServiceGetRequest 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 VmhostProjectInstanceServiceList(ctx, projectId, locationId, instanceId).Execute()
List vmhost/instance.service
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
instanceId := "instanceId_example" // string | Instance Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VmhostProjectInstanceApi.VmhostProjectInstanceServiceList(context.Background(), projectId, locationId, instanceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VmhostProjectInstanceApi.VmhostProjectInstanceServiceList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `VmhostProjectInstanceServiceList`: []ResourceService
fmt.Fprintf(os.Stdout, "Response from `VmhostProjectInstanceApi.VmhostProjectInstanceServiceList`: %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 | |
| instanceId | string | Instance Id |
Other parameters are passed through a pointer to a apiVmhostProjectInstanceServiceListRequest 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 VmhostProjectInstanceTagCreate(ctx, projectId, locationId, instanceId).Tag(tag).Execute()
Create vmhost/instance.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
instanceId := "instanceId_example" // string | Instance Id
tag := *openapiclient.NewTag("Id_example", "Key_example", "Value_example") // Tag |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VmhostProjectInstanceApi.VmhostProjectInstanceTagCreate(context.Background(), projectId, locationId, instanceId).Tag(tag).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VmhostProjectInstanceApi.VmhostProjectInstanceTagCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `VmhostProjectInstanceTagCreate`: Tag
fmt.Fprintf(os.Stdout, "Response from `VmhostProjectInstanceApi.VmhostProjectInstanceTagCreate`: %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 | |
| instanceId | string | Instance Id |
Other parameters are passed through a pointer to a apiVmhostProjectInstanceTagCreateRequest 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]
VmhostProjectInstanceTagDelete(ctx, projectId, locationId, instanceId, tagId).Execute()
Delete vmhost/instance.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
instanceId := "instanceId_example" // string | Instance Id
tagId := "tagId_example" // string | tagId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VmhostProjectInstanceApi.VmhostProjectInstanceTagDelete(context.Background(), projectId, locationId, instanceId, tagId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VmhostProjectInstanceApi.VmhostProjectInstanceTagDelete``: %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 | |
| instanceId | string | Instance Id | |
| tagId | string | tagId |
Other parameters are passed through a pointer to a apiVmhostProjectInstanceTagDeleteRequest 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 VmhostProjectInstanceTagGet(ctx, projectId, locationId, instanceId, tagId).Execute()
Get vmhost/instance.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
instanceId := "instanceId_example" // string | Instance Id
tagId := "tagId_example" // string | tagId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VmhostProjectInstanceApi.VmhostProjectInstanceTagGet(context.Background(), projectId, locationId, instanceId, tagId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VmhostProjectInstanceApi.VmhostProjectInstanceTagGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `VmhostProjectInstanceTagGet`: Tag
fmt.Fprintf(os.Stdout, "Response from `VmhostProjectInstanceApi.VmhostProjectInstanceTagGet`: %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 | |
| instanceId | string | Instance Id | |
| tagId | string | tagId |
Other parameters are passed through a pointer to a apiVmhostProjectInstanceTagGetRequest 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 VmhostProjectInstanceTagList(ctx, projectId, locationId, instanceId).Execute()
List vmhost/instance.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
instanceId := "instanceId_example" // string | Instance Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VmhostProjectInstanceApi.VmhostProjectInstanceTagList(context.Background(), projectId, locationId, instanceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VmhostProjectInstanceApi.VmhostProjectInstanceTagList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `VmhostProjectInstanceTagList`: []Tag
fmt.Fprintf(os.Stdout, "Response from `VmhostProjectInstanceApi.VmhostProjectInstanceTagList`: %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 | |
| instanceId | string | Instance Id |
Other parameters are passed through a pointer to a apiVmhostProjectInstanceTagListRequest 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 VmhostProjectInstanceTagPut(ctx, projectId, locationId, instanceId).Tag(tag).Execute()
Replace vmhost/instance.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
instanceId := "instanceId_example" // string | Instance Id
tag := []openapiclient.Tag{*openapiclient.NewTag("Id_example", "Key_example", "Value_example")} // []Tag |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.VmhostProjectInstanceApi.VmhostProjectInstanceTagPut(context.Background(), projectId, locationId, instanceId).Tag(tag).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VmhostProjectInstanceApi.VmhostProjectInstanceTagPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `VmhostProjectInstanceTagPut`: []Tag
fmt.Fprintf(os.Stdout, "Response from `VmhostProjectInstanceApi.VmhostProjectInstanceTagPut`: %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 | |
| instanceId | string | Instance Id |
Other parameters are passed through a pointer to a apiVmhostProjectInstanceTagPutRequest 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]