阿里巴巴云上启动Linux实例时出现Forbidden.RiskControl错误



我正在尝试使用java SDK启动带有用户数据脚本的linux实例但我得到了这个错误:

Forbidden.RiskControl, This operation is forbidden by Aliyun RiskControl system 

知道吗?

这是我的代码:

CommonRequest commonRequest = new CommonRequest(); 
commonRequest.setDomain("ecs.aliyuncs.com"); 
commonRequest.setMethod(MethodType.POST); 
commonRequest.setVersion("2014-05-26"); 
commonRequest.setAction("RunInstances"); 
commonRequest.setRegionId("us-west-1"); 
commonRequest.putBodyParameter("ImageId", "centos_6_09_64_20G_alibase_20180326.vhd"); 
commonRequest.putBodyParameter("InstanceType", "ecs.sn1.medium"); 
commonRequest.putBodyParameter("SecurityGroupId", "sg-1234"); 
commonRequest.putBodyParameter("VSwitchId", "vsw-1234"); 
commonRequest.putBodyParameter("KeyPairName", "key-pair"); 
commonRequest.putBodyParameter("InternetMaxBandwidthOut", 1); 
commonRequest.putBodyParameter("UserData", "IyEvYmluL2Jhc2gNCg0KZWNobyAiaGVsbG8iID4gL3RtcC9maWxlMS50eHQNCmVjaG8gImhlbGxvIiA+IGZpbGUxLnR4dA=="); 
CommonResponse commonResponse = client2.getCommonResponse(commonRequest);

唯一的解决方案是在阿里巴巴控制台中打开一个新的支持票证。

阿里巴巴会要求你提供身份证明文件,比如驾驶执照或护照。只要在你打开票的时候附上一份复印件就可以了。还要确保你的信用卡有可用的信用卡。我是一名阿里云MVP,这也发生在我身上(作为MVP(。

最新更新