Turns out it was a problem with URL encoding. The example I was following
didn't need to URL encode anything and that happened to work for two out of
the three API calls I was trying to make (but the iscsi part of
createStoragePool needed to be URL encoded to work).
On Mon, Feb 18, 2013 at 4:27
I wonder if the problem perhaps is the iscsi:// part of the query string.
Do I maybe have to do something special with that (URL encode)?
On Mon, Feb 18, 2013 at 2:44 PM, Mike Tutkowski <
[email protected]> wrote:
> For example, deployVirtualMachine (works):
>
>
> http://127.0.0.1:80
For example, deployVirtualMachine (works):
http://127.0.0.1:8080/client/api?command=deployVirtualMachine&serviceOfferingId=ad8921ce-79e9-11e2-9ad2-3fe5c11831af&templateId=3bb9efd1-42f1-4413-be98-57c49c6dc12b&zoneId=a39e2c4c-7172-4045-b692-b6053b0ba01a&userdata=xyz&response=json&apiKey=JZ13Mfqe6VJD
So, when I call createStoragePool, I get back the following error:
{ "createstoragepoolresponse" :
{"uuidList":[],"errorcode":401,"errortext":"unable to verify user
credentials and/or request signature"} }
Do I have to send an authentication header field for such an API call?
Thanks!
On Mon,
Great, thanks a lot!
On Mon, Feb 18, 2013 at 12:07 AM, Sowmya Krishnan <
[email protected]> wrote:
> Mike, you're right - the URL parameter should include IP address, Target
> IQN and LUN in the following format: url= iscsi://IP address/target IQN/LUN
>
> This worked for me:
> http://lo
Mike, you're right - the URL parameter should include IP address, Target IQN
and LUN in the following format: url= iscsi://IP address/target IQN/LUN
This worked for me:
http://localhost:8096/client/api?command=createStoragePool&name=PS2iscsi&url=iscsi://10.X.X.X/iqn.2004/0&zoneid=f7f9bd51-18
If so, please file a bug with Component set to Doc. Thanks!
Jessica T
On Thu, Feb 14, 2013 at 9:15 PM, Mike Tutkowski <
[email protected]> wrote:
> OK, thanks, Alex
>
> Then the docs here must be incorrect:
>
> *name**the name for the storage pool**true**url**the URL of the storage
>
OK, thanks, Alex
Then the docs here must be incorrect:
*name**the name for the storage pool**true**url**the URL of the storage pool
**true**zoneid**the Zone ID for the storage pool**true**clusterid**the
cluster ID for the storage pool**false**details**the details for the
storage pool**false**podi
According to the command itself it is required. Look in
createstoragepoolcmd.java.
--Alex
> -Original Message-
> From: Mike Tutkowski [mailto:[email protected]]
> Sent: Thursday, February 14, 2013 6:58 PM
> To: [email protected]
> Subject: createStoragePool