I am trying to utilize an API. I need to either do some type of "for loop" that replaces or utilizes 2 variables...
In pseudo..
# Declare New Servers
newserver=(
box001
box002
box003
box004
box005
)
# Declare hostnames
newhostname=(
box001.domain.com
box002.domain.com
box003.domain.com
box004.domain.com
box005.domain.com
)
I need to replace NEWSERVER and NEWHOSTNAME in
http://server/api/duplicateobject.htm?id=2928&name=NEWSERVER&host=NEWHOSTNAME&targetid=3120
so that it looks like this
http://server/api/duplicateobject.htm?id=2928&name=box001&host=box001.zcloud.com&targetid=3120
I just need it to loop through all of hosts listed.