All URIs are relative to http://keyfactor.example.com
| Method | HTTP request | Description |
|---|---|---|
| PendingAlertAddPendingAlert | Post /Alerts/Pending | Add a pending alert |
| PendingAlertDeletePendingAlert | Delete /Alerts/Pending/{id} | Delete a pending alert |
| PendingAlertEditPendingAlert | Put /Alerts/Pending | Edit a pending alert |
| PendingAlertEditSchedule | Put /Alerts/Pending/Schedule | Edit schedule |
| PendingAlertGetPendingAlert | Get /Alerts/Pending/{id} | Get a pending alert |
| PendingAlertGetPendingAlerts | Get /Alerts/Pending | Gets all pending alerts according to the provided filter and output parameters |
| PendingAlertGetSchedule | Get /Alerts/Pending/Schedule | Get the schedule for pending alerts |
| PendingAlertTestAllPendingAlert | Post /Alerts/Pending/TestAll | Test all pending alerts. Will send alert emails if SendAlerts is true |
| PendingAlertTestPendingAlert | Post /Alerts/Pending/Test | Test pending alert. Will send alert emails if SendAlerts is true |
KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse PendingAlertAddPendingAlert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Add a pending alert
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
req := *openapiclient.NewKeyfactorApiModelsAlertsPendingPendingAlertCreationRequest("DisplayName_example", "Subject_example", "Message_example") // KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest | Information for the new alert
xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1")
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PendingAlertApi.PendingAlertAddPendingAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.PendingAlertAddPendingAlert``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PendingAlertAddPendingAlert`: KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse
fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.PendingAlertAddPendingAlert`: %v\n", resp)
}Other parameters are passed through a pointer to a apiPendingAlertAddPendingAlertRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] |
| req | KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest | Information for the new alert | |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"] |
KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PendingAlertDeletePendingAlert(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 := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1")
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PendingAlertApi.PendingAlertDeletePendingAlert(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.PendingAlertDeletePendingAlert``: %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 apiPendingAlertDeletePendingAlertRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"]
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse PendingAlertEditPendingAlert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Edit a pending alert
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
req := *openapiclient.NewKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest("DisplayName_example", "Subject_example", "Message_example") // KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest | Information for the pending alert
xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1")
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PendingAlertApi.PendingAlertEditPendingAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.PendingAlertEditPendingAlert``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PendingAlertEditPendingAlert`: KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse
fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.PendingAlertEditPendingAlert`: %v\n", resp)
}Other parameters are passed through a pointer to a apiPendingAlertEditPendingAlertRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] |
| req | KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest | Information for the pending alert | |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"] |
KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse PendingAlertEditSchedule(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NewSchedule(newSchedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Edit schedule
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
newSchedule := *openapiclient.NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest() // KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest |
xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1")
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PendingAlertApi.PendingAlertEditSchedule(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NewSchedule(newSchedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.PendingAlertEditSchedule``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PendingAlertEditSchedule`: KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse
fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.PendingAlertEditSchedule`: %v\n", resp)
}Other parameters are passed through a pointer to a apiPendingAlertEditScheduleRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] |
| newSchedule | KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest | ||
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"] |
KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse PendingAlertGetPendingAlert(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 := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1")
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PendingAlertApi.PendingAlertGetPendingAlert(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.PendingAlertGetPendingAlert``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PendingAlertGetPendingAlert`: KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse
fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.PendingAlertGetPendingAlert`: %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 apiPendingAlertGetPendingAlertRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"]
KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse PendingAlertGetPendingAlerts(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute()
Gets all pending alerts according to the provided filter and output parameters
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1")
pagedQueryQueryString := "pagedQueryQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional)
pagedQueryPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional)
pagedQueryReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional)
pagedQuerySortField := "pagedQuerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional)
pagedQuerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PendingAlertApi.PendingAlertGetPendingAlerts(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.PendingAlertGetPendingAlerts``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PendingAlertGetPendingAlerts`: []KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse
fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.PendingAlertGetPendingAlerts`: %v\n", resp)
}Other parameters are passed through a pointer to a apiPendingAlertGetPendingAlertsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"] |
| pagedQueryQueryString | string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | |
| pagedQueryPageReturned | int32 | The current page within the result set to be returned | |
| pagedQueryReturnLimit | int32 | Maximum number of records to be returned in a single call | |
| pagedQuerySortField | string | Field by which the results should be sorted (view results via Management Portal for sortable columns) | |
| pagedQuerySortAscending | int32 | Field sort direction [0=ascending, 1=descending] |
[]KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse PendingAlertGetSchedule(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Get the schedule for pending alerts
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1")
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PendingAlertApi.PendingAlertGetSchedule(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.PendingAlertGetSchedule``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PendingAlertGetSchedule`: KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse
fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.PendingAlertGetSchedule`: %v\n", resp)
}Other parameters are passed through a pointer to a apiPendingAlertGetScheduleRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"] |
KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
KeyfactorApiModelsAlertsPendingPendingAlertTestResponse PendingAlertTestAllPendingAlert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Test all pending alerts. Will send alert emails if SendAlerts is true
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
req := *openapiclient.NewKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest() // KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest | Information for the pending alert
xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1")
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PendingAlertApi.PendingAlertTestAllPendingAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.PendingAlertTestAllPendingAlert``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PendingAlertTestAllPendingAlert`: KeyfactorApiModelsAlertsPendingPendingAlertTestResponse
fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.PendingAlertTestAllPendingAlert`: %v\n", resp)
}Other parameters are passed through a pointer to a apiPendingAlertTestAllPendingAlertRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] |
| req | KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest | Information for the pending alert | |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"] |
KeyfactorApiModelsAlertsPendingPendingAlertTestResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
KeyfactorApiModelsAlertsPendingPendingAlertTestResponse PendingAlertTestPendingAlert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Test pending alert. Will send alert emails if SendAlerts is true
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
req := *openapiclient.NewKeyfactorApiModelsAlertsPendingPendingAlertTestRequest() // KeyfactorApiModelsAlertsPendingPendingAlertTestRequest | Information for the pending alert
xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1")
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PendingAlertApi.PendingAlertTestPendingAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.PendingAlertTestPendingAlert``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PendingAlertTestPendingAlert`: KeyfactorApiModelsAlertsPendingPendingAlertTestResponse
fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.PendingAlertTestPendingAlert`: %v\n", resp)
}Other parameters are passed through a pointer to a apiPendingAlertTestPendingAlertRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] |
| req | KeyfactorApiModelsAlertsPendingPendingAlertTestRequest | Information for the pending alert | |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"] |
KeyfactorApiModelsAlertsPendingPendingAlertTestResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]