All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| GetAuditLogs | Get /api/v2/auditLogs |
GetAuditLogs(ctx).StartUtcDate(startUtcDate).EndUtcDate(endUtcDate).Execute()
package main
import (
"context"
"fmt"
"os"
sonatypeiq "github.com/sonatype-nexus-community/nexus-iq-api-client-go"
)
func main() {
startUtcDate := "startUtcDate_example" // string | Enter the start UTC date in the format (yyyy-mm-dd). (optional)
endUtcDate := "endUtcDate_example" // string | Enter the end UTC date in the format (yyyy-mm-dd). (optional)
configuration := sonatypeiq.NewConfiguration()
apiClient := sonatypeiq.NewAPIClient(configuration)
r, err := apiClient.AuditLogsAPI.GetAuditLogs(context.Background()).StartUtcDate(startUtcDate).EndUtcDate(endUtcDate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AuditLogsAPI.GetAuditLogs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiGetAuditLogsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| startUtcDate | string | Enter the start UTC date in the format (yyyy-mm-dd). | |
| endUtcDate | string | Enter the end UTC date in the format (yyyy-mm-dd). |
(empty response body)
- Content-Type: Not defined
- Accept: text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]