Skip to content

Latest commit

 

History

History
66 lines (41 loc) · 1.53 KB

SecurityManagementJWTAPI.md

File metadata and controls

66 lines (41 loc) · 1.53 KB

\SecurityManagementJWTAPI

All URIs are relative to http://localhost/service/rest

Method HTTP request Description
ResetSecret Put /v1/security/jwt Reset JWT secret (note that session will be expired for the all logged-in users)

ResetSecret

ResetSecret(ctx).Execute()

Reset JWT secret (note that session will be expired for the all logged-in users)

Example

package main

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

func main() {

	configuration := sonatyperepo.NewConfiguration()
	apiClient := sonatyperepo.NewAPIClient(configuration)
	r, err := apiClient.SecurityManagementJWTAPI.ResetSecret(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `SecurityManagementJWTAPI.ResetSecret``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

(empty response body)

Authorization

BasicAuth

HTTP request headers

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

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