Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while provisioning the ECS instance #49

Closed
gitcodeserve opened this issue Jul 12, 2018 · 1 comment
Closed

Error while provisioning the ECS instance #49

gitcodeserve opened this issue Jul 12, 2018 · 1 comment

Comments

@gitcodeserve
Copy link

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

@jxyowen
Copy link
Contributor

jxyowen commented Jul 12, 2018

Please contact with customer service from aliyun console.

@jxyowen jxyowen closed this as completed Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants