These are chat archives for allegro/ralph

13th
Sep 2017
Pete
@kasim1r
Sep 13 2017 07:23

Hi folks, here's the API dude again. After reading this: https://ralph-ng.readthedocs.io/en/latest/user/custom_fields/#changing-custom-fields I tried to do this:

URL:  https://ralph.my.domain/api/virtual-servers/93/customfields/my_lastack/
Method: PATCH
Body: {"value":  "someone@2017-09-12"}

and got back:
The remote server returned an error: (404) Not Found
Respns: {"detail":"Not found."}

then I tried:

URL:    https://ralph.my.domain/api/virtual-servers/93/customfields/
Method: PATCH
Body:   {"custom_field":  "my_lastack", "value":  "someone@2017-09-12"}

and got back:
The remote server returned an error: (405) Method Not Allowed.
Respns: {"detail":"Method \"PATCH\" not allowed."}

What am I doing wrong? Docs say:
"You could use custom field ID or attribute name to point it in API."

I'd like to not query the API for the id of the custom field before seting the value.

✪ vi4m Marcin Kliks
@vi4m
Sep 13 2017 07:38
@sibzz we provide https://github.com/allegro/ralph-cli as a discovery solution for ralph. You point it to given ip addres, and it will save detected model in ralph, using: 2 plugins (idrac and ilo)
✪ vi4m Marcin Kliks
@vi4m
Sep 13 2017 12:05
if you want more plugins, you can easily port it from ralph 2 (plugins directory)
„easily” means - with some minimal Python knowledge
ostrochovsky
@ostrochovsky
Sep 13 2017 13:10
hello guys, has Ralph functionality also to serve as team password manager (with read/write access delegation to various passwords, user groups, etc.)?