メインコンテンツへスキップ
POST
https://{tenantDomain}/api/v2
/
keys
/
encryption
/
{kid}
Go
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,
    )
}
{
  "created_at": "2023-11-07T05:31:56Z",
  "kid": "<string>",
  "updated_at": "2023-11-07T05:31:56Z",
  "parent_kid": "<string>",
  "public_key": "<string>"
}

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

パスパラメータ

kid
string
必須

暗号鍵 ID

ボディ

wrapped_key
string
必須

公開ラッピングキーでラップされた鍵マテリアルのBase64エンコード済み暗号文。

レスポンス

キーを正常にインポートしました。

暗号鍵

created_at
string<date-time>
必須

鍵の作成タイムスタンプ

kid
string
必須

Key ID

state
enum<string>
必須

キーの状態

利用可能なオプション:
pre-activation,
active,
deactivated,
destroyed
type
enum<string>
必須

キーのタイプ

利用可能なオプション:
customer-provided-root-key,
environment-root-key,
tenant-master-key,
tenant-encryption-key
updated_at
string<date-time>
必須

鍵の更新タイムスタンプ

parent_kid
string | null

親ラッピングキーのID

public_key
string | null

PEM形式の公開鍵