Class EventHooksClient
A client that communicates with the Okta management API.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Okta.Sdk
Assembly: Okta.Sdk.dll
Syntax
public sealed class EventHooksClient : OktaClient, IOktaClient, IEventHooksClient
Methods
ActivateEventHookAsync(String, CancellationToken)
Success
Declaration
public Task<IEventHook> ActivateEventHookAsync(string eventHookId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.String | eventHookId | |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IEventHook> | The IEventHook response. |
CreateEventHookAsync(IEventHook, CancellationToken)
Success
Declaration
public Task<IEventHook> CreateEventHookAsync(IEventHook eventHook, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IEventHook | eventHook | The IEventHook resource. |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IEventHook> | The IEventHook response. |
DeactivateEventHookAsync(String, CancellationToken)
Success
Declaration
public Task<IEventHook> DeactivateEventHookAsync(string eventHookId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.String | eventHookId | |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IEventHook> | The IEventHook response. |
DeleteEventHookAsync(String, CancellationToken)
Success
Declaration
public Task DeleteEventHookAsync(string eventHookId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.String | eventHookId | |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A Task that represents the asynchronous operation. |
GetEventHookAsync(String, CancellationToken)
Success
Declaration
public Task<IEventHook> GetEventHookAsync(string eventHookId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.String | eventHookId | |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IEventHook> | The IEventHook response. |
ListEventHooks()
Success
Declaration
public ICollectionClient<IEventHook> ListEventHooks()
Returns
Type | Description |
---|---|
ICollectionClient<IEventHook> | A collection of IEventHook that can be enumerated asynchronously. |
UpdateEventHookAsync(IEventHook, String, CancellationToken)
Success
Declaration
public Task<IEventHook> UpdateEventHookAsync(IEventHook eventHook, string eventHookId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IEventHook | eventHook | The IEventHook resource. |
System.String | eventHookId | |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IEventHook> | The IEventHook response. |
VerifyEventHookAsync(String, CancellationToken)
Success
Declaration
public Task<IEventHook> VerifyEventHookAsync(string eventHookId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.String | eventHookId | |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IEventHook> | The IEventHook response. |