All URIs are relative to http://keyfactor.example.com
| Method | HTTP request | Description |
|---|---|---|
| CreateAlertsPending | POST /Alerts/Pending | Add a pending alert |
| CreateAlertsPendingTest | POST /Alerts/Pending/Test | Test pending alert. Will send alert emails if SendAlerts is true |
| CreateAlertsPendingTestAll | POST /Alerts/Pending/TestAll | Test all pending alerts. Will send alert emails if SendAlerts is true |
| DeleteAlertsPendingById | DELETE /Alerts/Pending/{id} | Delete a pending alert |
| GetAlertsPending | GET /Alerts/Pending | Gets all pending alerts according to the provided filter and output parameters |
| GetAlertsPendingById | GET /Alerts/Pending/{id} | Get a pending alert |
| GetAlertsPendingSchedule | GET /Alerts/Pending/Schedule | Get the schedule for pending alerts |
| UpdateAlertsPending | PUT /Alerts/Pending | Edit a pending alert |
| UpdateAlertsPendingSchedule | PUT /Alerts/Pending/Schedule | Edit schedule |
AlertsPendingPendingAlertDefinitionResponse NewCreateAlertsPendingRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsPendingPendingAlertCreationRequest(alertsPendingPendingAlertCreationRequest).Execute()
Add a pending alert
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
alertsPendingPendingAlertCreationRequest := *openapiclient.NewAlertsPendingPendingAlertCreationRequest("DisplayName_example", "Subject_example", "Message_example") // AlertsPendingPendingAlertCreationRequest | Information for the new alert (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PendingAlertApi.NewCreateAlertsPendingRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsPendingPendingAlertCreationRequest(alertsPendingPendingAlertCreationRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.CreateAlertsPending``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateAlertsPending`: AlertsPendingPendingAlertDefinitionResponse
fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.CreateAlertsPending`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateAlertsPendingRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | |
| alertsPendingPendingAlertCreationRequest | AlertsPendingPendingAlertCreationRequest | Information for the new alert |
AlertsPendingPendingAlertDefinitionResponse
- Content-Type: application/json-patch+json, application/json, text/json, application/*+json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AlertsPendingPendingAlertTestResponse NewCreateAlertsPendingTestRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsPendingPendingAlertTestRequest(alertsPendingPendingAlertTestRequest).Execute()
Test pending alert. Will send alert emails if SendAlerts is true
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
alertsPendingPendingAlertTestRequest := *openapiclient.NewAlertsPendingPendingAlertTestRequest() // AlertsPendingPendingAlertTestRequest | Information for the pending alert (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PendingAlertApi.NewCreateAlertsPendingTestRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsPendingPendingAlertTestRequest(alertsPendingPendingAlertTestRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.CreateAlertsPendingTest``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateAlertsPendingTest`: AlertsPendingPendingAlertTestResponse
fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.CreateAlertsPendingTest`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateAlertsPendingTestRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | |
| alertsPendingPendingAlertTestRequest | AlertsPendingPendingAlertTestRequest | Information for the pending alert |
AlertsPendingPendingAlertTestResponse
- Content-Type: application/json-patch+json, application/json, text/json, application/*+json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AlertsPendingPendingAlertTestResponse NewCreateAlertsPendingTestAllRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsPendingPendingAlertTestAllRequest(alertsPendingPendingAlertTestAllRequest).Execute()
Test all pending alerts. Will send alert emails if SendAlerts is true
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
alertsPendingPendingAlertTestAllRequest := *openapiclient.NewAlertsPendingPendingAlertTestAllRequest() // AlertsPendingPendingAlertTestAllRequest | Information for the pending alert (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PendingAlertApi.NewCreateAlertsPendingTestAllRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsPendingPendingAlertTestAllRequest(alertsPendingPendingAlertTestAllRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.CreateAlertsPendingTestAll``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateAlertsPendingTestAll`: AlertsPendingPendingAlertTestResponse
fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.CreateAlertsPendingTestAll`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateAlertsPendingTestAllRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | |
| alertsPendingPendingAlertTestAllRequest | AlertsPendingPendingAlertTestAllRequest | Information for the pending alert |
AlertsPendingPendingAlertTestResponse
- Content-Type: application/json-patch+json, application/json, text/json, application/*+json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NewDeleteAlertsPendingByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Delete a pending alert
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | Id for the pending alert
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PendingAlertApi.NewDeleteAlertsPendingByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.DeleteAlertsPendingById``: %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. | |
| id | int32 | Id for the pending alert |
Other parameters are passed through a pointer to a apiDeleteAlertsPendingByIdRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]AlertsPendingPendingAlertDefinitionResponse NewGetAlertsPendingRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Gets all pending alerts according to the provided filter and output parameters
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
queryString := "queryString_example" // string | (optional)
pageReturned := int32(56) // int32 | (optional)
returnLimit := int32(56) // int32 | (optional)
sortField := "sortField_example" // string | (optional)
sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional)
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PendingAlertApi.NewGetAlertsPendingRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.GetAlertsPending``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAlertsPending`: []AlertsPendingPendingAlertDefinitionResponse
fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.GetAlertsPending`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetAlertsPendingRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| queryString | string | ||
| pageReturned | int32 | ||
| returnLimit | int32 | ||
| sortField | string | ||
| sortAscending | KeyfactorCommonQueryableExtensionsSortOrder | ||
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 |
[]AlertsPendingPendingAlertDefinitionResponse
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AlertsPendingPendingAlertDefinitionResponse NewGetAlertsPendingByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Get a pending alert
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | Id for the pending alert to get
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PendingAlertApi.NewGetAlertsPendingByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.GetAlertsPendingById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAlertsPendingById`: AlertsPendingPendingAlertDefinitionResponse
fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.GetAlertsPendingById`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | Id for the pending alert to get |
Other parameters are passed through a pointer to a apiGetAlertsPendingByIdRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 |
AlertsPendingPendingAlertDefinitionResponse
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AlertsAlertScheduleAlertScheduleResponse NewGetAlertsPendingScheduleRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Get the schedule for pending alerts
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PendingAlertApi.NewGetAlertsPendingScheduleRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.GetAlertsPendingSchedule``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAlertsPendingSchedule`: AlertsAlertScheduleAlertScheduleResponse
fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.GetAlertsPendingSchedule`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetAlertsPendingScheduleRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 |
AlertsAlertScheduleAlertScheduleResponse
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AlertsPendingPendingAlertDefinitionResponse NewUpdateAlertsPendingRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsPendingPendingAlertUpdateRequest(alertsPendingPendingAlertUpdateRequest).Execute()
Edit a pending alert
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
alertsPendingPendingAlertUpdateRequest := *openapiclient.NewAlertsPendingPendingAlertUpdateRequest("DisplayName_example", "Subject_example", "Message_example") // AlertsPendingPendingAlertUpdateRequest | Information for the pending alert (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PendingAlertApi.NewUpdateAlertsPendingRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsPendingPendingAlertUpdateRequest(alertsPendingPendingAlertUpdateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.UpdateAlertsPending``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateAlertsPending`: AlertsPendingPendingAlertDefinitionResponse
fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.UpdateAlertsPending`: %v\n", resp)
}Other parameters are passed through a pointer to a apiUpdateAlertsPendingRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | |
| alertsPendingPendingAlertUpdateRequest | AlertsPendingPendingAlertUpdateRequest | Information for the pending alert |
AlertsPendingPendingAlertDefinitionResponse
- Content-Type: application/json-patch+json, application/json, text/json, application/*+json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AlertsAlertScheduleAlertScheduleResponse NewUpdateAlertsPendingScheduleRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsAlertScheduleAlertScheduleRequest(alertsAlertScheduleAlertScheduleRequest).Execute()
Edit schedule
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
alertsAlertScheduleAlertScheduleRequest := *openapiclient.NewAlertsAlertScheduleAlertScheduleRequest() // AlertsAlertScheduleAlertScheduleRequest | (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PendingAlertApi.NewUpdateAlertsPendingScheduleRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsAlertScheduleAlertScheduleRequest(alertsAlertScheduleAlertScheduleRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.UpdateAlertsPendingSchedule``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateAlertsPendingSchedule`: AlertsAlertScheduleAlertScheduleResponse
fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.UpdateAlertsPendingSchedule`: %v\n", resp)
}Other parameters are passed through a pointer to a apiUpdateAlertsPendingScheduleRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | |
| alertsAlertScheduleAlertScheduleRequest | AlertsAlertScheduleAlertScheduleRequest |
AlertsAlertScheduleAlertScheduleResponse
- Content-Type: application/json-patch+json, application/json, text/json, application/*+json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]