This may be a style improvement, you can write this:

    proxy = smartProxies.index[0].find { |s| s['smart_proxy']['name'] == resource[:name] }
    proxy ? proxy['smart_proxy']['id'] : nil

And ideally move the first line into a method we can use again in for url.