package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
client "github.com/auth0/go-auth0/management/management/client"
keys "github.com/auth0/go-auth0/management/management/keys"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &keys.ListEncryptionKeysRequestParameters{
Page: management.Int(
1,
),
PerPage: management.Int(
1,
),
IncludeTotals: management.Bool(
true,
),
}
client.Keys.Encryption.List(
context.TODO(),
request,
)
}[
{
"kid": "<string>",
"type": "customer-provided-root-key",
"state": "pre-activation",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"parent_kid": "<string>",
"public_key": "<string>"
}
]Retrieve details of all the encryption keys associated with your tenant.
package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
client "github.com/auth0/go-auth0/management/management/client"
keys "github.com/auth0/go-auth0/management/management/keys"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &keys.ListEncryptionKeysRequestParameters{
Page: management.Int(
1,
),
PerPage: management.Int(
1,
),
IncludeTotals: management.Bool(
true,
),
}
client.Keys.Encryption.List(
context.TODO(),
request,
)
}[
{
"kid": "<string>",
"type": "customer-provided-root-key",
"state": "pre-activation",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"parent_kid": "<string>",
"public_key": "<string>"
}
]Documentation Index
Fetch the complete documentation index at: https://auth0-feat-testing-docs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Page index of the results to return. First page is 0.
x >= 0Number of results per page. Default value is 50, maximum value is 100.
1 <= x <= 100Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
The keys were successfully retrieved.
Encryption key
Key ID
Key type
customer-provided-root-key, environment-root-key, tenant-master-key, tenant-encryption-key Key state
pre-activation, active, deactivated, destroyed Key creation timestamp
Key update timestamp
ID of parent wrapping key
Public key in PEM format
このページは役に立ちましたか?