检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Build()) request := &model.UpdateVersionRequest{} request.SecretName = "{secret_name}" request.VersionId = "{version_id}" request.Body = &model
DeleteSecretStageRequest request = new DeleteSecretStageRequest(); request.withSecretName("{secret_name}"); request.withStageName("{stage_name}");
request = DeleteSecretRequest() request.secret_name = "{secret_name}" response = client.delete_secret(request)
.build(); CreateKmsTagRequest request = new CreateKmsTagRequest(); request.withKeyId("{key_id}"); CreateKmsTagRequestBody
request := &model.DeleteTagRequest{} request.KeyId = "{key_id}" request.Key = "{key}" response, err := client.DeleteTag(request) if
ShowSecretStageRequest request = new ShowSecretStageRequest(); request.withSecretName("{secret_name}"); request.withStageName("{stage_name}");
request = DeleteKeypairRequest() request.keypair_name = "{keypair_name}" response = client.delete_keypair(request)
request = DeleteFailedTaskRequest() request.task_id = "{task_id}" response = client.delete_failed_task(request)
DeleteSecretTagRequest request = new DeleteSecretTagRequest(); request.withSecretId("{secret_id}"); request.withKey("{key}");
request.withBody(body); try { ListRetirableGrantsResponse response = client.listRetirableGrants(request);
配置文件或者环境变量中密文存放,使用时解密,确保安全。 本示例以ak和sk保存在环境变量中来实现身份验证为例,运行本示例前请先在本地环境中设置环境变量HUAWEICLOUD_SDK_AK和HUAWEICLOUD_SDK_SK。 指数退避代码 import com.huaweicloud
try: request = ShowVersionRequest() request.version_id = "{version_id}" response = client.show_version(request) print(response)
request.withBody(body); try { DisassociateKeypairResponse response = client.disassociateKeypair(request);
build() try: request = UpdatePrimaryRegionRequest() request.key_id = "{key_id}" request.body = UpdatePrimaryRegionRequestBody(
request = ListKeypairTaskRequest() request.task_id = "{task_id}" response = client.list_keypair_task(request)
); request.withBody(body); try { AssociateKeypairResponse response = client.associateKeypair(request);
ShowSecretVersionRequest request = new ShowSecretVersionRequest(); request.withSecretName("{secret_name}"); request.withVersionId("{version_id}");
build(); ListKeypairDetailRequest request = new ListKeypairDetailRequest(); request.withKeypairName("{keypair_name}");
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)