Method: Morpheus::ClustersInterface#create_datastore
- Defined in:
- lib/morpheus/api/clusters_interface.rb
#create_datastore(id, payload) ⇒ Object
| 268 269 270 271 272 | # File 'lib/morpheus/api/clusters_interface.rb', line 268 def create_datastore(id, payload) url = "#{base_path}/#{id}/data-stores" headers = { :authorization => "Bearer #{@access_token}", 'Content-Type' => 'application/json' } execute(method: :post, url: url, headers: headers, payload: payload.to_json) end |