aliyun-openapi-java-sdk icon indicating copy to clipboard operation
aliyun-openapi-java-sdk copied to clipboard

Error while provisioning the ECS instance

Open gitcodeserve opened this issue 8 years ago • 1 comments

Hi,

I am using aliyun-java-sdk-core - 4.0.2 and aliyun-java-sdk-ecs - 4.9.1 jar dependencies to access the Alibaba cloud through my java program. Whenever I use - DescribeInstancesRequest to fetch instance details it works fine. But when I use - CreateInstanceRequest for provisioning the instance I'm getting the following error

This operation is forbidden by Aliyun RiskControl system. com.aliyuncs.exceptions.ClientException: Forbidden.RiskControl : This operation is forbidden by Aliyun RiskControl system. RequestId : D6F41D2C-E4C8-4D92-8CF3-50F35B9E2134

I'm passing following information as part the CreateInstanceRequest. request.setInstanceType("ecs.c5.large"); request.setSecurityGroupId("sg-t4ni0t9v2ixxf5gzd0o1"); request.setInstanceName("xx-ubuntu"); request.setImageId("ubuntu_16_0402_64_20G_alibase_20180409.vhd"); request.setClientToken(UUID.randomUUID().toString());

gitcodeserve avatar Jul 12 '18 12:07 gitcodeserve

Please contact with customer service from aliyun console.

jxyowen avatar Jul 12 '18 12:07 jxyowen