开发者社区> 问答> 正文

关于操作Java-sdk-esc 操作实例关闭或重启报错

操作实例代码如下:    StopInstanceRequest request = new StopInstanceRequest();
    IClientProfile profile  = DefaultProfile. getProfile( "cn-hangzhou", "xx", "xxxxxx");
    IAcsClient client = new DefaultAcsClient(profile);
    StopInstanceResponse response = client.getAcsResponse(request);
    request.setInstanceId( "xxxx");
    System. out.println( "   ----="+response.getRequestId());


结果报错的错误是: com.aliyuncs.exceptions.ClientException: MissingParameter : The input parameter "InstanceId" that is mandatory for processing this request is not supplied.[size=font-size: 10.5pt,10.5pt]

展开
收起
nbsp_lj 2017-01-18 17:45:31 4769 0
2 条回答
写回答
取消 提交回答
  • 回 1楼码栈的帖子
    您好,这个应该不是的,我只是通过阿里云官网上的java-sdk-esc包做的一个操作实例的一个功能,只不过一直有问题,搞不定,所以想过来咨询下是什么问题
    2017-01-18 18:02:18
    赞同 展开评论 打赏
  • 这个不是码栈代码吧

    -------------------------

    回 2楼(nbsp_lj) 的帖子
    https://bbs.aliyun.com/thread/235.html?spm=5176.7189909.2.10.uScsoZ
    阿里云的问题可以在这里反馈哦
    2017-01-18 17:52:25
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Spring Cloud Alibaba - 重新定义 Java Cloud-Native 立即下载
The Reactive Cloud Native Arch 立即下载
JAVA开发手册1.5.0 立即下载