This repository was archived by the owner on Oct 15, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 22#### Notes
33Extends support of the SDK to OneView Rest API version 600 (OneView v4.0).
44
5+ #### Features supported with current release:
6+ - Alert
7+
58#### New Resources:
69- License
710
Original file line number Diff line number Diff line change 2121| Endpoints | Verb | V200 | V300 | V500 |V600
2222| --------------------------------------------------------------------------------------- | -------- | :------------------: | :------------------: | :------------------: | :------------------: |
2323| ** Alerts** |
24- | <sub >/rest/alerts </sub > | GET | :white_check_mark : | :white_check_mark : |
25- | <sub >/rest/alerts </sub > | DELETE | :white_check_mark : | :white_check_mark : |
26- | <sub >/rest/alerts/{id} </sub > | GET | :white_check_mark : | :white_check_mark : |
27- | <sub >/rest/alerts/{id} </sub > | PUT | :white_check_mark : | :white_check_mark : |
28- | <sub >/rest/alerts/{id} </sub > | DELETE | :white_check_mark : | :white_check_mark : |
29- | <sub >/rest/alerts/AlertChangeLog/{id}</sub > | DELETE | :white_check_mark : | :white_check_mark : |
24+ | <sub >/rest/alerts </sub > | GET | :white_check_mark : | : white_check_mark : | : white_check_mark : | :white_check_mark : |
25+ | <sub >/rest/alerts </sub > | DELETE | :white_check_mark : | :white_check_mark : | : white_check_mark : | : white_check_mark : |
26+ | <sub >/rest/alerts/{id} </sub > | GET | :white_check_mark : | :white_check_mark : | : white_check_mark : | : white_check_mark : |
27+ | <sub >/rest/alerts/{id} </sub > | PUT | :white_check_mark : | :white_check_mark : | : white_check_mark : | : white_check_mark : |
28+ | <sub >/rest/alerts/{id} </sub > | DELETE | :white_check_mark : | :white_check_mark : | : white_check_mark : | : white_check_mark : |
29+ | <sub >/rest/alerts/AlertChangeLog/{id}</sub > | DELETE | :white_check_mark : | :white_check_mark : | : white_check_mark : | : white_check_mark : |
3030| ** Appliance Time and Locale Configuration** |
3131| <sub >/rest/appliance/configuration/time-locale</sub > | GET | :white_check_mark : | :white_check_mark : | :white_check_mark : |
3232| <sub >/rest/appliance/configuration/time-locale</sub > | POST | :white_check_mark : | :white_check_mark : | :white_check_mark : |
Original file line number Diff line number Diff line change 2323
2424from hpOneView .oneview_client import OneViewClient
2525from config_loader import try_load_from_file
26- from hpOneView import extract_id_from_uri
26+ from hpOneView . resources . resource import extract_id_from_uri
2727from pprint import pprint
2828
2929config = {
4343print ("\n Getting the first 5 alerts" )
4444alerts = _client .alerts .get_all (0 , 5 )
4545for alert in alerts :
46- "uri: '{uri}' | type: '{type}' | alertState: '{alertState}'" .format (** alert )
46+ print ( "uri: '{uri}' | type: '{type}' | alertState: '{alertState}'" .format (** alert ) )
4747
4848# Get a specific alert (first of the list that was obtained in previous item)
4949print ("\n Get a specific alert" )
You can’t perform that action at this time.
0 commit comments