code: def reassign_port(self, port):
          
          body = {'adapter-port-uri': port.uri}
          self.manager.session.post(
              self._uri + '/operations/reassign-storage-adapter-port',
              body=body)
          self.properties.update(body)
docs: Reassign this HBA to a new underlying :term:`FCP port`.
  
          This method performs the HMC operation "Reassign Storage Adapter Port".
  
          Authorization requirements:
  
          * Object-access permission to the Partition containing this HBA.
          * Object-access permission to the Adapter with the new Port.
          * Task permission to the "Partition Details" task.
  
          Parameters:
  
            port (:class:`~zhmcclient.Port`): :term:`FCP port` to be used.
  
          Raises:
  
            :exc:`~zhmcclient.HTTPError`: See the HTTP status and reason codes of
              operation "Reassign Storage Adapter Port" in the :term:`HMC API`
              book.
            :exc:`~zhmcclient.ParseError`
            :exc:`~zhmcclient.AuthError`
            :exc:`~zhmcclient.ConnectionError`