src/main/java/com/aliyun/cloudops/acs/ecs/controller/InstanceController.java [158:179]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        return new ResponseEntity<>(response, HttpStatus.OK);
    }

    /**
     * <pre>
     * 使用 StartTerminalSession 发起新的会话连接
     * https://next.api.aliyun.com/document/Ecs/2014-05-26/StartTerminalSession
     * </pre>
     *
     * @param regionId   -
     * @param instanceId -
     * @param portNumber -
     * @return
     * @throws ClientException
     */
    @PutMapping("/sessions/{regionId}/instances/{instanceId}")
    public ResponseEntity<StartTerminalSessionResponse> startSession(
            @PathVariable("regionId") String regionId,
            @PathVariable("instanceId") String instanceId,
            @RequestParam(name = "portNumber", required = false) Integer portNumber
    ) throws ClientException {
        StartTerminalSessionRequest request = new StartTerminalSessionRequest();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/com/aliyun/cloudops/acs/swas/controller/InstanceController.java [111:132]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        return new ResponseEntity<>(response, HttpStatus.OK);
    }

    /**
     * <pre>
     * 使用 StartTerminalSession 发起新的会话连接
     * https://next.api.aliyun.com/document/SWAS-OPEN/2020-06-01/StartTerminalSession
     * </pre>
     *
     * @param regionId   -
     * @param instanceId -
     * @param portNumber -
     * @return
     * @throws com.aliyuncs.exceptions.ClientException
     */
    @PutMapping("/sessions/{regionId}/instances/{instanceId}")
    public ResponseEntity<StartTerminalSessionResponse> startSession(
            @PathVariable("regionId") String regionId,
            @PathVariable("instanceId") String instanceId,
            @RequestParam(name = "portNumber", required = false) Integer portNumber
    ) throws ClientException {
        StartTerminalSessionRequest request = new StartTerminalSessionRequest();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



