-
-
Save hisaotsu/b9396323996b081060421d54f44f0185 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 実行例 | |
## Sample REST API by Python | |
Please enter user ID: | |
root | |
Please enter password: | |
*********** | |
- Login | |
/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings | |
InsecureRequestWarning) | |
{'services': [{'name': 'access', | |
'uri': 'https://192.168.150.240:215/api/access/v1', | |
'version': '1.0'}, | |
{'name': 'san', | |
'uri': 'https://192.168.150.240:215/api/san/v1', | |
'version': '1.0'}, | |
{'name': 'service', | |
'uri': 'https://192.168.150.240:215/api/service/v1', | |
'version': '1.1'}, | |
{'name': 'workflow', | |
'uri': 'https://192.168.150.240:215/api/workflow/v1', | |
'version': '1.1'}, | |
{'name': 'storage', | |
'uri': 'https://192.168.150.240:215/api/storage/v1', | |
'version': '1.1'}, | |
{'name': 'system', | |
'uri': 'https://192.168.150.240:215/api/system/v1', | |
'version': '1.1'}, | |
{'name': 'alert', | |
'uri': 'https://192.168.150.240:215/api/alert/v1', | |
'version': '1.1'}, | |
{'name': 'hardware', | |
'uri': 'https://192.168.150.240:215/api/hardware/v1', | |
'version': '1.1'}, | |
{'name': 'analytics', | |
'uri': 'https://192.168.150.240:215/api/analytics/v1', | |
'version': '1.1'}, | |
{'name': 'setting', | |
'uri': 'https://192.168.150.240:215/api/setting/v1', | |
'version': '1.1'}, | |
{'name': 'role', | |
'uri': 'https://192.168.150.240:215/api/role/v1', | |
'version': '1.1'}, | |
{'name': 'user', | |
'uri': 'https://192.168.150.240:215/api/user/v1', | |
'version': '1.1'}, | |
{'name': 'problem', | |
'uri': 'https://192.168.150.240:215/api/problem/v1', | |
'version': '1.1'}, | |
{'name': 'network', | |
'uri': 'https://192.168.150.240:215/api/network/v1', | |
'version': '1.0'}, | |
{'name': 'log', | |
'uri': 'https://192.168.150.240:215/api/log/v1', | |
'version': '1.0'}]} | |
Process finished with exit code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment