Create Key
    • PDF

    Create Key

    • PDF

    Article summary

    POST /kms/v1/keys

    Create a key.

    Request

    Request parameters

    Parameter NameTypeAdditional Information
    x-ncp-apigw-timestampHeader(Required)
    x-ncp-apigw-signature-v2Header(Required)
    x-ncp-iam-access-keyHeader(Required)
    keyNameBody: StringString length: 3 ~ 15 characters.
    keyTypeBody: String'AES256', 'RSA2048', 'ECDSA'
    memoBody: StringUp to 200B
    isConvergentBody: BooleanCan only be set true for keyType=AES256
    isAutoRotationBody: Boolean
    rotationPeriodBody: IntegerCan only be set isAutoRotation is true (Default = 90).
    protectionTypeBody: String'BASIC', 'COMMON_HSM'

    Request body

    {
      "keyName": "string",
      "keyType": "AES256",
      "memo": "string",
      "isConvergent": true,
      "isAutoRotation": true,
      "rotationPeriod": 0,
      "protectionType": "BASIC"
    }
    

    Response

    Response body

    {
      "code": "SUCCESS",
      "data": {
        "keyId": 0,
        "keyTag": "string",
        "keyName": "string",
        "keyType": "string",
        "status": "string",
        "keystoreId": 0,
        "protectionType": "string",
        "memo": "string",
        "isConvergent": true,
        "isAutoRotation": true,
        "rotationPeriod": 0,
        "nextRotationDate": 0,
        "registerDate": 0
      }
    }
    

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.