Use getid func from common code

Delete own implementation of 'getid' func and
use same one from common apiclient code.

Partially implements: blueprint use-common-code

Change-Id: I833def921aaf105740e429453ee6b017012e7303