Skip to content

Latest commit

 

History

History
75 lines (45 loc) · 1.89 KB

File metadata and controls

75 lines (45 loc) · 1.89 KB

\AuditLogsAPI

All URIs are relative to http://localhost

Method HTTP request Description
GetAuditLogs Get /api/v2/auditLogs

GetAuditLogs

GetAuditLogs(ctx).StartUtcDate(startUtcDate).EndUtcDate(endUtcDate).Execute()

Example

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

Path Parameters

Other Parameters

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

Return type

(empty response body)

Authorization

BasicAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain

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