All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
DisableFeature | Delete /api/v2/config/features/{feature} | |
EnabledFeature | Post /api/v2/config/features/{feature} |
DisableFeature(ctx, feature).Execute()
package main
import (
"context"
"fmt"
"os"
sonatypeiq "github.com/sonatype-nexus-community/nexus-iq-api-client-go"
)
func main() {
feature := "feature_example" // string | Enter the name of the IQ Server feature to be disabled.
configuration := sonatypeiq.NewConfiguration()
apiClient := sonatypeiq.NewAPIClient(configuration)
r, err := apiClient.FeatureConfigurationAPI.DisableFeature(context.Background(), feature).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FeatureConfigurationAPI.DisableFeature``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
feature | string | Enter the name of the IQ Server feature to be disabled. |
Other parameters are passed through a pointer to a apiDisableFeatureRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EnabledFeature(ctx, feature).Execute()
package main
import (
"context"
"fmt"
"os"
sonatypeiq "github.com/sonatype-nexus-community/nexus-iq-api-client-go"
)
func main() {
feature := "feature_example" // string | Enter the name of the feature to be enabled.
configuration := sonatypeiq.NewConfiguration()
apiClient := sonatypeiq.NewAPIClient(configuration)
r, err := apiClient.FeatureConfigurationAPI.EnabledFeature(context.Background(), feature).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FeatureConfigurationAPI.EnabledFeature``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
feature | string | Enter the name of the feature to be enabled. |
Other parameters are passed through a pointer to a apiEnabledFeatureRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]