Thanks for your help Jayapal.

I should have stated earlier that I added the first three firewalls thru
the web GUI.

When I list the public IPs like so....I don't see any IDs that match what I
see when I list the firewall rules that I added thru the GUI
> list publicipaddresses listall=true
count = 1
publicipaddress:
id = a2ed3fda-c343-4282-bbb4-603064f2893a
account = admin
allocated = 2013-05-08T09:41:39-0400
associatednetworkid = dcea58f0-16d0-4968-a04c-3d9749909434
domain = ROOT
domainid = b2f28f25-c26f-415c-9b28-edfea50e65f2
forvirtualnetwork = True
ipaddress = 192.168.220.31
issourcenat = True
isstaticnat = False
issystem = False
networkid = ce820e86-a07b-454f-ad11-c4e8fcb46fb0
physicalnetworkid = d625e56c-ec75-44bc-87c6-17760f801d7c
state = Allocated
vlanid = 712aaca4-6a14-42da-84f1-f5337b83c8fb
vlanname = untagged
zoneid = a5b1138d-d15c-4480-aca6-f0ae1f363955
zonename = Zone-0

////   now the rirewall rules.....I added these with the GUI.  Note the
ipaddressid = 32s.....When I create a rule thru cloudmonkey and specify
ipaddressID=32, the rule gets added and I can then see it thru the GUI when
I refresh.

> list firewallrules listall=true
count = 3
firewallrule:
id = 0dbfc6c6-f1f7-491e-a3de-71f3b06a7bd6
cidrlist = 0.0.0.0/12
ipaddress = 192.168.220.31
ipaddressid = 32
protocol = udp
state = Active
================================================================================
id = 6010b6b6-7e82-48e7-9682-8272a35bd7f1
cidrlist = 0.0.0.0/11
endport = 64000
ipaddress = 192.168.220.31
ipaddressid = 32
protocol = udp
startport = 11
state = Active
================================================================================
id = 07c18ef0-9ae4-471b-ad5d-8f8675fdc20f
cidrlist = 0.0.0.0/0
icmpcode = -1
icmptype = -1
ipaddress = 192.168.220.31
ipaddressid = 32
protocol = icmp
state = Active



On Mon, May 20, 2013 at 9:59 AM, Jayapal Reddy Uradi <
jayapalreddy.ur...@citrix.com> wrote:

> Try the  list public ip addresses using listPublicIpAddresses API.
>
> Thanks,
> Jayapal
>
> On 20-May-2013, at 5:04 PM, Fred Messinger <fredmessin...@gmail.com>
> wrote:
>
> > Hi Guys,
> >
> > I am trying to use cloudmonkey to create a firewall rule:
> > create firewallrule protocol=udp cidrlist=0.0.0.0/12 ipaddressid=...
> >
> > My question is this:  How do I know which ipaddressid to use.  I can
> create
> > the rule successfully if I first do:
> >
> >   "list firewallrules listall=true"
> >
> > and then use the ipaddressid I see in the output.  But how do I know
> which
> > ipaddressid to supply if I don't first list them OR if its the first rule
> > I'm creating?
> >
> > Thanks,
> > Fred
> >
> > PS:  The command completion on cloudmonkey is terrific!!!  Good job!
>
>

Reply via email to