def list_by_location(resource_group_name, service_name, location_name, custom_headers:nil)
      response = list_by_location_async(resource_group_name, service_name, location_name, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def list_by_location(resource_group_name, service_name, location_name, custom_headers:nil)
      response = list_by_location_async(resource_group_name, service_name, location_name, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Gets the Connectivity Status to the external resources on which the Api
 Management service depends from inside the Cloud Service. This also returns
 the DNS Servers as visible to the CloudService.

 @param resource_group_name [String] The name of the resource group.
 @param service_name [String] The name of the API Management service.
 @param location_name [String] Location in which the API Management service is
 deployed. This is one of the Azure Regions like West US, East US, South
 Central US.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [NetworkStatusContract] operation results.