All URIs are relative to https://rudder.example.local/rudder/api/latest
Method | HTTP request | Description |
---|---|---|
CheckCVE | Post /cve/check | Trigger a CVE check |
GetAllCve | Get /cve | Get all CVE details |
GetCVECheckConfiguration | Get /cve/check/config | Get CVE check config |
GetCVEList | Post /cve/list | Get a list of CVE details |
GetCve | Get /cve/{cveId} | Get a CVE details |
GetLastCVECheck | Get /cve/check/last | Get last CVE check result |
ReadCVEfromFS | Post /cve/update/fs | Update CVE database from file system |
UpdateCVE | Post /cve/update | Update CVE database from remote source |
UpdateCVECheckConfiguration | Post /cve/check/config | Update cve check config |
CheckCVE200Response CheckCVE(ctx).Execute()
Trigger a CVE check
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CVEAPI.CheckCVE(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CVEAPI.CheckCVE``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CheckCVE`: CheckCVE200Response
fmt.Fprintf(os.Stdout, "Response from `CVEAPI.CheckCVE`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiCheckCVERequest 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]
GetAllCve200Response GetAllCve(ctx).Execute()
Get all CVE details
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CVEAPI.GetAllCve(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CVEAPI.GetAllCve``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAllCve`: GetAllCve200Response
fmt.Fprintf(os.Stdout, "Response from `CVEAPI.GetAllCve`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetAllCveRequest 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]
GetCVECheckConfiguration200Response GetCVECheckConfiguration(ctx).Execute()
Get CVE check config
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CVEAPI.GetCVECheckConfiguration(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CVEAPI.GetCVECheckConfiguration``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCVECheckConfiguration`: GetCVECheckConfiguration200Response
fmt.Fprintf(os.Stdout, "Response from `CVEAPI.GetCVECheckConfiguration`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetCVECheckConfigurationRequest struct via the builder pattern
GetCVECheckConfiguration200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetCVEList200Response GetCVEList(ctx).GetCVEListRequest(getCVEListRequest).Execute()
Get a list of CVE details
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
getCVEListRequest := *openapiclient.NewGetCVEListRequest() // GetCVEListRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CVEAPI.GetCVEList(context.Background()).GetCVEListRequest(getCVEListRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CVEAPI.GetCVEList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCVEList`: GetCVEList200Response
fmt.Fprintf(os.Stdout, "Response from `CVEAPI.GetCVEList`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGetCVEListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
getCVEListRequest | GetCVEListRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetCve200Response GetCve(ctx, cveId).Execute()
Get a CVE details
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
cveId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Id of the CVE
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CVEAPI.GetCve(context.Background(), cveId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CVEAPI.GetCve``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCve`: GetCve200Response
fmt.Fprintf(os.Stdout, "Response from `CVEAPI.GetCve`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cveId | string | Id of the CVE |
Other parameters are passed through a pointer to a apiGetCveRequest 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]
GetLastCVECheck200Response GetLastCVECheck(ctx).GroupId(groupId).NodeId(nodeId).CveId(cveId).Package_(package_).Severity(severity).Execute()
Get last CVE check result
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
groupId := "groupId_example" // string | Id of node groups you want to get from last CVE check (optional)
nodeId := "nodeId_example" // string | Id of nodes you want to get from last CVE check (optional)
cveId := "cveId_example" // string | Id of CVE you want to get from last CVE check (optional)
package_ := "package__example" // string | Name of packages you want to get from last CVE check (optional)
severity := "severity_example" // string | Severity of the CVE you want to get from last CVE check (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CVEAPI.GetLastCVECheck(context.Background()).GroupId(groupId).NodeId(nodeId).CveId(cveId).Package_(package_).Severity(severity).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CVEAPI.GetLastCVECheck``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetLastCVECheck`: GetLastCVECheck200Response
fmt.Fprintf(os.Stdout, "Response from `CVEAPI.GetLastCVECheck`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGetLastCVECheckRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
groupId | string | Id of node groups you want to get from last CVE check | |
nodeId | string | Id of nodes you want to get from last CVE check | |
cveId | string | Id of CVE you want to get from last CVE check | |
package_ | string | Name of packages you want to get from last CVE check | |
severity | string | Severity of the CVE you want to get from last CVE check |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReadCVEfromFS200Response ReadCVEfromFS(ctx).Execute()
Update CVE database from file system
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CVEAPI.ReadCVEfromFS(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CVEAPI.ReadCVEfromFS``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ReadCVEfromFS`: ReadCVEfromFS200Response
fmt.Fprintf(os.Stdout, "Response from `CVEAPI.ReadCVEfromFS`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiReadCVEfromFSRequest 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]
UpdateCVE200Response UpdateCVE(ctx).UpdateCVERequest(updateCVERequest).Execute()
Update CVE database from remote source
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
updateCVERequest := *openapiclient.NewUpdateCVERequest() // UpdateCVERequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CVEAPI.UpdateCVE(context.Background()).UpdateCVERequest(updateCVERequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CVEAPI.UpdateCVE``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateCVE`: UpdateCVE200Response
fmt.Fprintf(os.Stdout, "Response from `CVEAPI.UpdateCVE`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiUpdateCVERequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
updateCVERequest | UpdateCVERequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateCVECheckConfiguration200Response UpdateCVECheckConfiguration(ctx).UpdateCVECheckConfigurationRequest(updateCVECheckConfigurationRequest).Execute()
Update cve check config
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
updateCVECheckConfigurationRequest := *openapiclient.NewUpdateCVECheckConfigurationRequest() // UpdateCVECheckConfigurationRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CVEAPI.UpdateCVECheckConfiguration(context.Background()).UpdateCVECheckConfigurationRequest(updateCVECheckConfigurationRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CVEAPI.UpdateCVECheckConfiguration``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateCVECheckConfiguration`: UpdateCVECheckConfiguration200Response
fmt.Fprintf(os.Stdout, "Response from `CVEAPI.UpdateCVECheckConfiguration`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiUpdateCVECheckConfigurationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
updateCVECheckConfigurationRequest | UpdateCVECheckConfigurationRequest |
UpdateCVECheckConfiguration200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]