jm2008
13th June 2008, 15:09
We are trying to integrate Java client with flexiscale API. It works fine with simple read only APIs however when creating a VDS it fails with a message of "invalid package id". So what is package id basically or from where can we get the description of the parameters an API expects (specially for Java Client) ?
Thanks
eoveri
7th October 2008, 15:18
We are trying to integrate Java client with flexiscale API. It works fine with simple read only APIs however when creating a VDS it fails with a message of "invalid package id". So what is package id basically or from where can we get the description of the parameters an API expects (specially for Java Client) ?
Thanks
It seems like Package Id ties into some sort of system for limiting usage (you can create sub-packages with disk and bandwidth limits). I don't know if it works but we don't use it. Here's some code for getting your package and Vlan Ids through the java API:
public int defaultPackageId;
public int defaultVlanId;
protected void setupDefaultVlan() throws RemoteException {
Vlan[] vlans = flexiscale.listVlans(new int[] {});
defaultVlanId = vlans[0].getVlan_id();
}
protected void setupDefaultPackage() throws RemoteException {
_package[] packages = flexiscale.listPackages(new int[] {});
if (packages == null || packages.length == 0) {
log.warn("Expected 1 package, got none");
}
else {
if (packages.length != 1)
log.warn(" Expected 1 package, found " + packages.length);
this.defaultPackageId = packages[0].getPackage_id();
}
}
yj1tm2pl3
6th January 2009, 04:55
I thought she thought why quick insane like this I and she is in luck together actually meets the topic I have not looked her to me to have favorable impression yesterday to see her and male walks me good bothersome dispirited one day of college entrance examination on more than 5 month of me not to have the tense feeling to think but actually daily today as soon as her I was all game gold (http://www.00451.com) tired of the mother to request 400-500 then on to me to assist well greatly also absolutely let me have well work I actually in dispirited I to look in the textbook 5 minutes must remember her me to be very confused I to want with her to say gave up looking saw today installed to her me has not been seeingPasses through when she has not managed my me actually to think that her I want to cry to want to listen to the song well read listens to song that female really not like this to you!!! Do not think her, is not worth, why to hang to death on a tree, she pays no atte,buy dofus (http://www.buydofus.com) otherwise the present might die. refuels, these people are the eye mist!in I also had a mind the words to want saying that was very bothersome, all schoolmates the ash metown, my person this long vacation, kamas buy (http://www.kamasbuy.com)my mother too has been parsimonious has not let on me e Private school, our privately established and the illimeter difference will be many, enters rivately later to come out is in the society the upper formation, really called “the healthy development” wonderful, but she dies now is not willing to draw cash dofus gold (http://www.dofus-gold.com), I had to read very bad public, the good public people were full. Other schoolmate, has well public reads, may return to one's old home, I? Mother 25 only then has a vacation, dies cannot see her, my anything does not have, the hand is also injured very much seriously, in the family was the loot has died, the piano had one week not to practice, the compunction, certainly was very not at heart ripe. Entire does not have the hope dispirited life. After beginning school, the result is certainly very bad. Not good schoolmate.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.