检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
"key_alias": "test" } 响应示例 { "key_info": { "key_id": "bb6a3d22-dc93-47ac-b5bd-88df7ad35f1e", "domain_id": "b168fe00ff56492495a7d22974df2d0b"
35d-f84bb474a37f", "domain_id":"00074811d5c27c4f8d48bb91e4a1dcfd", "key_alias":"caseuirpr", "realm":"aaaa",
"key_alias": "test" } 响应示例 { "key_info": { "key_id": "bb6a3d22-dc93-47ac-b5bd-88df7ad35f1e", "domain_id": "b168fe00ff56492495a7d22974df2d0b"
WSqHnVKzsbxvw5Da9y69NmpSi2E1wqDaU9IzwnLyQpHnE1nXsWmxNqKTHlDBbnb\nXPGFdcECgYEAxf4IMqYBeBiq+7RVwcTcT4gpApJmywigwMFaaX35E3O53ja8hk1/\n5OCRnvK7y
buildAk(ACCESS_KEY) .buildKmsConfig(kmsConfigList) .buildCryptoAlgorithm(CryptoAlgorithm.AES_256_GCM_NOPADDING)
C74C7"; private static final String ECC_GY = "BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0"; // 签名者ID,本示例使用国密标准
{ "target_type" : "SMN", "target_id" : "urn:smn:cn-north-4:dc3b7c85759141a991da17423c0f2068:test-poc", "target_name" : "demo-smn-name"
b35d-f84bb474a37f", "cipher_text" : "020098005273E14E6E8E95F5463BECDC27E80AFxxxxxxxxxx...", "datakey_cipher_length" : "64" } 响应示例 状态码: 200
error_msg String 错误请求返回的错误信息 请求示例 查询项目ID为0dea2644dc80d5d22ff1c01e3ebea6fc已创建的实例个数。 /v1.0/0dea2644dc80d5d22ff1c01e3ebea6fc/kms/user-instances 响应示例
secret string" } 响应示例 状态码: 200 请求已成功 { "secret" : { "id" : "bb6a3d22-dc93-47ac-b5bd-88df7ad35f1e", "name" : "test", "state" : "ENABLED"
error_msg String 错误请求返回的错误信息 请求示例 查询项目ID为0dea2644dc80d5d22ff1c01e3ebea6fc已使用的配额。 /v1.0/0dea2644dc80d5d22ff1c01e3ebea6fc/kms/user-quotas 响应示例 状态码:
"0d0466b0-e727-4d9c-b35d-f84bb474a37f" } 响应示例 状态码: 200 请求已成功 { "key_id" : "bb6a3d22-dc93-47ac-b5bd-88df7ad35f1e", "key_state" : "3" } 状态码 状态码 描述 200 请求已成功
响应示例 状态码: 200 请求已成功 { "keystore" : { "keystore_id" : "bb6a3d22-dc93-47ac-b5bd-88df7ad35f1e", "domain_id" : "b168fe00ff56492495a7d22974df2d0b"
"primary_region" : "cn-north-4" } 响应示例 状态码: 200 请求已成功 { "key_id" : "bb6a3d22-dc93-47ac-b5bd-88df7ad35f1e", "primary_region" : "cn-north-4" } 状态码 状态码
final byte[] cipherData = cipher.doFinal(HELLO_WORLD.getBytes(StandardCharsets.UTF_8)); // 7.私钥在线解密 final DecryptDataRequest
KMSConfig(REGION, KEYID, PROJECT_ID, ENDPOINT))) .buildCryptoAlgorithm(CryptoAlgorithm.AES_256_GCM_NOPADDING)
"target_type" : "SMN", "target_id" : "urn:smn:cn-north-4:dc3b7c85759141a991da17423c0f2068:smn-target-name", "target_name" :
"test" } 响应示例 状态码: 200 请求已成功 { "key_info" : { "key_id" : "bb6a3d22-dc93-47ac-b5bd-88df7ad35f1e", "domain_id" : "b168fe00ff56492495a7d22974df2d0b"
"0d0466b0-e727-4d9c-b35d-f84bb474a37f", "domain_id" : "00074811d5c27c4f8d48bb91e4a1dcfd", "key_alias" : "test", "realm" : "cn-north-7", "key_description"
请求示例 无 响应示例 状态码: 200 OK { "task_id" : "aee8d2fe-5484-4753-9177-5a38dc15546c", "task_status" : "RUNNING_RESET", "server_id" : "c9aa197b