All URIs are relative to https://infrahub-api.nexgencloud.com/v1
| Method | HTTP request | Description |
|---|---|---|
| ListSnapshotEvents | Get /core/snapshots/{snapshot_id}/events | Fetch all events for a snapshot |
ListSnapshotEvents(ctx, snapshotId).Execute()
Fetch all events for a snapshot
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/NexGenCloud/hyperstack-sdk-go/hyperstack"
)
func main() {
snapshotId := int32(56) // int32 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.SnapshotEventsAPI.ListSnapshotEvents(context.Background(), snapshotId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SnapshotEventsAPI.ListSnapshotEvents``: %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. | |
| snapshotId | int32 |
Other parameters are passed through a pointer to a apiListSnapshotEventsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]