Feature #15926

Add a new endpoint to get ENC values of a host

Added by Bryan Kearney about 1 year ago. Updated 12 months ago.

Status:Closed
Priority:Normal
Assigned To:Ondřej Pražák
Category:API
Target version:Team Marek Iteration 4
Difficulty: Bugzilla link:1362372
Found in release: Pull request:https://github.com/theforeman/foreman/pull/3907, https://github.com/theforeman/foreman/pull/3695
Story points-
Velocity based estimate-
Release1.14.0Release relationshipAuto

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

Duplicated by Foreman - Feature #13973: Add Support to get Host YAML output from CLI and API. Duplicate 03/01/2016
Blocks Hammer CLI - Bug #16423: Hammer should provide commands for showing host's ENC YAML New 09/02/2016

Associated revisions

Revision 45e7f2c7
Added by Ondřej Pražák 12 months ago

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

History

#1 Updated by The Foreman Bot about 1 year 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 about 1 year 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 about 1 year ago

  • Bugzilla link set to 1362372

#4 Updated by Dominic Cleal about 1 year ago

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

#5 Updated by Dominic Cleal about 1 year ago

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

#6 Updated by Marek Hulán 12 months ago

  • Target version set to Team Marek Iteration 4

#7 Updated by The Foreman Bot 12 months ago

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

#8 Updated by Anonymous 12 months ago

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

#9 Updated by Dominic Cleal 12 months ago

  • Tracker changed from Bug to Feature
  • Release set to 1.14.0

Also available in: Atom PDF