Skip to content

Latest commit

 

History

History
68 lines (43 loc) · 1.73 KB

File metadata and controls

68 lines (43 loc) · 1.73 KB

\SecurityManagementAPI

All URIs are relative to /service/rest

Method HTTP request Description
ListSecurityUserSources Get /v1/security/user-sources Retrieve a list of the available user sources.

ListSecurityUserSources

[]ApiUserSource ListSecurityUserSources(ctx).Execute()

Retrieve a list of the available user sources.

Example

package main

import (
	"context"
	"fmt"
	"os"
	sonatyperepo "github.com/sonatype-nexus-community/nexus-repo-api-client-go/v395"
)

func main() {

	configuration := sonatyperepo.NewConfiguration()
	apiClient := sonatyperepo.NewAPIClient(configuration)
	resp, r, err := apiClient.SecurityManagementAPI.ListSecurityUserSources(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `SecurityManagementAPI.ListSecurityUserSources``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListSecurityUserSources`: []ApiUserSource
	fmt.Fprintf(os.Stdout, "Response from `SecurityManagementAPI.ListSecurityUserSources`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

[]ApiUserSource

Authorization

BasicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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