Scheme locally of finite type over the affinization

For a scheme $ X$ there is a canonical morphism $ X\rightarrow \mathrm{Spec}\:H^0(X, \mathcal{O}_X)$ . For which schemes is this morphism locally of finite type? Is there a specific terminology for such schemes? Something like the projective space of infinite dimension shows that this condition does not always hold.