public_keys
Creates, updates, deletes, gets or lists a public_keys resource.
Overview
| Name | public_keys |
| Type | Resource |
| Id | okta.hook_keys.public_keys |
Fields
The following fields are returned by SELECT queries:
- get_public_key
| Name | Datatype | Description |
|---|---|---|
alg | string | Algorithm used in the key |
e | string | RSA key value (exponent) for key binding |
kid | string | Unique identifier for the certificate |
kty | string | Cryptographic algorithm family for the certificate's keypair |
n | string | RSA key value (modulus) for key binding |
use | string | Acceptable use of the certificate |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_public_key | select | subdomain | Retrieves a public key by keyId>Note: keyId is the alias of the public key. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
subdomain | string | The domain of your organization. This can be a provided subdomain of an official okta domain (okta.com, oktapreview.com, etc) or one of your configured custom domains. (default: my-org) |
SELECT examples
- get_public_key
Retrieves a public key by keyId
>Note: keyId is the alias of the public key.
SELECT
alg,
e,
kid,
kty,
n,
use
FROM okta.hook_keys.public_keys
WHERE subdomain = '{{ subdomain }}' -- required
;