检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
BatchCreateOrDeleteTagsRequest request = new BatchCreateOrDeleteTagsRequest(); request.withSecretId("{secret_id}"); B
5f1e"); request.withBody(body); try { CreateAliasResponse response = client.createAlias(request); System
request = DeleteSecretEventRequest() request.event_name = "{event_name}" response = client.delete_secret_event(request)
request = DisableKeyStoreRequest() request.keystore_id = "{keystore_id}" response = client.disable_key_store(request)
build(); ListKeypairDetailRequest request = new ListKeypairDetailRequest(); request.withKeypairName("{keypair_name}");
17df46"); request.withBody(body); try { VerifyMacResponse response = client.verifyMac(request); System
withAlias("kms-1234"); request.withBody(body); try { AssociateAliasResponse response = client.associateAlias(request);
request = DeleteKeyStoreRequest() request.keystore_id = "{keystore_id}" response = client.delete_key_store(request)
request = EnableKeyStoreRequest() request.keystore_id = "{keystore_id}" response = client.enable_key_store(request)
配置文件或者环境变量中密文存放,使用时解密,确保安全。 本示例以ak和sk保存在环境变量中来实现身份验证为例,运行本示例前请先在本地环境中设置环境变量HUAWEICLOUD_SDK_AK和HUAWEICLOUD_SDK_SK。 指数退避代码 import com.huaweicloud
build(); BatchCreateKmsTagsRequest request = new BatchCreateKmsTagsRequest(); request.withKeyId("{key_id}"); BatchCrea
build() try: request = DeleteAllFailedTaskRequest() response = client.delete_all_failed_task(request) print(response)
request.withBody(body); try { CreateSecretEventResponse response = client.createSecretEvent(request);
4a37f"); request.withBody(body); try { ListGrantsResponse response = client.listGrants(request); System
withLimit("2"); request.withBody(body); try { ListKeysResponse response = client.listKeys(request); System
request = RotateSecretRequest() request.secret_name = "{secret_name}" response = client.rotate_secret(request)
try: request = ShowKmsTagsRequest() request.key_id = "{key_id}" response = client.show_kms_tags(request) print(response)
约束:secret_binary和secret_string必须且只能设置一个,最大32K。 secret_string 否 String 文本类型凭据的明文,凭据管理服务将其加密后,存入凭据的初始版本中。 约束:secret_binary和secret_string必须且只能设置一个,最大32K。 secret_type
ody); request.withBody(body); try { CreateKeypairResponse response = client.createKeypair(request); System
512"); request.withBody(body); try { CreateRandomResponse response = client.createRandom(request); System