All URIs are relative to http://localhost/service/rest
Method | HTTP request | Description |
---|---|---|
ClearCache | Post /v1/security/atlassian-crowd/clear-cache | Clear Atlassian Crowd cache |
ReadSettings | Get /v1/security/atlassian-crowd | Retrieve Atlassian Crowd settings configured in Nexus Repository Manager |
UpdateSettings | Put /v1/security/atlassian-crowd | Update Atlassian Crowd settings configured in Nexus Repository Manager |
VerifyConnection1 | Post /v1/security/atlassian-crowd/verify-connection | Verify connection using supplied Atlassian Crowd settings |
ClearCache(ctx).Execute()
Clear Atlassian Crowd cache
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.SecurityAtlassianCrowdAPI.ClearCache(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecurityAtlassianCrowdAPI.ClearCache``: %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 apiClearCacheRequest 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]
ReadSettings(ctx).Execute()
Retrieve Atlassian Crowd settings configured in Nexus Repository Manager
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.SecurityAtlassianCrowdAPI.ReadSettings(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecurityAtlassianCrowdAPI.ReadSettings``: %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 apiReadSettingsRequest 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]
UpdateSettings(ctx).Body(body).Execute()
Update Atlassian Crowd settings configured in Nexus Repository Manager
package main
import (
"context"
"fmt"
"os"
sonatyperepo "github.com/sonatype-nexus-community/nexus-repo-api-client-go"
)
func main() {
body := *sonatyperepo.NewCrowdApiXO(false, false) // CrowdApiXO | (optional)
configuration := sonatyperepo.NewConfiguration()
apiClient := sonatyperepo.NewAPIClient(configuration)
r, err := apiClient.SecurityAtlassianCrowdAPI.UpdateSettings(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecurityAtlassianCrowdAPI.UpdateSettings``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiUpdateSettingsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | CrowdApiXO |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VerifyConnection1(ctx).Body(body).Execute()
Verify connection using supplied Atlassian Crowd settings
package main
import (
"context"
"fmt"
"os"
sonatyperepo "github.com/sonatype-nexus-community/nexus-repo-api-client-go"
)
func main() {
body := *sonatyperepo.NewCrowdApiXO(false, false) // CrowdApiXO | (optional)
configuration := sonatyperepo.NewConfiguration()
apiClient := sonatyperepo.NewAPIClient(configuration)
r, err := apiClient.SecurityAtlassianCrowdAPI.VerifyConnection1(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecurityAtlassianCrowdAPI.VerifyConnection1``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiVerifyConnection1Request struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | CrowdApiXO |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]