At rest relative to the reference frame im which you are measuring the mass.
If you have a particle at rest wrt the Earth, and measure its mass, you get m0, the rest mass.
If you measure the mass of the same particle from a frame fixed to the sun (so now the particle is moving with the Earth wrt you), you get a different answer.
(Sort of. Opinions vary as to whether one should really think of the mass as varying with velocity, or instead just adjust the momentum/energy equations to account for the changes. I was personally taught that mass equals mass equals mass, i.e. it doesn't change, but on the other hand, momentum does not equal mass times velocity, rather it equals mass times velocity divided by sqrt (1 - v^2 / c^2).)