All URIs are relative to https://infrahub-api.nexgencloud.com/v1
| Method | HTTP request | Description |
|---|---|---|
| GetConsentAuditEvents | Get /auth/user-consent-events/{consent_type}/events | Get audit trail for a consent |
ConsentEventsResponse GetConsentAuditEvents(ctx, consentType).Execute()
Get audit trail for a consent
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/NexGenCloud/hyperstack-sdk-go/hyperstack"
)
func main() {
consentType := "consentType_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserConsentEventsAPI.GetConsentAuditEvents(context.Background(), consentType).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserConsentEventsAPI.GetConsentAuditEvents``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetConsentAuditEvents`: ConsentEventsResponse
fmt.Fprintf(os.Stdout, "Response from `UserConsentEventsAPI.GetConsentAuditEvents`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| consentType | string |
Other parameters are passed through a pointer to a apiGetConsentAuditEventsRequest 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]