All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
DiagnosticNotification | Get /deepfence/diagnosis/notification | Get Diagnostic Notification |
GenerateAgentDiagnosticLogs | Post /deepfence/diagnosis/agent-logs | Generate Agent Diagnostic Logs |
GenerateCloudScannerDiagnosticLogs | Post /deepfence/diagnosis/cloud-scanner-logs | Generate Cloud Scanner Diagnostic Logs |
GenerateConsoleDiagnosticLogs | Post /deepfence/diagnosis/console-logs | Generate Console Diagnostic Logs |
GetDiagnosticLogs | Get /deepfence/diagnosis/diagnostic-logs | Get Diagnostic Logs |
UpdateAgentDiagnosticLogsStatus | Put /deepfence/diagnosis/agent-logs/status/{node_id} | Update Agent Diagnostic Logs Status |
UpdateCloudScannerDiagnosticLogsStatus | Put /deepfence/diagnosis/cloud-scanner-logs/status/{node_id} | Update Cloud Scanner Diagnostic Logs Status |
[]DiagnosisDiagnosticNotification DiagnosticNotification(ctx).Execute()
Get Diagnostic Notification
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/deepfence/golang_deepfence_sdk/client"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DiagnosisAPI.DiagnosticNotification(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DiagnosisAPI.DiagnosticNotification``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DiagnosticNotification`: []DiagnosisDiagnosticNotification
fmt.Fprintf(os.Stdout, "Response from `DiagnosisAPI.DiagnosticNotification`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiDiagnosticNotificationRequest struct via the builder pattern
[]DiagnosisDiagnosticNotification
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GenerateAgentDiagnosticLogs(ctx).DiagnosisGenerateAgentDiagnosticLogsRequest(diagnosisGenerateAgentDiagnosticLogsRequest).Execute()
Generate Agent Diagnostic Logs
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/deepfence/golang_deepfence_sdk/client"
)
func main() {
diagnosisGenerateAgentDiagnosticLogsRequest := *openapiclient.NewDiagnosisGenerateAgentDiagnosticLogsRequest([]openapiclient.DiagnosisNodeIdentifier{*openapiclient.NewDiagnosisNodeIdentifier("NodeId_example", "NodeType_example")}, int32(123)) // DiagnosisGenerateAgentDiagnosticLogsRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.DiagnosisAPI.GenerateAgentDiagnosticLogs(context.Background()).DiagnosisGenerateAgentDiagnosticLogsRequest(diagnosisGenerateAgentDiagnosticLogsRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DiagnosisAPI.GenerateAgentDiagnosticLogs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiGenerateAgentDiagnosticLogsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
diagnosisGenerateAgentDiagnosticLogsRequest | DiagnosisGenerateAgentDiagnosticLogsRequest |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GenerateCloudScannerDiagnosticLogs(ctx).DiagnosisGenerateCloudScannerDiagnosticLogsRequest(diagnosisGenerateCloudScannerDiagnosticLogsRequest).Execute()
Generate Cloud Scanner Diagnostic Logs
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/deepfence/golang_deepfence_sdk/client"
)
func main() {
diagnosisGenerateCloudScannerDiagnosticLogsRequest := *openapiclient.NewDiagnosisGenerateCloudScannerDiagnosticLogsRequest([]openapiclient.DiagnosisNodeIdentifier{*openapiclient.NewDiagnosisNodeIdentifier("NodeId_example", "NodeType_example")}, int32(123)) // DiagnosisGenerateCloudScannerDiagnosticLogsRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.DiagnosisAPI.GenerateCloudScannerDiagnosticLogs(context.Background()).DiagnosisGenerateCloudScannerDiagnosticLogsRequest(diagnosisGenerateCloudScannerDiagnosticLogsRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DiagnosisAPI.GenerateCloudScannerDiagnosticLogs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiGenerateCloudScannerDiagnosticLogsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
diagnosisGenerateCloudScannerDiagnosticLogsRequest | DiagnosisGenerateCloudScannerDiagnosticLogsRequest |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GenerateConsoleDiagnosticLogs(ctx).DiagnosisGenerateConsoleDiagnosticLogsRequest(diagnosisGenerateConsoleDiagnosticLogsRequest).Execute()
Generate Console Diagnostic Logs
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/deepfence/golang_deepfence_sdk/client"
)
func main() {
diagnosisGenerateConsoleDiagnosticLogsRequest := *openapiclient.NewDiagnosisGenerateConsoleDiagnosticLogsRequest(int32(123)) // DiagnosisGenerateConsoleDiagnosticLogsRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.DiagnosisAPI.GenerateConsoleDiagnosticLogs(context.Background()).DiagnosisGenerateConsoleDiagnosticLogsRequest(diagnosisGenerateConsoleDiagnosticLogsRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DiagnosisAPI.GenerateConsoleDiagnosticLogs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiGenerateConsoleDiagnosticLogsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
diagnosisGenerateConsoleDiagnosticLogsRequest | DiagnosisGenerateConsoleDiagnosticLogsRequest |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DiagnosisGetDiagnosticLogsResponse GetDiagnosticLogs(ctx).Execute()
Get Diagnostic Logs
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/deepfence/golang_deepfence_sdk/client"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DiagnosisAPI.GetDiagnosticLogs(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DiagnosisAPI.GetDiagnosticLogs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetDiagnosticLogs`: DiagnosisGetDiagnosticLogsResponse
fmt.Fprintf(os.Stdout, "Response from `DiagnosisAPI.GetDiagnosticLogs`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetDiagnosticLogsRequest struct via the builder pattern
DiagnosisGetDiagnosticLogsResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateAgentDiagnosticLogsStatus(ctx, nodeId).DiagnosisDiagnosticLogsStatus(diagnosisDiagnosticLogsStatus).Execute()
Update Agent Diagnostic Logs Status
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/deepfence/golang_deepfence_sdk/client"
)
func main() {
nodeId := "nodeId_example" // string |
diagnosisDiagnosticLogsStatus := *openapiclient.NewDiagnosisDiagnosticLogsStatus("Status_example") // DiagnosisDiagnosticLogsStatus | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.DiagnosisAPI.UpdateAgentDiagnosticLogsStatus(context.Background(), nodeId).DiagnosisDiagnosticLogsStatus(diagnosisDiagnosticLogsStatus).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DiagnosisAPI.UpdateAgentDiagnosticLogsStatus``: %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. | |
nodeId | string |
Other parameters are passed through a pointer to a apiUpdateAgentDiagnosticLogsStatusRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
diagnosisDiagnosticLogsStatus | DiagnosisDiagnosticLogsStatus | |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateCloudScannerDiagnosticLogsStatus(ctx, nodeId).DiagnosisDiagnosticLogsStatus(diagnosisDiagnosticLogsStatus).Execute()
Update Cloud Scanner Diagnostic Logs Status
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/deepfence/golang_deepfence_sdk/client"
)
func main() {
nodeId := "nodeId_example" // string |
diagnosisDiagnosticLogsStatus := *openapiclient.NewDiagnosisDiagnosticLogsStatus("Status_example") // DiagnosisDiagnosticLogsStatus | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.DiagnosisAPI.UpdateCloudScannerDiagnosticLogsStatus(context.Background(), nodeId).DiagnosisDiagnosticLogsStatus(diagnosisDiagnosticLogsStatus).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DiagnosisAPI.UpdateCloudScannerDiagnosticLogsStatus``: %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. | |
nodeId | string |
Other parameters are passed through a pointer to a apiUpdateCloudScannerDiagnosticLogsStatusRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
diagnosisDiagnosticLogsStatus | DiagnosisDiagnosticLogsStatus | |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]