'Returns all the varrays in a vdc.
:param vdcname: Name of the Virtual Data Center
:returns: JSON payload of varray list'

def varray_list(self, vdcname=None):

    vdcrestapi = None
    if (vdcname is not None):
        vdcrestapi = VirtualArray.URI_VIRTUALARRAY_BY_VDC_ID.format(vdcname)
    else:
        vdcrestapi = VirtualArray.URI_VIRTUALARRAY
    (s, h) = common.service_json_request(self.ipaddr, self.port, 'GET', vdcrestapi, None)
    o = common.json_decode(s)
    returnlst = []
    for item in o['varray']:
        returnlst.append(item['id'])
    return returnlst
