Skip to content

重启实例接口

基本信息

中文名: 重启待办实例接口

接口名: /tc/openapi/task/restart.json

所在目录: 待办

调用方式: GET(HTTPS)

最低可用版本V2.6.0

请求参数

名称类型是否必填示例值描述
userIdString452981用户海政通id
packageUuidString5b16377d1dde4ffca6a5be2d8b05ddf8实例唯⼀标识

返回参数

名称子参数名称子参数名称子参数名称类型描述
successBoolean是否成功
contentObject内容
└dataBoolean重启是否成功
└successBoolean请求是否成功
└responseCodeString请求code
└responseMessageString请求msg

调用示例

java
        Map<String, String> parameter = new HashMap<>();
        parameter.put("userId", "xxx");
        parameter.put("packageUuid", "xxx");
        //拼装业务信息
        HttpParameters parameters = HttpParameters.builder()
                .api("/tc/openapi/task/restart.json")
                .region("INTER")
                .accessKey("xxx")
                .secretKey("xxx")
                .queryParamsMap(parameter)
                .requestUrl("https://api-one.digitalhainan.com.cn/apione")
                .mediaType(MediaType.parse("application/json"))
                .method("GET")
                .build();
 
        HttpReturn call = HttpCaller.getInstance().call(parameters);
        log.info("响应:" + call.response);