473,387 Members | 1,501 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Launch linux instance with user data

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

CommonResponse commonResponse = client2.getCommonResponse(commonRequest);
Jul 13 '18 #1
1 1462
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

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

Similar topics

4
by: Dinçer | last post by:
Hi, I am trying to get user data (email data actually) from Active Directory. What I exactly want to do is, getting the email address according to username from the domain. For example, when I...
1
by: pei_world | last post by:
hi I am new to C# programming. can anyone tell me what is the standard way to store high sensitive user data for application, so that application next run can get back those data.
3
by: pei_world | last post by:
hi I am new to C# programming. can anyone tell me what is the standard way to store high sensitive user data for application, so that application next run can get back those data.
2
by: RA | last post by:
Hi I use ASP.net with c#. The web application is hosted by a web host provider. The application gets user information for order processing. The information should be moved from one aspx page to...
5
by: Rob Kay | last post by:
Hello. I would like to know what is the easiest and safest way to extend the default MemberShip Provider for SQL Server 2005 to include additional user data (eg HomePhone, City, State etc). ...
2
by: Joe Spears | last post by:
Hi Does anyone have any sample code on Pulling user data from Active Directory?? Thanks
0
by: sanjeev06 | last post by:
When Updating using a FormView and ObjectDataSource, the formview always does the data-binding of its controls and the field values in the FormView are always overwritten by the results of the...
0
by: sloan | last post by:
You should check out this post: http://forums.asp.net/thread/1225321.aspx maybe you re invented the wheel a little bit ( or maybe you had to, not sure).
2
by: Alex | last post by:
Hey Guys.. I'm just now starting to learn VB 2005, but I have a question that might help me in the long run. I hope to write applications which store user data, and without wanting the user to...
1
by: beemomo | last post by:
I am trying to implement login page using Form Authentication in ASP.net using vb code.I follow the steps in How To Implement Forms-Based Authentication in Your ASP.NET Application by Using Visual...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.