All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| DeleteSamlConfiguration | Delete /api/v2/config/saml | |
| GetMetadata | Get /api/v2/config/saml/metadata | |
| GetSamlConfiguration | Get /api/v2/config/saml | |
| InsertOrUpdateSamlConfiguration | Put /api/v2/config/saml |
DeleteSamlConfiguration(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
sonatypeiq "github.com/sonatype-nexus-community/nexus-iq-api-client-go"
)
func main() {
configuration := sonatypeiq.NewConfiguration()
apiClient := sonatypeiq.NewAPIClient(configuration)
r, err := apiClient.ConfigSAMLAPI.DeleteSamlConfiguration(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfigSAMLAPI.DeleteSamlConfiguration``: %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 apiDeleteSamlConfigurationRequest 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]
string GetMetadata(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
sonatypeiq "github.com/sonatype-nexus-community/nexus-iq-api-client-go"
)
func main() {
configuration := sonatypeiq.NewConfiguration()
apiClient := sonatypeiq.NewAPIClient(configuration)
resp, r, err := apiClient.ConfigSAMLAPI.GetMetadata(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfigSAMLAPI.GetMetadata``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetMetadata`: string
fmt.Fprintf(os.Stdout, "Response from `ConfigSAMLAPI.GetMetadata`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetMetadataRequest struct via the builder pattern
string
- Content-Type: Not defined
- Accept: application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiSamlConfigurationResponseDTO GetSamlConfiguration(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
sonatypeiq "github.com/sonatype-nexus-community/nexus-iq-api-client-go"
)
func main() {
configuration := sonatypeiq.NewConfiguration()
apiClient := sonatypeiq.NewAPIClient(configuration)
resp, r, err := apiClient.ConfigSAMLAPI.GetSamlConfiguration(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfigSAMLAPI.GetSamlConfiguration``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetSamlConfiguration`: ApiSamlConfigurationResponseDTO
fmt.Fprintf(os.Stdout, "Response from `ConfigSAMLAPI.GetSamlConfiguration`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetSamlConfigurationRequest struct via the builder pattern
ApiSamlConfigurationResponseDTO
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InsertOrUpdateSamlConfiguration(ctx).IdentityProviderXml(identityProviderXml).SamlConfiguration(samlConfiguration).Execute()
package main
import (
"context"
"fmt"
"os"
sonatypeiq "github.com/sonatype-nexus-community/nexus-iq-api-client-go"
)
func main() {
identityProviderXml := "identityProviderXml_example" // string | Enter the SAML metadata XML of your IdP. Refer to the IdP documentation to obtain this metadata. (optional)
samlConfiguration := *sonatypeiq.NewApiSamlConfigurationDTO() // ApiSamlConfigurationDTO | (optional)
configuration := sonatypeiq.NewConfiguration()
apiClient := sonatypeiq.NewAPIClient(configuration)
r, err := apiClient.ConfigSAMLAPI.InsertOrUpdateSamlConfiguration(context.Background()).IdentityProviderXml(identityProviderXml).SamlConfiguration(samlConfiguration).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfigSAMLAPI.InsertOrUpdateSamlConfiguration``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiInsertOrUpdateSamlConfigurationRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| identityProviderXml | string | Enter the SAML metadata XML of your IdP. Refer to the IdP documentation to obtain this metadata. | |
| samlConfiguration | ApiSamlConfigurationDTO |
(empty response body)
- Content-Type: multipart/form-data
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]