@ucloud-sdks/ucloud-sdk-js 0.2.21 → 0.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/services/ukms/index.d.ts +63 -19
- package/package.json +1 -1
|
@@ -428,7 +428,7 @@ export interface DisableKeyRequest {
|
|
|
428
428
|
/**
|
|
429
429
|
* 密钥 DB 数字 ID。
|
|
430
430
|
*/
|
|
431
|
-
KeyId:
|
|
431
|
+
KeyId: string;
|
|
432
432
|
/**
|
|
433
433
|
* UKMS 实例资源 ID。
|
|
434
434
|
*/
|
|
@@ -464,7 +464,7 @@ export interface EnableKeyRequest {
|
|
|
464
464
|
/**
|
|
465
465
|
* 密钥 DB 数字 ID。
|
|
466
466
|
*/
|
|
467
|
-
KeyId:
|
|
467
|
+
KeyId: string;
|
|
468
468
|
/**
|
|
469
469
|
* UKMS 实例资源 ID。
|
|
470
470
|
*/
|
|
@@ -667,6 +667,10 @@ export interface GenerateMacRequest {
|
|
|
667
667
|
* 待哈希的消息。
|
|
668
668
|
*/
|
|
669
669
|
MacMessage: string;
|
|
670
|
+
/**
|
|
671
|
+
* 用于生成消息认证码的 MAC 算法。
|
|
672
|
+
*/
|
|
673
|
+
MacAlgorithm: string;
|
|
670
674
|
}
|
|
671
675
|
/**
|
|
672
676
|
* GenerateMac - 使用HMAC密钥管理服务(KMS)密钥和该密钥支持的MAC算法,为消息生成基于哈希的消息认证码(HMAC)。
|
|
@@ -787,6 +791,18 @@ export interface ListAliasesRequest {
|
|
|
787
791
|
* 返回数据长度。
|
|
788
792
|
*/
|
|
789
793
|
Limit?: number;
|
|
794
|
+
/**
|
|
795
|
+
* 按完整别名(含 alias/ 前缀)进行子串模糊匹配
|
|
796
|
+
*/
|
|
797
|
+
Alias?: string;
|
|
798
|
+
/**
|
|
799
|
+
* 排序字段
|
|
800
|
+
*/
|
|
801
|
+
OrderBy?: string;
|
|
802
|
+
/**
|
|
803
|
+
* 排序方向,默认 desc
|
|
804
|
+
*/
|
|
805
|
+
Sort?: string;
|
|
790
806
|
}
|
|
791
807
|
/**
|
|
792
808
|
* ListAliases - 获取 UKMS 实例下的别名列表。
|
|
@@ -838,6 +854,18 @@ export interface ListKeysRequest {
|
|
|
838
854
|
* 返回数据长度。最大1000
|
|
839
855
|
*/
|
|
840
856
|
Limit?: number;
|
|
857
|
+
/**
|
|
858
|
+
* 状态筛选:Active、Deactivated、PendingDeletion
|
|
859
|
+
*/
|
|
860
|
+
Status?: string;
|
|
861
|
+
/**
|
|
862
|
+
* 排序字段
|
|
863
|
+
*/
|
|
864
|
+
OrderBy?: string;
|
|
865
|
+
/**
|
|
866
|
+
* 排序方向,默认 desc
|
|
867
|
+
*/
|
|
868
|
+
Sort?: string;
|
|
841
869
|
}
|
|
842
870
|
/**
|
|
843
871
|
* ListKeys - 查询用户的主密钥信息列表。
|
|
@@ -921,6 +949,18 @@ export interface ListScheduleDeletionKeysRequest {
|
|
|
921
949
|
* 列表排序方式, 可选项: "-created_time", "created_time","plan_delete_time","-plan_delete_time";默认按-plan_delete_time 计划删除时间升序返回
|
|
922
950
|
*/
|
|
923
951
|
OrderBy?: string;
|
|
952
|
+
/**
|
|
953
|
+
* 按密钥 ID 或别名模糊过滤
|
|
954
|
+
*/
|
|
955
|
+
Alias?: string;
|
|
956
|
+
/**
|
|
957
|
+
* UKMS 实例资源 ID
|
|
958
|
+
*/
|
|
959
|
+
ResourceId?: string;
|
|
960
|
+
/**
|
|
961
|
+
* 排序方向,默认 desc
|
|
962
|
+
*/
|
|
963
|
+
Sort?: string;
|
|
924
964
|
}
|
|
925
965
|
/**
|
|
926
966
|
* ListScheduleDeletionKeys - 获取计划删除密钥列表,调用ScheduleKeyDeletion命令后进入此列表, 默认30天后正式删除。正式删除前可调用CancelScheduleKeyDeletion恢复
|
|
@@ -935,29 +975,29 @@ export interface ListScheduleDeletionKeysResponse {
|
|
|
935
975
|
*/
|
|
936
976
|
KeyId: string;
|
|
937
977
|
/**
|
|
938
|
-
*
|
|
978
|
+
* 密钥类型,如RSA、EC、DES
|
|
939
979
|
*/
|
|
940
|
-
|
|
980
|
+
KeyType: string;
|
|
941
981
|
/**
|
|
942
|
-
*
|
|
982
|
+
* 创建时间
|
|
943
983
|
*/
|
|
944
|
-
|
|
984
|
+
CreatedTime: number;
|
|
945
985
|
/**
|
|
946
|
-
*
|
|
986
|
+
* 别名,与CMK一一对应
|
|
947
987
|
*/
|
|
948
|
-
|
|
988
|
+
Alias: string;
|
|
949
989
|
/**
|
|
950
|
-
*
|
|
990
|
+
* 密钥状态 "Pre-Active", "Active", "Deactivated", "Compromised", "Destroyed", "Destroyed Compromised"
|
|
951
991
|
*/
|
|
952
|
-
|
|
992
|
+
Status: string;
|
|
953
993
|
/**
|
|
954
|
-
*
|
|
994
|
+
* 更新时间
|
|
955
995
|
*/
|
|
956
|
-
|
|
996
|
+
UpdateTime: number;
|
|
957
997
|
/**
|
|
958
|
-
*
|
|
998
|
+
* 对密钥的描述说明
|
|
959
999
|
*/
|
|
960
|
-
|
|
1000
|
+
Description?: string;
|
|
961
1001
|
/**
|
|
962
1002
|
* 计划删除时间 时间戳
|
|
963
1003
|
*/
|
|
@@ -1005,11 +1045,15 @@ export interface ScheduleKeyDeletionRequest {
|
|
|
1005
1045
|
/**
|
|
1006
1046
|
* 密钥 DB 数字 ID。
|
|
1007
1047
|
*/
|
|
1008
|
-
KeyId:
|
|
1048
|
+
KeyId: string;
|
|
1009
1049
|
/**
|
|
1010
1050
|
* UKMS 实例资源 ID。
|
|
1011
1051
|
*/
|
|
1012
1052
|
ResourceId?: string;
|
|
1053
|
+
/**
|
|
1054
|
+
* 删除等待天数,取值范围为 7~30 天;未填写时默认为 30 天。
|
|
1055
|
+
*/
|
|
1056
|
+
DeleteDay?: number;
|
|
1013
1057
|
}
|
|
1014
1058
|
/**
|
|
1015
1059
|
* ScheduleKeyDeletion - 计划删除指定密钥。
|
|
@@ -1114,10 +1158,6 @@ export interface UpdateKeyDescriptionResponse {
|
|
|
1114
1158
|
* Verify - 使用非对称密钥验证签名。
|
|
1115
1159
|
*/
|
|
1116
1160
|
export interface VerifyRequest {
|
|
1117
|
-
/**
|
|
1118
|
-
* UKMS 实例资源 ID。
|
|
1119
|
-
*/
|
|
1120
|
-
ResourceId: string;
|
|
1121
1161
|
/**
|
|
1122
1162
|
* 密钥 ID、ARN 或别名。
|
|
1123
1163
|
*/
|
|
@@ -1134,6 +1174,10 @@ export interface VerifyRequest {
|
|
|
1134
1174
|
* 签名时使用的算法。可选值:RSASSA_PSS_SHA_256、RSASSA_PSS_SHA_384、RSASSA_PSS_SHA_512、RSASSA_PKCS1_V1_5_SHA_256、RSASSA_PKCS1_V1_5_SHA_384、RSASSA_PKCS1_V1_5_SHA_512、ECDSA_SHA_256、ECDSA_SHA_384、ECDSA_SHA_512;须与密钥 KeySpec 匹配。
|
|
1135
1175
|
*/
|
|
1136
1176
|
SigningAlgorithm: string;
|
|
1177
|
+
/**
|
|
1178
|
+
* UKMS 实例资源 ID。
|
|
1179
|
+
*/
|
|
1180
|
+
ResourceId?: string;
|
|
1137
1181
|
/**
|
|
1138
1182
|
* 消息类型。可选值:RAW、DIGEST;默认 RAW。
|
|
1139
1183
|
*/
|