Skip to content

Latest commit

 

History

History
250 lines (158 loc) · 5.98 KB

SecurityAtlassianCrowdAPI.md

File metadata and controls

250 lines (158 loc) · 5.98 KB

\SecurityAtlassianCrowdAPI

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

ClearCache(ctx).Execute()

Clear Atlassian Crowd cache

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiClearCacheRequest 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]

ReadSettings

ReadSettings(ctx).Execute()

Retrieve Atlassian Crowd settings configured in Nexus Repository Manager

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiReadSettingsRequest 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]

UpdateSettings

UpdateSettings(ctx).Body(body).Execute()

Update Atlassian Crowd settings configured in Nexus Repository Manager

Example

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

Path Parameters

Other Parameters

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

Name Type Description Notes
body CrowdApiXO

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]

VerifyConnection1

VerifyConnection1(ctx).Body(body).Execute()

Verify connection using supplied Atlassian Crowd settings

Example

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

Path Parameters

Other Parameters

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

Name Type Description Notes
body CrowdApiXO

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]