You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vcl.apache.org by Josh Thompson <jo...@ncsu.edu> on 2009/03/05 17:17:53 UTC
Re: frontend API for block reservations (VCL-78)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu February 5 2009 10:18:17 am Josh Thompson wrote:
> > > function name: XMLRPCblockAllocation
> > >
> > > parameters:
> > > imageid - id of the image to be used
> > > start - unix timestamp for the start time (i.e. machines should be
> > > prep'd and ready by this time)
> > > end - unix timestamp for the end time
> > > machinecount - number of computers to allocate
> > > usergroupid - id of user group for checking user access to machines
> > > ignoreprivileges - 0 (false) or 1 (true) - set to 1 to select
> > > computers from any that are mapped to be able to run the image; set to
> > > 0 to only select computers from ones that are both mapped and that
> > > users in usergroupid have been granted access to through the privilege
> > > tree. If this is set to 1, usergroupid is ignored (more on this
> > > below).
After coding this, I discovered I converted 'start' and 'end' to the mysql
datetime format and never used the unix timestamp format. Does anyone see
any reason to keep the parameters as unix timestamps? If not, I'll specify
that they should be mysql datetime format. I'm think that would be easier
for people to build when calling the API than a unix timestamp.
Josh
- --
- -------------------------------
Josh Thompson
Systems Programmer
Virtual Computing Lab (VCL)
North Carolina State University
Josh_Thompson@ncsu.edu
919-515-5323
my GPG/PGP key can be found at www.keyserver.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
iD8DBQFJr/s1V/LQcNdtPQMRAiMpAJ93GkRA/1jJj0k+X0afyp9I92g0zwCdHDNj
SgWB7+f1ZJ6QO+43IdiSCCM=
=LvnQ
-----END PGP SIGNATURE-----