public List<HostingEnvironmentDiagnosticsInner> listDiagnostics(String resourceGroupName, String name) {
        return listDiagnosticsWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body();
    }
public List < HostingEnvironmentDiagnosticsInner > listDiagnostics ( String resourceGroupName , String name ) { return listDiagnosticsWithServiceResponseAsync ( resourceGroupName , name ) . toBlocking ( ) . single ( ) . body ( ) ; }
Get diagnostic information for an App Service Environment.
Get diagnostic information for an App Service Environment.

@param resourceGroupName Name of the resource group to which the resource belongs.
@param name Name of the App Service 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 List&lt;HostingEnvironmentDiagnosticsInner&gt; object if successful.