def get_backend_properties_url(config, backend_type):
    """Return the URL for a backend's properties."""
    hub = config.get('hub', None)

    if hub:
        return '/Network/{}/devices/{}/properties'.format(hub, backend_type)
    return '/Backends/{}/properties'.format(backend_type)