All URIs are relative to https://api.aptible.com
Method | HTTP request | Description |
---|---|---|
GetIntrustionDetectionReport | Get /intrusion_detection_reports/{id} | show intrusion_detection_report |
GetIntrustionDetectionReportCsvDownload | Get /intrusion_detection_reports/{intrusion_report_id}/download_csv | download_csv intrusion_detection_report |
GetIntrustionDetectionReportPdfDownload | Get /intrusion_detection_reports/{intrusion_report_id}/download_pdf | download_pdf intrusion_detection_report |
ListIntrustionDetectionReportsForStack | Get /stacks/{stack_id}/intrusion_detection_reports | list intrusion_detection_reports |
IntrusionDetectionReport GetIntrustionDetectionReport(ctx, id).Execute()
show intrusion_detection_report
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/aptible/aptible-api-go/aptibleapi"
)
func main() {
id := int32(56) // int32 | id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IntrusionDetectionReportsAPI.GetIntrustionDetectionReport(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IntrusionDetectionReportsAPI.GetIntrustionDetectionReport``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetIntrustionDetectionReport`: IntrusionDetectionReport
fmt.Fprintf(os.Stdout, "Response from `IntrusionDetectionReportsAPI.GetIntrustionDetectionReport`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 | id |
Other parameters are passed through a pointer to a apiGetIntrustionDetectionReportRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/hal+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetIntrustionDetectionReportCsvDownload(ctx, intrusionReportId).Execute()
download_csv intrusion_detection_report
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/aptible/aptible-api-go/aptibleapi"
)
func main() {
intrusionReportId := int32(56) // int32 | intrusion_report_id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.IntrusionDetectionReportsAPI.GetIntrustionDetectionReportCsvDownload(context.Background(), intrusionReportId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IntrusionDetectionReportsAPI.GetIntrustionDetectionReportCsvDownload``: %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. | |
intrusionReportId | int32 | intrusion_report_id |
Other parameters are passed through a pointer to a apiGetIntrustionDetectionReportCsvDownloadRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/hal+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetIntrustionDetectionReportPdfDownload(ctx, intrusionReportId).Execute()
download_pdf intrusion_detection_report
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/aptible/aptible-api-go/aptibleapi"
)
func main() {
intrusionReportId := int32(56) // int32 | intrusion_report_id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.IntrusionDetectionReportsAPI.GetIntrustionDetectionReportPdfDownload(context.Background(), intrusionReportId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IntrusionDetectionReportsAPI.GetIntrustionDetectionReportPdfDownload``: %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. | |
intrusionReportId | int32 | intrusion_report_id |
Other parameters are passed through a pointer to a apiGetIntrustionDetectionReportPdfDownloadRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/hal+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListIntrustionDetectionReportsForStack200Response ListIntrustionDetectionReportsForStack(ctx, stackId).Page(page).Execute()
list intrusion_detection_reports
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/aptible/aptible-api-go/aptibleapi"
)
func main() {
stackId := int32(56) // int32 | stack_id
page := int32(56) // int32 | current page of results for pagination (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IntrusionDetectionReportsAPI.ListIntrustionDetectionReportsForStack(context.Background(), stackId).Page(page).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IntrusionDetectionReportsAPI.ListIntrustionDetectionReportsForStack``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListIntrustionDetectionReportsForStack`: ListIntrustionDetectionReportsForStack200Response
fmt.Fprintf(os.Stdout, "Response from `IntrusionDetectionReportsAPI.ListIntrustionDetectionReportsForStack`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
stackId | int32 | stack_id |
Other parameters are passed through a pointer to a apiListIntrustionDetectionReportsForStackRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
page | int32 | current page of results for pagination |
ListIntrustionDetectionReportsForStack200Response
- Content-Type: Not defined
- Accept: application/hal+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]