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);