Project

General

Profile

Feature #15926

Add a new endpoint to get ENC values of a host

Added by Bryan Kearney almost 3 years ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

I'm trying to get all host parameters via API as we can get using UI YAML button, which calls to /hosts/<fqdn>/externalNodes?name=<fqdn>. Need an endpoint for this.


Related issues

Has duplicate Foreman - Feature #13973: Add Support to get Host YAML output from CLI and API.Duplicate2016-03-01
Blocks Hammer CLI - Bug #16423: Hammer should provide commands for showing host's ENC YAMLClosed2016-09-02

Associated revisions

Revision 45e7f2c7 (diff)
Added by Ondřej Pražák over 2 years ago

Fixes #15926 - [API] Add method to get ENC values of a host

History

#1 Updated by The Foreman Bot almost 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3695 added

#2 Updated by Daniel Lobato Garcia almost 3 years ago

Bryan, you can get all the parameters of a host at api/v2/hosts/$FQDN/ - the key is 'all_parameters'. Alternatively you can use precisely the externalNodes endpoint you mentioned - what's the use case for this? It seems like adding it to the API is duplicating an endpoint.

#3 Updated by Bryan Kearney almost 3 years ago

  • Bugzilla link set to 1362372

#4 Updated by Dominic Cleal almost 3 years ago

  • Has duplicate Feature #13973: Add Support to get Host YAML output from CLI and API. added

#5 Updated by Dominic Cleal over 2 years ago

  • Blocks Bug #16423: Hammer should provide commands for showing host's ENC YAML added

#6 Updated by Marek Hulán over 2 years ago

  • Target version set to 1.5.0

#7 Updated by The Foreman Bot over 2 years ago

  • Assignee set to Ondřej Pražák
  • Pull request https://github.com/theforeman/foreman/pull/3907 added

#8 Updated by Anonymous over 2 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#9 Updated by Dominic Cleal over 2 years ago

  • Tracker changed from Bug to Feature
  • Legacy Backlogs Release (now unused) set to 189

Also available in: Atom PDF