424,301 Members | 1,295 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,301 IT Pros & Developers. It's quick & easy.

Launch linux instance with user data

P: 51
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.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("InternetMaxBandwid thOut", 1);
commonRequest.putBodyParameter("UserData", "IyEvYmluL2Jhc2gNCg0KZWNobyAiaGVsbG8iID4gL3RtcC9ma WxlMS50eHQNCmVjaG8gImhlbGxvIiA+IGZpbGUxLnR4dA==");

CommonResponse commonResponse = client2.getCommonResponse(commonRequest);
Jul 13 '18 #1
Share this Question
Share on Google+
1 Reply

P: 34
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.
Jul 13 '18 #2

Post your reply

Sign in to post your reply or Sign up for a free account.