CLOUD-200 id and simple name can use on api

I think we should avoid relying on an exception and duplicate the logic. Let's check if the parameter is number beforhand.