Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

[19.10 - API REST] Add more informations to the method SHOW for HOST #8092

Open
Crash-Fox opened this issue Nov 5, 2019 · 2 comments
Open

Comments

@Crash-Fox
Copy link

ENHANCEMENT REPORT INFORMATION

Prerequisites

The opened issue, must be code related. GitHub is not meant for support. Feel free to check the CONTRIBUTING section for more details.

Operating System: CentOS 7

Additional environment details (AWS, VirtualBox, physical, etc.): VM

Description

When executing the SHOW method for getting all the HOST against the Centreon API. A few informations are given about hosts:

  • Name
  • Alias
  • Address
  • Activate

Steps to Reproduce

  1. Execute a SHOW request for the object HOST against the Centreon API

Describe the expected result

This method should be able return more informations about a HOST. With that we will have just one request to have all the informations we want about a HOST:

  • Host Template
  • Host Group
  • Host Macro

Additional Infos

In my company, we have a huge script which take a very long time to execute because it has to do 3 differents queries on the API for getting all the configuration of one HOST. The total execution time takes 3 hours.

It would be great if the SHOW method for the HOST could return more informations (HTPL, HG, MACRO) because I will be able to store all the HOSTS (and there informations) in a CSV file and not requesting too much the Centreon API for all the servers I have (around 7000).

@lpinsivy
Copy link
Contributor

Hi @Crash-Fox, we started a new API v2. The work is in process: https://api-documentation.centreon.com/centreon-web/centreon-api-v2.html

Regards,

@thanhtung6824
Copy link

Hi @lpinsivy. Can I use it now?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants