All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
AddRepositoryManager | Post /api/v2/firewall/repositoryManagers | |
ConfigureRepositories | Post /api/v2/firewall/repositories/configuration/{repositoryManagerId} | |
DeleteRepositoryManager | Delete /api/v2/firewall/repositoryManagers/{repositoryManagerId} | |
EvaluateComponents1 | Post /api/v2/firewall/components/{repositoryManagerId}/{repositoryId}/evaluate | |
GetConfiguredRepositories | Get /api/v2/firewall/repositories/configuration/{repositoryManagerId} | |
GetFirewallAutoUnquarantineConfig | Get /api/v2/firewall/releaseQuarantine/configuration | |
GetFirewallMetrics | Get /api/v2/firewall/metrics/embedded | |
GetFirewallUnquarantineSummary | Get /api/v2/firewall/releaseQuarantine/summary | |
GetQuarantineList | Get /api/v2/firewall/components/quarantined | |
GetQuarantineSummary | Get /api/v2/firewall/quarantine/summary | |
GetQuarantinedComponentViewAnonymousAccess | Get /api/v2/firewall/quarantinedComponentView/configuration/anonymousAccess | |
GetRepositoryContainer | Get /api/v2/firewall/repositoryContainer | |
GetRepositoryManager | Get /api/v2/firewall/repositoryManagers/{repositoryManagerId} | |
GetRepositoryManagers | Get /api/v2/firewall/repositoryManagers | |
GetUnquarantineList | Get /api/v2/firewall/components/autoReleasedFromQuarantine | |
SetFirewallAutoUnquarantineConfig | Put /api/v2/firewall/releaseQuarantine/configuration | |
SetQuarantinedComponentViewAnonymousAccess | Put /api/v2/firewall/quarantinedComponentView/configuration/anonymousAccess/{enabled} |
ApiRepositoryManagerDTO AddRepositoryManager(ctx).ApiRepositoryManagerDTO(apiRepositoryManagerDTO).Execute()
package main
import (
"context"
"fmt"
"os"
sonatypeiq "github.com/sonatype-nexus-community/nexus-iq-api-client-go"
)
func main() {
apiRepositoryManagerDTO := *sonatypeiq.NewApiRepositoryManagerDTO() // ApiRepositoryManagerDTO | (optional)
configuration := sonatypeiq.NewConfiguration()
apiClient := sonatypeiq.NewAPIClient(configuration)
resp, r, err := apiClient.FirewallAPI.AddRepositoryManager(context.Background()).ApiRepositoryManagerDTO(apiRepositoryManagerDTO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallAPI.AddRepositoryManager``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AddRepositoryManager`: ApiRepositoryManagerDTO
fmt.Fprintf(os.Stdout, "Response from `FirewallAPI.AddRepositoryManager`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiAddRepositoryManagerRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
apiRepositoryManagerDTO | ApiRepositoryManagerDTO |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ConfigureRepositories(ctx, repositoryManagerId).ApiRepositoryListDTO(apiRepositoryListDTO).Execute()
package main
import (
"context"
"fmt"
"os"
sonatypeiq "github.com/sonatype-nexus-community/nexus-iq-api-client-go"
)
func main() {
repositoryManagerId := "repositoryManagerId_example" // string |
apiRepositoryListDTO := *sonatypeiq.NewApiRepositoryListDTO() // ApiRepositoryListDTO | (optional)
configuration := sonatypeiq.NewConfiguration()
apiClient := sonatypeiq.NewAPIClient(configuration)
r, err := apiClient.FirewallAPI.ConfigureRepositories(context.Background(), repositoryManagerId).ApiRepositoryListDTO(apiRepositoryListDTO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallAPI.ConfigureRepositories``: %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. | |
repositoryManagerId | string |
Other parameters are passed through a pointer to a apiConfigureRepositoriesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
apiRepositoryListDTO | ApiRepositoryListDTO | |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteRepositoryManager(ctx, repositoryManagerId).Execute()
package main
import (
"context"
"fmt"
"os"
sonatypeiq "github.com/sonatype-nexus-community/nexus-iq-api-client-go"
)
func main() {
repositoryManagerId := "repositoryManagerId_example" // string |
configuration := sonatypeiq.NewConfiguration()
apiClient := sonatypeiq.NewAPIClient(configuration)
r, err := apiClient.FirewallAPI.DeleteRepositoryManager(context.Background(), repositoryManagerId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallAPI.DeleteRepositoryManager``: %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. | |
repositoryManagerId | string |
Other parameters are passed through a pointer to a apiDeleteRepositoryManagerRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiRepositoryComponentEvaluationResultList EvaluateComponents1(ctx, repositoryManagerId, repositoryId).ApiRepositoryComponentEvaluationRequestList(apiRepositoryComponentEvaluationRequestList).Execute()
package main
import (
"context"
"fmt"
"os"
sonatypeiq "github.com/sonatype-nexus-community/nexus-iq-api-client-go"
)
func main() {
repositoryManagerId := "repositoryManagerId_example" // string |
repositoryId := "repositoryId_example" // string |
apiRepositoryComponentEvaluationRequestList := *sonatypeiq.NewApiRepositoryComponentEvaluationRequestList() // ApiRepositoryComponentEvaluationRequestList | (optional)
configuration := sonatypeiq.NewConfiguration()
apiClient := sonatypeiq.NewAPIClient(configuration)
resp, r, err := apiClient.FirewallAPI.EvaluateComponents1(context.Background(), repositoryManagerId, repositoryId).ApiRepositoryComponentEvaluationRequestList(apiRepositoryComponentEvaluationRequestList).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallAPI.EvaluateComponents1``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EvaluateComponents1`: ApiRepositoryComponentEvaluationResultList
fmt.Fprintf(os.Stdout, "Response from `FirewallAPI.EvaluateComponents1`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
repositoryManagerId | string | ||
repositoryId | string |
Other parameters are passed through a pointer to a apiEvaluateComponents1Request struct via the builder pattern
Name | Type | Description | Notes |
---|
apiRepositoryComponentEvaluationRequestList | ApiRepositoryComponentEvaluationRequestList | |
ApiRepositoryComponentEvaluationResultList
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiRepositoryListDTO GetConfiguredRepositories(ctx, repositoryManagerId).SinceUtcTimestamp(sinceUtcTimestamp).Execute()
package main
import (
"context"
"fmt"
"os"
sonatypeiq "github.com/sonatype-nexus-community/nexus-iq-api-client-go"
)
func main() {
repositoryManagerId := "repositoryManagerId_example" // string |
sinceUtcTimestamp := int64(789) // int64 | (optional)
configuration := sonatypeiq.NewConfiguration()
apiClient := sonatypeiq.NewAPIClient(configuration)
resp, r, err := apiClient.FirewallAPI.GetConfiguredRepositories(context.Background(), repositoryManagerId).SinceUtcTimestamp(sinceUtcTimestamp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallAPI.GetConfiguredRepositories``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetConfiguredRepositories`: ApiRepositoryListDTO
fmt.Fprintf(os.Stdout, "Response from `FirewallAPI.GetConfiguredRepositories`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
repositoryManagerId | string |
Other parameters are passed through a pointer to a apiGetConfiguredRepositoriesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
sinceUtcTimestamp | int64 | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ApiFirewallReleaseQuarantineConfigDTO GetFirewallAutoUnquarantineConfig(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.FirewallAPI.GetFirewallAutoUnquarantineConfig(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallAPI.GetFirewallAutoUnquarantineConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetFirewallAutoUnquarantineConfig`: []ApiFirewallReleaseQuarantineConfigDTO
fmt.Fprintf(os.Stdout, "Response from `FirewallAPI.GetFirewallAutoUnquarantineConfig`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetFirewallAutoUnquarantineConfigRequest struct via the builder pattern
[]ApiFirewallReleaseQuarantineConfigDTO
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]ApiFirewallMetricsResultDTO GetFirewallMetrics(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.FirewallAPI.GetFirewallMetrics(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallAPI.GetFirewallMetrics``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetFirewallMetrics`: map[string]ApiFirewallMetricsResultDTO
fmt.Fprintf(os.Stdout, "Response from `FirewallAPI.GetFirewallMetrics`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetFirewallMetricsRequest struct via the builder pattern
map[string]ApiFirewallMetricsResultDTO
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiFirewallReleaseQuarantineSummaryDTO GetFirewallUnquarantineSummary(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.FirewallAPI.GetFirewallUnquarantineSummary(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallAPI.GetFirewallUnquarantineSummary``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetFirewallUnquarantineSummary`: ApiFirewallReleaseQuarantineSummaryDTO
fmt.Fprintf(os.Stdout, "Response from `FirewallAPI.GetFirewallUnquarantineSummary`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetFirewallUnquarantineSummaryRequest struct via the builder pattern
ApiFirewallReleaseQuarantineSummaryDTO
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetQuarantineList(ctx).Page(page).PageSize(pageSize).PolicyId(policyId).ComponentName(componentName).RepositoryPublicId(repositoryPublicId).SortBy(sortBy).Asc(asc).Execute()
package main
import (
"context"
"fmt"
"os"
sonatypeiq "github.com/sonatype-nexus-community/nexus-iq-api-client-go"
)
func main() {
page := int32(56) // int32 | (optional) (default to 1)
pageSize := int32(56) // int32 | (optional) (default to 10)
policyId := []string{"Inner_example"} // []string | (optional)
componentName := "componentName_example" // string | (optional)
repositoryPublicId := "repositoryPublicId_example" // string | (optional)
sortBy := "sortBy_example" // string | (optional)
asc := true // bool | (optional) (default to false)
configuration := sonatypeiq.NewConfiguration()
apiClient := sonatypeiq.NewAPIClient(configuration)
r, err := apiClient.FirewallAPI.GetQuarantineList(context.Background()).Page(page).PageSize(pageSize).PolicyId(policyId).ComponentName(componentName).RepositoryPublicId(repositoryPublicId).SortBy(sortBy).Asc(asc).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallAPI.GetQuarantineList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiGetQuarantineListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
page | int32 | [default to 1] | |
pageSize | int32 | [default to 10] | |
policyId | []string | ||
componentName | string | ||
repositoryPublicId | string | ||
sortBy | string | ||
asc | bool | [default to false] |
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiFirewallQuarantineSummaryDTO GetQuarantineSummary(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.FirewallAPI.GetQuarantineSummary(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallAPI.GetQuarantineSummary``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetQuarantineSummary`: ApiFirewallQuarantineSummaryDTO
fmt.Fprintf(os.Stdout, "Response from `FirewallAPI.GetQuarantineSummary`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetQuarantineSummaryRequest struct via the builder pattern
ApiFirewallQuarantineSummaryDTO
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetQuarantinedComponentViewAnonymousAccess(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.FirewallAPI.GetQuarantinedComponentViewAnonymousAccess(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallAPI.GetQuarantinedComponentViewAnonymousAccess``: %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 apiGetQuarantinedComponentViewAnonymousAccessRequest struct via the builder pattern
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiRepositoryContainerDTO GetRepositoryContainer(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.FirewallAPI.GetRepositoryContainer(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallAPI.GetRepositoryContainer``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetRepositoryContainer`: ApiRepositoryContainerDTO
fmt.Fprintf(os.Stdout, "Response from `FirewallAPI.GetRepositoryContainer`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetRepositoryContainerRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiRepositoryManagerDTO GetRepositoryManager(ctx, repositoryManagerId).Execute()
package main
import (
"context"
"fmt"
"os"
sonatypeiq "github.com/sonatype-nexus-community/nexus-iq-api-client-go"
)
func main() {
repositoryManagerId := "repositoryManagerId_example" // string |
configuration := sonatypeiq.NewConfiguration()
apiClient := sonatypeiq.NewAPIClient(configuration)
resp, r, err := apiClient.FirewallAPI.GetRepositoryManager(context.Background(), repositoryManagerId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallAPI.GetRepositoryManager``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetRepositoryManager`: ApiRepositoryManagerDTO
fmt.Fprintf(os.Stdout, "Response from `FirewallAPI.GetRepositoryManager`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
repositoryManagerId | string |
Other parameters are passed through a pointer to a apiGetRepositoryManagerRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiRepositoryManagerListDTO GetRepositoryManagers(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.FirewallAPI.GetRepositoryManagers(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallAPI.GetRepositoryManagers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetRepositoryManagers`: ApiRepositoryManagerListDTO
fmt.Fprintf(os.Stdout, "Response from `FirewallAPI.GetRepositoryManagers`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetRepositoryManagersRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetUnquarantineList(ctx).Page(page).PageSize(pageSize).PolicyId(policyId).ComponentName(componentName).SortBy(sortBy).Asc(asc).Execute()
package main
import (
"context"
"fmt"
"os"
sonatypeiq "github.com/sonatype-nexus-community/nexus-iq-api-client-go"
)
func main() {
page := int32(56) // int32 | (optional) (default to 1)
pageSize := int32(56) // int32 | (optional) (default to 10)
policyId := "policyId_example" // string | (optional)
componentName := "componentName_example" // string | (optional)
sortBy := "sortBy_example" // string | (optional)
asc := true // bool | (optional) (default to true)
configuration := sonatypeiq.NewConfiguration()
apiClient := sonatypeiq.NewAPIClient(configuration)
r, err := apiClient.FirewallAPI.GetUnquarantineList(context.Background()).Page(page).PageSize(pageSize).PolicyId(policyId).ComponentName(componentName).SortBy(sortBy).Asc(asc).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallAPI.GetUnquarantineList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiGetUnquarantineListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
page | int32 | [default to 1] | |
pageSize | int32 | [default to 10] | |
policyId | string | ||
componentName | string | ||
sortBy | string | ||
asc | bool | [default to true] |
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ApiFirewallReleaseQuarantineConfigDTO SetFirewallAutoUnquarantineConfig(ctx).ApiFirewallReleaseQuarantineConfigDTO(apiFirewallReleaseQuarantineConfigDTO).Execute()
package main
import (
"context"
"fmt"
"os"
sonatypeiq "github.com/sonatype-nexus-community/nexus-iq-api-client-go"
)
func main() {
apiFirewallReleaseQuarantineConfigDTO := []sonatypeiq.ApiFirewallReleaseQuarantineConfigDTO{*sonatypeiq.NewApiFirewallReleaseQuarantineConfigDTO()} // []ApiFirewallReleaseQuarantineConfigDTO | (optional)
configuration := sonatypeiq.NewConfiguration()
apiClient := sonatypeiq.NewAPIClient(configuration)
resp, r, err := apiClient.FirewallAPI.SetFirewallAutoUnquarantineConfig(context.Background()).ApiFirewallReleaseQuarantineConfigDTO(apiFirewallReleaseQuarantineConfigDTO).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallAPI.SetFirewallAutoUnquarantineConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SetFirewallAutoUnquarantineConfig`: []ApiFirewallReleaseQuarantineConfigDTO
fmt.Fprintf(os.Stdout, "Response from `FirewallAPI.SetFirewallAutoUnquarantineConfig`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSetFirewallAutoUnquarantineConfigRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
apiFirewallReleaseQuarantineConfigDTO | []ApiFirewallReleaseQuarantineConfigDTO |
[]ApiFirewallReleaseQuarantineConfigDTO
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SetQuarantinedComponentViewAnonymousAccess(ctx, enabled).Execute()
package main
import (
"context"
"fmt"
"os"
sonatypeiq "github.com/sonatype-nexus-community/nexus-iq-api-client-go"
)
func main() {
enabled := true // bool |
configuration := sonatypeiq.NewConfiguration()
apiClient := sonatypeiq.NewAPIClient(configuration)
r, err := apiClient.FirewallAPI.SetQuarantinedComponentViewAnonymousAccess(context.Background(), enabled).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FirewallAPI.SetQuarantinedComponentViewAnonymousAccess``: %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. | |
enabled | bool |
Other parameters are passed through a pointer to a apiSetQuarantinedComponentViewAnonymousAccessRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]