All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
GetByReportId | Get /api/v2/cycloneDx/{cdxVersion}/{applicationId}/reports/{reportId} | |
GetLatest | Get /api/v2/cycloneDx/{cdxVersion}/{applicationId}/stages/{stageId} |
GetByReportId(ctx, applicationId, reportId, cdxVersion).Execute()
package main
import (
"context"
"fmt"
"os"
sonatypeiq "github.com/sonatype-nexus-community/nexus-iq-api-client-go"
)
func main() {
applicationId := "applicationId_example" // string | Enter the internal applicationId for the application you want to generate the SBOM. You can also retrieve the applicationId using the Application REST API.
reportId := "reportId_example" // string | Enter the reportId to generate the SBOM for the application for a specific scan report.
cdxVersion := "cdxVersion_example" // string | Possible values are 1.1|1.2|1.3|1.4|1.5|1.6.
configuration := sonatypeiq.NewConfiguration()
apiClient := sonatypeiq.NewAPIClient(configuration)
r, err := apiClient.CycloneDXAPI.GetByReportId(context.Background(), applicationId, reportId, cdxVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CycloneDXAPI.GetByReportId``: %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. | |
applicationId | string | Enter the internal applicationId for the application you want to generate the SBOM. You can also retrieve the applicationId using the Application REST API. | |
reportId | string | Enter the reportId to generate the SBOM for the application for a specific scan report. | |
cdxVersion | string | Possible values are 1.1 | 1.2 |
Other parameters are passed through a pointer to a apiGetByReportIdRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetLatest(ctx, applicationId, stageId, cdxVersion).Execute()
package main
import (
"context"
"fmt"
"os"
sonatypeiq "github.com/sonatype-nexus-community/nexus-iq-api-client-go"
)
func main() {
applicationId := "applicationId_example" // string | Enter the internal applicationId for the application you want to generate the SBOM. You can also retrieve the applicationId using the Application REST API.
stageId := "stageId_example" // string | Enter the stageId to generate the SBOM based on the latest application policy evaluation at that stage. Allowed values for stageId are 'develop', 'source', 'build', 'stage-release', 'release', and, 'operate'.
cdxVersion := "cdxVersion_example" // string | Possible values are 1.1|1.2|1.3|1.4|1.5|1.6.
configuration := sonatypeiq.NewConfiguration()
apiClient := sonatypeiq.NewAPIClient(configuration)
r, err := apiClient.CycloneDXAPI.GetLatest(context.Background(), applicationId, stageId, cdxVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CycloneDXAPI.GetLatest``: %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. | |
applicationId | string | Enter the internal applicationId for the application you want to generate the SBOM. You can also retrieve the applicationId using the Application REST API. | |
stageId | string | Enter the stageId to generate the SBOM based on the latest application policy evaluation at that stage. Allowed values for stageId are 'develop', 'source', 'build', 'stage-release', 'release', and, 'operate'. | |
cdxVersion | string | Possible values are 1.1 | 1.2 |
Other parameters are passed through a pointer to a apiGetLatestRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]