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 #9448] Define RESTful url schema #3083

Closed
icinga-migration opened this issue Jun 18, 2015 · 7 comments
Closed

[dev.icinga.com #9448] Define RESTful url schema #3083

icinga-migration opened this issue Jun 18, 2015 · 7 comments
Labels
area/api REST API enhancement New feature or request
Milestone

Comments

@icinga-migration
Copy link

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

Created by mfriedrich on 2015-06-18 11:45:54 +00:00

Assignee: (none)
Status: Closed (closed on 2015-09-07 22:36:36 +00:00)
Target Version: 2.4.0
Last Update: 2015-11-06 17:02:36 +00:00 (in Redmine)

Backport?: No
Include in Changelog: 0

  • Url tree for hosts, etc (plural instead singular)

    /hosts create (POST)
    /hosts list (GET)
    /hosts/ update (POST)
    /hosts/ list (GET)
    /hosts/ delete (DELETE)

More examples

/v1/hostgroups
/v1/downtimes

/v1//icinga/stats

/v1/actions/reschedule_check?filter=host.state==2
/v1/actions/icinga/restart

/v1//event?name=X&ttl=1800&filter="..." 
  • Actions
    • restart (global)
    • reschedule
    • acknowledge
    • send_custom
  • Url parameter
    • column (e.g. "?columns=name,address"
    • filter (e.g. "?filter="match(urlencode("192.168.*"), host.address)"
    • attributes (e.g. "?attr=enable_active_checks&value=true") or va JSON body for !GET
    • etc.
  • Implicit table joins by url tree type (e.g. services and their hosts, or comments and their filtered owner)
  • Version schema and redirect
  • Output: JSON
  • Health Checks for API streams

Parent Task: #9074

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-06-18 11:46:10 +00:00

  • Parent Id set to 9074

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-06-18 12:09:18 +00:00

  • Description updated

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-06-30 15:08:36 +00:00

  • Description updated

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-07-08 14:56:09 +00:00

  • Done % changed from 0 to 50

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-09-07 22:36:37 +00:00

  • Status changed from New to Closed
  • Done % changed from 50 to 100

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-09-12 09:15:30 +00:00

  • Backport? changed from TBD to No

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-11-06 17:02:37 +00:00

  • Include in Changelog changed from 1 to 0

@icinga-migration icinga-migration added enhancement New feature or request area/api REST API labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.4.0 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api REST API enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant