All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
ActivateEventHook | Post /api/v1/eventHooks/{eventHookId}/lifecycle/activate | Activate an Event Hook |
CreateEventHook | Post /api/v1/eventHooks | Create an Event Hook |
DeactivateEventHook | Post /api/v1/eventHooks/{eventHookId}/lifecycle/deactivate | Deactivate an Event Hook |
DeleteEventHook | Delete /api/v1/eventHooks/{eventHookId} | Delete an Event Hook |
GetEventHook | Get /api/v1/eventHooks/{eventHookId} | Retrieve an Event Hook |
ListEventHooks | Get /api/v1/eventHooks | List all Event Hooks |
ReplaceEventHook | Put /api/v1/eventHooks/{eventHookId} | Replace an Event Hook |
VerifyEventHook | Post /api/v1/eventHooks/{eventHookId}/lifecycle/verify | Verify an Event Hook |
EventHook ActivateEventHook(ctx, eventHookId).Execute()
Activate an Event Hook
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/okta/okta-sdk-golang"
)
func main() {
eventHookId := "who8vt36qfNpCGz9H1e6" // string | `id` of the Event Hook
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventHookAPI.ActivateEventHook(context.Background(), eventHookId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventHookAPI.ActivateEventHook``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ActivateEventHook`: EventHook
fmt.Fprintf(os.Stdout, "Response from `EventHookAPI.ActivateEventHook`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
eventHookId | string | `id` of the Event Hook |
Other parameters are passed through a pointer to a apiActivateEventHookRequest 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]
EventHook CreateEventHook(ctx).EventHook(eventHook).Execute()
Create an Event Hook
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/okta/okta-sdk-golang"
)
func main() {
eventHook := *openapiclient.NewEventHook(*openapiclient.NewEventHookChannel(*openapiclient.NewEventHookChannelConfig("Uri_example"), openapiclient.EventHookChannelType("HTTP"), "Version_example"), *openapiclient.NewEventSubscriptions([]string{"Items_example"}, openapiclient.EventSubscriptionType("EVENT_TYPE")), "Name_example") // EventHook |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventHookAPI.CreateEventHook(context.Background()).EventHook(eventHook).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventHookAPI.CreateEventHook``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateEventHook`: EventHook
fmt.Fprintf(os.Stdout, "Response from `EventHookAPI.CreateEventHook`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateEventHookRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
eventHook | EventHook |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EventHook DeactivateEventHook(ctx, eventHookId).Execute()
Deactivate an Event Hook
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/okta/okta-sdk-golang"
)
func main() {
eventHookId := "who8vt36qfNpCGz9H1e6" // string | `id` of the Event Hook
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventHookAPI.DeactivateEventHook(context.Background(), eventHookId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventHookAPI.DeactivateEventHook``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeactivateEventHook`: EventHook
fmt.Fprintf(os.Stdout, "Response from `EventHookAPI.DeactivateEventHook`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
eventHookId | string | `id` of the Event Hook |
Other parameters are passed through a pointer to a apiDeactivateEventHookRequest 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]
DeleteEventHook(ctx, eventHookId).Execute()
Delete an Event Hook
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/okta/okta-sdk-golang"
)
func main() {
eventHookId := "who8vt36qfNpCGz9H1e6" // string | `id` of the Event Hook
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.EventHookAPI.DeleteEventHook(context.Background(), eventHookId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventHookAPI.DeleteEventHook``: %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. | |
eventHookId | string | `id` of the Event Hook |
Other parameters are passed through a pointer to a apiDeleteEventHookRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EventHook GetEventHook(ctx, eventHookId).Execute()
Retrieve an Event Hook
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/okta/okta-sdk-golang"
)
func main() {
eventHookId := "who8vt36qfNpCGz9H1e6" // string | `id` of the Event Hook
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventHookAPI.GetEventHook(context.Background(), eventHookId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventHookAPI.GetEventHook``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEventHook`: EventHook
fmt.Fprintf(os.Stdout, "Response from `EventHookAPI.GetEventHook`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
eventHookId | string | `id` of the Event Hook |
Other parameters are passed through a pointer to a apiGetEventHookRequest 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]
[]EventHook ListEventHooks(ctx).Execute()
List all Event Hooks
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/okta/okta-sdk-golang"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventHookAPI.ListEventHooks(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventHookAPI.ListEventHooks``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListEventHooks`: []EventHook
fmt.Fprintf(os.Stdout, "Response from `EventHookAPI.ListEventHooks`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListEventHooksRequest 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]
EventHook ReplaceEventHook(ctx, eventHookId).EventHook(eventHook).Execute()
Replace an Event Hook
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/okta/okta-sdk-golang"
)
func main() {
eventHookId := "who8vt36qfNpCGz9H1e6" // string | `id` of the Event Hook
eventHook := *openapiclient.NewEventHook(*openapiclient.NewEventHookChannel(*openapiclient.NewEventHookChannelConfig("Uri_example"), openapiclient.EventHookChannelType("HTTP"), "Version_example"), *openapiclient.NewEventSubscriptions([]string{"Items_example"}, openapiclient.EventSubscriptionType("EVENT_TYPE")), "Name_example") // EventHook |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventHookAPI.ReplaceEventHook(context.Background(), eventHookId).EventHook(eventHook).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventHookAPI.ReplaceEventHook``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ReplaceEventHook`: EventHook
fmt.Fprintf(os.Stdout, "Response from `EventHookAPI.ReplaceEventHook`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
eventHookId | string | `id` of the Event Hook |
Other parameters are passed through a pointer to a apiReplaceEventHookRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
eventHook | EventHook | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EventHook VerifyEventHook(ctx, eventHookId).Execute()
Verify an Event Hook
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/okta/okta-sdk-golang"
)
func main() {
eventHookId := "who8vt36qfNpCGz9H1e6" // string | `id` of the Event Hook
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventHookAPI.VerifyEventHook(context.Background(), eventHookId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventHookAPI.VerifyEventHook``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `VerifyEventHook`: EventHook
fmt.Fprintf(os.Stdout, "Response from `EventHookAPI.VerifyEventHook`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
eventHookId | string | `id` of the Event Hook |
Other parameters are passed through a pointer to a apiVerifyEventHookRequest 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]