Skip to content

Latest commit

 

History

History
77 lines (47 loc) · 1.82 KB

File metadata and controls

77 lines (47 loc) · 1.82 KB

\SnapshotEventsAPI

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

ListSnapshotEvents(ctx, snapshotId).Execute()

Fetch all events for a snapshot

Example

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)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
snapshotId int32

Other Parameters

Other parameters are passed through a pointer to a apiListSnapshotEventsRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

apiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]