Reads:43194Replies:1
Launch linux instance with user data
Hi
I'm trying to lauch linux instance with user data script using the java SDK But i'm getting this error: Forbidden.RiskControl, This operation is forbidden by Aliyun RiskControl system Any idea? This is my code: 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); |
|
1st Reply#
Posted time:Jul 6, 2018 1:26 AM
Since you are writing code to launch instances, you appear to be a serious developer.
A couple of suggestions: 1) The support forums cannot help you with this type of issue. 2) You have three free support tickets that you can open each month. For this issue, open a ticket. 3) I highly recommend their developer support level. It is inexpensive for the quality of support that you receive. |
|
|