Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
brylor @brylor sighs
Mateusz Kurek
@mkurek
@brylor about parent/children relation - we have this in mind and we'll work on this soon. And DataCenter hardware doesn't have user assigned (directly), that's why it's not visible in my equipment tab
✪ vi4m Marcin Kliks
@vi4m
@brylor you can see similar view as "my equipment", but from "Service" view
it would be nice to have "My Services" somewhere, anyway
Bryan Taylor
@brylor
Throwing this out there... http://kea.isc.org/wiki
host reservations can be stored in the JSON configuration file or MySQL (DHCPv4)
mysql ...
Bryan Taylor
@brylor
How can I get a data center object to span from front to back? I don't want to give the impression that is empty...
gatvo
@gatvo
Is there a way to hide/disable pages from the admin portal such as removing the back office tab from the menu or the business segment page from the settings tab?
✪ vi4m Marcin Kliks
@vi4m
Yes, through the permissions settings
Pete
@kasim1r
hy, anyone here?
✪ vi4m Marcin Kliks
@vi4m
yes
Pete
@kasim1r
great
i have an API question
what would the correct json look like to create a new virtual server?
here's what I came up with after reading the OPTIONS page
{
"type": 1,
"hostname": "tollemaschine1",
"hypervisor": 2,
"service_env": 3,
"status": "in use",
"sn": "123lkjh1oiuz123jhvfejkbergjb432"
}
but what actually happens is an error 400
{"type":["This field is required."],"hypervisor":["This field is required."]}
i though i had both in there
i also tried "" around the integers
Pete
@kasim1r
basic misunderstanding of the concept (at my side)?
✪ vi4m Marcin Kliks
@vi4m
trying.
Pete
@kasim1r
very nice of you :)
✪ vi4m Marcin Kliks
@vi4m
curl -H "Content-Type: application/json" -H "Authorization: Token 9af03a5ed0eabdc665f00c7043c3913f88d0943b" -XPOST http://ralph-demo.allegro.tech/api/virtual-servers/ -d '{"hypervisor": 810, "type": 4}' -vvv
Pete
@kasim1r
that worked?
✪ vi4m Marcin Kliks
@vi4m
it works on our demo site, remember about Content-Type
if not provided, it wont' work
Pete
@kasim1r
oh really.... i only had the "Accept" header in there
✪ vi4m Marcin Kliks
@vi4m
it's required to specify, because we accept other content types
Zrzut ekranu 2016-09-14 o 17.56.07.png
you can play around using this GUI also
Zrzut ekranu 2016-09-14 o 17.56.25.png
to gather some examples and play with it
Pete
@kasim1r
ok, and the "accept" and "content-type" headers cannot be mixed, i just realized
next problem right away:
{"hostname":["This field must be unique."],"sn":["This field must be unique."]}
forget it, he already took the request :)
very nice
i'm doing this in Powershell, so bear with me
✪ vi4m Marcin Kliks
@vi4m
are you adopting Ralph for some back office purposes ?
Pete
@kasim1r
yes, we have a cluster of hypervisors, and I want to automate inventory of VMs
nobody wants to sit in front of a web interface to add VMs by hand :)
albeit the web interface is cool
:P
✪ vi4m Marcin Kliks
@vi4m
yeah, we did it the same, using bunch of scripts
Pete
@kasim1r
oh maybe you want to share these scripts ... for shortening the learning curve?
✪ vi4m Marcin Kliks
@vi4m
so this API for virtualservers should be sufficient to add complete set of properties