Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #12626] Please enable creating Host objects in bulk via API #4625

Open
icinga-migration opened this issue Sep 2, 2016 · 4 comments
Labels
area/api REST API area/configuration DSL, parser, compiler, error handling enhancement New feature or request needs-sponsoring Not low on priority but also not scheduled soon without any incentive

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/12626

Created by hvhaugwitz on 2016-09-02 07:25:04 +00:00

Assignee: hvhaugwitz
Status: Feedback
Target Version: (none)
Last Update: 2017-01-09 14:58:06 +00:00 (in Redmine)

Backport?: Not yet backported
Include in Changelog: 1

Adding multiple hosts one by one via API needs to be ordered by dependencies. It would be very helpful to add multiple hosts at once.

This feature request is related to #10465.


Relations:

@icinga-migration
Copy link
Author

Updated by gbeutner on 2016-09-02 07:49:36 +00:00

  • Relates set to 10465

@icinga-migration
Copy link
Author

Updated by rhillmann on 2016-09-09 14:25:43 +00:00

+1 Without bulk i need now to create the file based packages...

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2016-12-08 00:32:29 +00:00

  • Status changed from New to Feedback
  • Assigned to set to hvhaugwitz

Then we will need sort of transactions, and this will overly complicate everything. That's fairly independent from creating host objects either, any object type should either support it, or not. I don't think adding such will be easy, especially not by avoiding breaking changes to the syntax.

How would you design it?

@icinga-migration
Copy link
Author

Updated by ricardo on 2017-01-09 14:58:06 +00:00

Hi,

how about this

API URL: https://localhost:5665/v1/objects/hosts
HTTP Method: PUT

[
   {
        "name": "host a",
        "templates": [
            "generic-host"
        ],
        "attrs": {
            "address": "192.168.0.2",
            "vars": {
                "vendor": "HP",
                "os": "Linux"
            },
            "zone": "DMZ FFM"
        }
    },
    {
        "name": "host b",
        "templates": [
            "generic-host"
        ],
        "attrs": {
            "address": "192.168.1.2",
            "vars": {
                "vendor": "HP",
                "os": "Linux"
            },
            "zone": "DMZ NY"
        }
    }
]

the name is an attribute inside the json array.

would this work?

@icinga-migration icinga-migration added needs feedback We'll only proceed once we hear from you again enhancement New feature or request area/api REST API labels Jan 17, 2017
@dnsmichi dnsmichi removed the needs feedback We'll only proceed once we hear from you again label Jun 8, 2017
@dnsmichi dnsmichi added the needs-sponsoring Not low on priority but also not scheduled soon without any incentive label Nov 9, 2017
@dnsmichi dnsmichi removed the wishlist label May 9, 2019
@Al2Klimov Al2Klimov added the area/configuration DSL, parser, compiler, error handling label Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api REST API area/configuration DSL, parser, compiler, error handling enhancement New feature or request needs-sponsoring Not low on priority but also not scheduled soon without any incentive
Projects
None yet
Development

No branches or pull requests

3 participants