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 | keyId, 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 |
|---|---|---|
keyId | string | id" of the Public Key |
subdomain | string | (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 keyId = '{{ keyId }}' -- required
AND subdomain = '{{ subdomain }}' -- required
;