Create a secret key

更新时间:
复制 MD 格式

Create a secret key in AI Gateway to securely store and manage your credentials. All keys are hosted in Key Management Service (KMS).

Prerequisites

Create a key

  1. Go to the AI Gateway console.

  2. In the left navigation pane, select Key.

  3. In the upper-left corner of the page, click Create key. On the Create key page, configure the following parameters.

    Note

    If the service-linked role is not authorized, click Authorization to grant AI Gateway the AliyunServiceRoleForNativeApiGwInvokeKms service-linked role. Service-linked Role.

    Parameter

    Description

    key name

    Name of the key.

    Note

    Must be unique. Supports letters, digits, and underscores (_). Maximum 64 characters.

    credential source

    Storage location of the key. Defaults to KMS.

    select instance

    KMS instance that stores the key.

    master key

    KMS master key used for encryption.

    key content

    Credentials to encrypt and store. Synced to KMS as a credential resource.

  4. Click OK to create the key.