get deployment by name or uuid

Change-Id: I513b5259e0cfa66780b4ce00cf78dc57aeeb57db