create devices resource