All URIs are relative to https://app.corellium.com/api
Method | HTTP request | Description |
---|---|---|
V1ClearHyperTraceHooks | Post /v1/instances/{instanceId}/hooks/clear | Clear Hooks on an instance |
V1CreateHook | Post /v1/instances/{instanceId}/hooks | Create hypervisor hook for Instance |
V1DeleteHook | Delete /v1/hooks/{hookId} | Delete an existing hypervisor hook |
V1ExecuteHyperTraceHooks | Post /v1/instances/{instanceId}/hooks/execute | Execute Hooks on an instance |
V1GetHookById | Get /v1/hooks/{hookId} | Get hypervisor hook by id |
V1GetHooks | Get /v1/instances/{instanceId}/hooks | Get all hypervisor hooks for Instance |
V1UpdateHook | Put /v1/hooks/{hookId} | Update an existing hypervisor hook |
V1ClearHyperTraceHooks(ctx, instanceId).Execute()
Clear Hooks on an instance
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/corellium/go-corellium-api-client"
)
func main() {
instanceId := "instanceId_example" // string | Instance ID - uuid
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.HypervisorHooksApi.V1ClearHyperTraceHooks(context.Background(), instanceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `HypervisorHooksApi.V1ClearHyperTraceHooks``: %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. | |
instanceId | string | Instance ID - uuid |
Other parameters are passed through a pointer to a apiV1ClearHyperTraceHooksRequest 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]
Hook V1CreateHook(ctx, instanceId).V1CreateHookParameters(v1CreateHookParameters).Execute()
Create hypervisor hook for Instance
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/corellium/go-corellium-api-client"
)
func main() {
instanceId := "instanceId_example" // string | Instance ID - uuid
v1CreateHookParameters := *openapiclient.NewV1CreateHookParameters("Label_example", "Address_example", "Patch_example", "PatchType_example") // V1CreateHookParameters | application/json
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.HypervisorHooksApi.V1CreateHook(context.Background(), instanceId).V1CreateHookParameters(v1CreateHookParameters).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `HypervisorHooksApi.V1CreateHook``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1CreateHook`: Hook
fmt.Fprintf(os.Stdout, "Response from `HypervisorHooksApi.V1CreateHook`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
instanceId | string | Instance ID - uuid |
Other parameters are passed through a pointer to a apiV1CreateHookRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
v1CreateHookParameters | V1CreateHookParameters | application/json |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1DeleteHook(ctx, hookId).Execute()
Delete an existing hypervisor hook
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/corellium/go-corellium-api-client"
)
func main() {
hookId := "hookId_example" // string | Hook ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.HypervisorHooksApi.V1DeleteHook(context.Background(), hookId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `HypervisorHooksApi.V1DeleteHook``: %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. | |
hookId | string | Hook ID |
Other parameters are passed through a pointer to a apiV1DeleteHookRequest 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]
V1ExecuteHyperTraceHooks(ctx, instanceId).Execute()
Execute Hooks on an instance
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/corellium/go-corellium-api-client"
)
func main() {
instanceId := "instanceId_example" // string | Instance ID - uuid
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.HypervisorHooksApi.V1ExecuteHyperTraceHooks(context.Background(), instanceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `HypervisorHooksApi.V1ExecuteHyperTraceHooks``: %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. | |
instanceId | string | Instance ID - uuid |
Other parameters are passed through a pointer to a apiV1ExecuteHyperTraceHooksRequest 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]
Hook V1GetHookById(ctx, hookId).Execute()
Get hypervisor hook by id
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/corellium/go-corellium-api-client"
)
func main() {
hookId := "hookId_example" // string | Hook Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.HypervisorHooksApi.V1GetHookById(context.Background(), hookId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `HypervisorHooksApi.V1GetHookById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1GetHookById`: Hook
fmt.Fprintf(os.Stdout, "Response from `HypervisorHooksApi.V1GetHookById`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
hookId | string | Hook Id |
Other parameters are passed through a pointer to a apiV1GetHookByIdRequest 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]
[]Hook V1GetHooks(ctx, instanceId).Limit(limit).Offset(offset).Sort(sort).Execute()
Get all hypervisor hooks for Instance
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/corellium/go-corellium-api-client"
)
func main() {
instanceId := "instanceId_example" // string | Instance ID - uuid
limit := float32(8.14) // float32 | limit for pagination results, defaults to 20 (optional)
offset := float32(8.14) // float32 | offset for pagination results, defaults to 0 (optional)
sort := "sort_example" // string | sort ASC or DESC, defaults to DESC (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.HypervisorHooksApi.V1GetHooks(context.Background(), instanceId).Limit(limit).Offset(offset).Sort(sort).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `HypervisorHooksApi.V1GetHooks``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1GetHooks`: []Hook
fmt.Fprintf(os.Stdout, "Response from `HypervisorHooksApi.V1GetHooks`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
instanceId | string | Instance ID - uuid |
Other parameters are passed through a pointer to a apiV1GetHooksRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
limit | float32 | limit for pagination results, defaults to 20 | offset | float32 | offset for pagination results, defaults to 0 | sort | string | sort ASC or DESC, defaults to DESC |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Hook V1UpdateHook(ctx, hookId).V1CreateHookParameters(v1CreateHookParameters).Execute()
Update an existing hypervisor hook
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/corellium/go-corellium-api-client"
)
func main() {
hookId := "hookId_example" // string | Hook ID
v1CreateHookParameters := *openapiclient.NewV1CreateHookParameters("Label_example", "Address_example", "Patch_example", "PatchType_example") // V1CreateHookParameters | application/json
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.HypervisorHooksApi.V1UpdateHook(context.Background(), hookId).V1CreateHookParameters(v1CreateHookParameters).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `HypervisorHooksApi.V1UpdateHook``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1UpdateHook`: Hook
fmt.Fprintf(os.Stdout, "Response from `HypervisorHooksApi.V1UpdateHook`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
hookId | string | Hook ID |
Other parameters are passed through a pointer to a apiV1UpdateHookRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
v1CreateHookParameters | V1CreateHookParameters | application/json |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]