Method: Morpheus::StorageProvidersInterface#create
- Defined in:
- lib/morpheus/api/storage_providers_interface.rb
#create(payload) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/morpheus/api/storage_providers_interface.rb', line 20 def create(payload) url = "#{@base_url}/api/storage/buckets" headers = { :authorization => "Bearer #{@access_token}", 'Content-Type' => 'application/json' } opts = {method: :post, url: url, headers: headers, payload: payload.to_json} execute(opts) end |