Let $U$ be an open subscheme of $\textrm{Spec} \ \mathbf{Z}$. The complement of $U$ is a divisor $D$ of $\textrm{Spec} \ \mathbf{Z}$.


**Q**. Can we classify the etale coverings of $U$ of a given degree? 


Given a finite etale morphism $\pi:V\longrightarrow U$, the normalization of $X$ in the function field $L$ of $V$ is $\textrm{Spec} \ O\_L$. Can we also say what $V$ itself should be?


Of course, we can complicate things by replacing $\textrm{Spec} \ \mathbf{Z}$ by $\textrm{Spec} \ O\_K$. 


**Example**. Take $U= \textrm{Spec} \ \mathbf{Z} -\{ (2)\}$ and let $V\rightarrow U$ be an finite etale morphism. Suppose that $V$ is connected and that let $K$ be its function field. The normalization of $\textrm{Spec} \ \mathbf{Z}$ in $K$ is of course $O\_K$. The extension $\mathbf{Z}\subset O\_K$ is unramified outside $(2)$ and (possibly) ramified at $(2)$. Can one give a description of $V$ here?


**EDIT**. I just realized one can also ask themselves a similar question for $\mathbf{P}^1\_{\mathbf{C}}$. Or even better, for any Riemann surface $X$.



Etale coverings of certain open subschemes in Spec O_K
As Kevin points out, $V$ is indeed $\mathcal{O}\_K[\frac{1}{2}]$ in your example. Your link to the fundamental group is also correct. $\pi\_1(U)$ is the Galois group of the maximal extension of $\mathbb{Q}$ unramified outside 2 (since you can restrict attention to the *connected* etale $\mathbb{Q}$-algebras)\*. More generally, in your original question, these are replaced by $\mathcal{O}\_L$ with the primes above the support of $D$ inverted, and the Galois group of the maximal extension of $\mathbb{Q}$ unramified outside the support of $D$. These groups can get pretty horrendous, and so number-theorists tend to (at least in my view) study the more well-behaved but still very mysterious maximal pro-$p$-quotients of these groups. Now these pro-$p$ groups are not only finitely generated by work of Shafarevich ("Extensions with prescribed ramification points"), they are $d$-generated, where $d$ is the cardinality of the support of $D$ (for "tame" and not silly $D$). More impressively, the relation rank is also calculated/bounded (in this case, it's also $d$!!!), frequently leading to conclusions about when these groups are finite or infinite.


The "more complicated" starting point of $\mathcal{O}\_K$ is in a sense not actually much more complicated. You're still asking for the Galois group of the maximal extension of $K$ unramified outside a finite set of primes, and Shafarevich's work gives formulas for the relation rank and generator rank for the pro-$p$-quotients.


The answer to your overall classification question is thus pretty difficult, and consume entire subdisciplines of number theory. As an example, Christian Maire has constructed number fields with a trivial class group but infinite unramified extensions -- you'd have to have a complete understanding of when this could happen before you could hope to prescribe all unramified extensions of a given degree, with or without certain primes inverted. There are certain cases where this can be done via, e.g., root discriminant bounds, but the story is far from being complete at this point.


As in Lars's answer, the situation is much much better understood for $\mathbb{P}\_\mathbb{C}^1$ and Riemann surfaces than it is for number fields.


\*: Actually, you have to be a little careful about 2-extensions. Etaleness doesn't pick up on whether or not infinite primes ramify. Everything's fine if you start with an totally imaginary field.


