All URIs are relative to https://app.corellium.com/api
Method | HTTP request | Description |
---|---|---|
V1ClearCoreTrace | Delete /v1/instances/{instanceId}/strace | Clear CoreTrace logs |
V1ListThreads | Get /v1/instances/{instanceId}/strace/thread-list | Get Running Threads (CoreTrace) |
V1StartCoreTrace | Post /v1/instances/{instanceId}/strace/enable | Start CoreTrace on an instance |
V1StopCoreTrace | Post /v1/instances/{instanceId}/strace/disable | Stop CoreTrace on an instance. |
V1ClearCoreTrace(ctx, instanceId).Execute()
Clear CoreTrace logs
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.CoreTraceApi.V1ClearCoreTrace(context.Background(), instanceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CoreTraceApi.V1ClearCoreTrace``: %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 apiV1ClearCoreTraceRequest 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]
[]KernelTask V1ListThreads(ctx, instanceId).Execute()
Get Running Threads (CoreTrace)
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)
resp, r, err := apiClient.CoreTraceApi.V1ListThreads(context.Background(), instanceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CoreTraceApi.V1ListThreads``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1ListThreads`: []KernelTask
fmt.Fprintf(os.Stdout, "Response from `CoreTraceApi.V1ListThreads`: %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 apiV1ListThreadsRequest 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]
V1StartCoreTrace(ctx, instanceId).Execute()
Start CoreTrace 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.CoreTraceApi.V1StartCoreTrace(context.Background(), instanceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CoreTraceApi.V1StartCoreTrace``: %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 apiV1StartCoreTraceRequest 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]
V1StopCoreTrace(ctx, instanceId).Execute()
Stop CoreTrace 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.CoreTraceApi.V1StopCoreTrace(context.Background(), instanceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CoreTraceApi.V1StopCoreTrace``: %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 apiV1StopCoreTraceRequest 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]