All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
Add-OktaHookKey | POST /api/v1/hook-keys | Create a key |
Invoke-OktaDeleteHookKey | DELETE /api/v1/hook-keys/{hookKeyId} | Delete a key |
Get-OktaHookKey | GET /api/v1/hook-keys/{hookKeyId} | Retrieve a key |
Get-OktaPublicKey | GET /api/v1/hook-keys/public/{keyId} | Retrieve a public key |
Invoke-OktaListHookKeys | GET /api/v1/hook-keys | List all keys |
Invoke-OktaReplaceHookKey | PUT /api/v1/hook-keys/{hookKeyId} | Replace a key |
HookKey Add-OktaHookKey
[-KeyRequest]
Create a key
Creates a key
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-OktaConfiguration
# Configure your client ID and scope for authorization
$Configuration.ClientId = "YOUR_CLIENT_ID"
$Configuration.Scope = "OKTA_SCOPES" # for example okta.users.read
$KeyRequest = Initialize-KeyRequest -Name "MyName" # KeyRequest |
# Create a key
try {
$Result = Add-OktaHookKey -KeyRequest $KeyRequest
} catch {
Write-Host ("Exception occurred when calling Add-OktaHookKey: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
Name | Type | Description | Notes |
---|---|---|---|
KeyRequest | KeyRequest |
HookKey (PSCustomObject)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void Invoke-OktaDeleteHookKey
[-HookKeyId]
Delete a key
Deletes a key by hookKeyId
. Once deleted, the Hook Key is unrecoverable. As a safety precaution, unused keys are eligible for deletion.
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-OktaConfiguration
# Configure your client ID and scope for authorization
$Configuration.ClientId = "YOUR_CLIENT_ID"
$Configuration.Scope = "OKTA_SCOPES" # for example okta.users.read
$HookKeyId = "MyHookKeyId" # String |
# Delete a key
try {
$Result = Invoke-OktaDeleteHookKey -HookKeyId $HookKeyId
} catch {
Write-Host ("Exception occurred when calling Invoke-OktaDeleteHookKey: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
Name | Type | Description | Notes |
---|---|---|---|
HookKeyId | String |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
HookKey Get-OktaHookKey
[-HookKeyId]
Retrieve a key
Retrieves a key by hookKeyId
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-OktaConfiguration
# Configure your client ID and scope for authorization
$Configuration.ClientId = "YOUR_CLIENT_ID"
$Configuration.Scope = "OKTA_SCOPES" # for example okta.users.read
$HookKeyId = "MyHookKeyId" # String |
# Retrieve a key
try {
$Result = Get-OktaHookKey -HookKeyId $HookKeyId
} catch {
Write-Host ("Exception occurred when calling Get-OktaHookKey: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
Name | Type | Description | Notes |
---|---|---|---|
HookKeyId | String |
HookKey (PSCustomObject)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
JsonWebKey Get-OktaPublicKey
[-KeyId]
Retrieve a public key
Retrieves a public key by keyId
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-OktaConfiguration
# Configure your client ID and scope for authorization
$Configuration.ClientId = "YOUR_CLIENT_ID"
$Configuration.Scope = "OKTA_SCOPES" # for example okta.users.read
$KeyId = "MyKeyId" # String |
# Retrieve a public key
try {
$Result = Get-OktaPublicKey -KeyId $KeyId
} catch {
Write-Host ("Exception occurred when calling Get-OktaPublicKey: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
Name | Type | Description | Notes |
---|---|---|---|
KeyId | String |
JsonWebKey (PSCustomObject)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
HookKey[] Invoke-OktaListHookKeys
List all keys
Lists all keys
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-OktaConfiguration
# Configure your client ID and scope for authorization
$Configuration.ClientId = "YOUR_CLIENT_ID"
$Configuration.Scope = "OKTA_SCOPES" # for example okta.users.read
# List all keys
try {
$Result = Invoke-OktaListHookKeys
} catch {
Write-Host ("Exception occurred when calling Invoke-OktaListHookKeys: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
This endpoint does not need any parameter.
HookKey[] (PSCustomObject)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
HookKey Invoke-OktaReplaceHookKey
[-HookKeyId]
[-KeyRequest]
Replace a key
Replace a key by hookKeyId
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-OktaConfiguration
# Configure your client ID and scope for authorization
$Configuration.ClientId = "YOUR_CLIENT_ID"
$Configuration.Scope = "OKTA_SCOPES" # for example okta.users.read
$HookKeyId = "MyHookKeyId" # String |
$KeyRequest = Initialize-KeyRequest -Name "MyName" # KeyRequest |
# Replace a key
try {
$Result = Invoke-OktaReplaceHookKey -HookKeyId $HookKeyId -KeyRequest $KeyRequest
} catch {
Write-Host ("Exception occurred when calling Invoke-OktaReplaceHookKey: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
Name | Type | Description | Notes |
---|---|---|---|
HookKeyId | String | ||
KeyRequest | KeyRequest |
HookKey (PSCustomObject)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]