public GetEnvironmentResponseInner getEnvironment(String userName, String environmentId) {
        return getEnvironmentWithServiceResponseAsync(userName, environmentId).toBlocking().single().body();
    }
public GetEnvironmentResponseInner getEnvironment ( String userName , String environmentId ) { return getEnvironmentWithServiceResponseAsync ( userName , environmentId ) . toBlocking ( ) . single ( ) . body ( ) ; }
Gets the virtual machine details.

@param userName The name of the user.
@param environmentId The resourceId of the environment
@throws IllegalArgumentException thrown if parameters fail the validation
@throws CloudException thrown if the request is rejected by server
@throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
@return the GetEnvironmentResponseInner object if successful.