package example
import (
context "context"
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.ImportEncryptionKeyRequestContent{
WrappedKey: "wrapped_key",
}
client.Keys.Encryption.Import(
context.TODO(),
"kid",
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>"
}Import wrapped key material and activate encryption key.
package example
import (
context "context"
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.ImportEncryptionKeyRequestContent{
WrappedKey: "wrapped_key",
}
client.Keys.Encryption.Import(
context.TODO(),
"kid",
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-quickstart-flutter-windows.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.
Encryption key ID
Base64 encoded ciphertext of key material wrapped by public wrapping key.
The key was successfully imported.
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
このページは役に立ちましたか?