code: def get_device_access_interfaces(devId, auth, url):
      
      # checks to see if the imc credentials are already available
      get_access_interface_vlan_url = "/imcrs/vlan/access?devId=" + str(devId) + "&start=1&size=500&total=false"
      f_url = url + get_access_interface_vlan_url
      payload = None
      # creates the URL using the payload variable as the contents
      r = requests.get(f_url, auth=auth, headers=HEADERS)
      # r.status_code
      try:
          if r.status_code == 200:
              dev_access_interfaces = (json.loads(r.text))
              if len(dev_access_interfaces) == 2:
                  return dev_access_interfaces['accessIf']
              else:
                  dev_access_interfaces['accessIf'] = ["No access inteface"]
                  return dev_access_interfaces['accessIf']
      except requests.exceptions.RequestException as e:
              return "Error:\n" + str(e) + " get_device_access_interfaces: An Error has occured"
docs: Function takes devId as input to RESTFUL call to HP IMC platform
      :param devId: requires deviceID as the only input parameter
      :return: list of dictionaries containing interfaces configured as access ports