Class: ForemanApi::Resources::Host
- Inherits:
-
Base
- Object
- Base
- ForemanApi::Resources::Host
- Defined in:
- lib/foreman_api/resources/host.rb
Class Method Summary (collapse)
Instance Method Summary (collapse)
-
- (Array) boot(params = {}, headers = {})
First item: parsed data; second item: raw body.
-
- (Array) create(params = {}, headers = {})
First item: parsed data; second item: raw body.
-
- (Array) destroy(params = {}, headers = {})
First item: parsed data; second item: raw body.
-
- (Array) facts(params = {}, headers = {})
First item: parsed data; second item: raw body.
-
- (Array) index(params = {}, headers = {})
First item: parsed data; second item: raw body.
-
- (Array) power(params = {}, headers = {})
First item: parsed data; second item: raw body.
-
- (Array) puppetrun(params = {}, headers = {})
First item: parsed data; second item: raw body.
-
- (Array) show(params = {}, headers = {})
First item: parsed data; second item: raw body.
-
- (Array) status(params = {}, headers = {})
First item: parsed data; second item: raw body.
-
- (Array) update(params = {}, headers = {})
First item: parsed data; second item: raw body.
Class Method Details
+ (Object) doc
4 5 6 |
# File 'lib/foreman_api/resources/host.rb', line 4 def self.doc @doc ||= ForemanApi.doc['resources']["hosts"] end |
Instance Method Details
- (Array) boot(params = {}, headers = {})
Returns First item: parsed data; second item: raw body
147 148 149 |
# File 'lib/foreman_api/resources/host.rb', line 147 def boot(params = {}, headers = {}) perform_call(__method__, params, headers) end |
- (Array) create(params = {}, headers = {})
Returns First item: parsed data; second item: raw body
62 63 64 |
# File 'lib/foreman_api/resources/host.rb', line 62 def create(params = {}, headers = {}) perform_call(__method__, params, headers) end |
- (Array) destroy(params = {}, headers = {})
Returns First item: parsed data; second item: raw body
109 110 111 |
# File 'lib/foreman_api/resources/host.rb', line 109 def destroy(params = {}, headers = {}) perform_call(__method__, params, headers) end |
- (Array) facts(params = {}, headers = {})
Returns First item: parsed data; second item: raw body
159 160 161 |
# File 'lib/foreman_api/resources/host.rb', line 159 def facts(params = {}, headers = {}) perform_call(__method__, params, headers) end |
- (Array) index(params = {}, headers = {})
Returns First item: parsed data; second item: raw body
16 17 18 |
# File 'lib/foreman_api/resources/host.rb', line 16 def index(params = {}, headers = {}) perform_call(__method__, params, headers) end |
- (Array) power(params = {}, headers = {})
Returns First item: parsed data; second item: raw body
137 138 139 |
# File 'lib/foreman_api/resources/host.rb', line 137 def power(params = {}, headers = {}) perform_call(__method__, params, headers) end |
- (Array) puppetrun(params = {}, headers = {})
Returns First item: parsed data; second item: raw body
127 128 129 |
# File 'lib/foreman_api/resources/host.rb', line 127 def puppetrun(params = {}, headers = {}) perform_call(__method__, params, headers) end |
- (Array) show(params = {}, headers = {})
Returns First item: parsed data; second item: raw body
25 26 27 |
# File 'lib/foreman_api/resources/host.rb', line 25 def show(params = {}, headers = {}) perform_call(__method__, params, headers) end |
- (Array) status(params = {}, headers = {})
Returns First item: parsed data; second item: raw body
118 119 120 |
# File 'lib/foreman_api/resources/host.rb', line 118 def status(params = {}, headers = {}) perform_call(__method__, params, headers) end |
- (Array) update(params = {}, headers = {})
Returns First item: parsed data; second item: raw body
100 101 102 |
# File 'lib/foreman_api/resources/host.rb', line 100 def update(params = {}, headers = {}) perform_call(__method__, params, headers) end |