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(ctx).Execute()
Reset JWT secret (note that session will be expired for the all logged-in users)
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)
}
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiResetSecretRequest struct via the builder pattern
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]