CreateKeyRequest: {
    description?: string;
    name?: string;
    origin?: KeyOrigin;
    projectId?: string;
    region?: Region;
    rotationPolicy?: KeyRotationPolicy;
    tags?: string[];
    unprotected: boolean;
    usage?: KeyUsage;
}

Type declaration

  • Optionaldescription?: string

    (Optional) Description of the key.

  • Optionalname?: string

    (Optional) Name of the key.

  • Optionalorigin?: KeyOrigin

    Refer to the Key.Origin enum for a description of values.

  • OptionalprojectId?: string

    ID of the Project containing the key.

  • Optionalregion?: Region

    Region to target. If none is passed will use default region from the config.

  • OptionalrotationPolicy?: KeyRotationPolicy

    If not specified, no rotation policy will be applied to the key.

  • Optionaltags?: string[]

    (Optional) List of the key's tags.

  • unprotected: boolean

    Default value is false.

  • Optionalusage?: KeyUsage

    See the Key.Algorithm.SymmetricEncryption enum for a description of values.