38 U.S. Code § 511. Decisions of the Secretary; finality
The Secretary shall decide all questions of law and fact necessary to a decision by the Secretary under a law that affects the provision of benefits by the Secretary to veterans or the dependents or survivors of veterans. Subject to subsection (b), the decision of the Secretary as to any such question shall be final and conclusive and may not be reviewed by any other official or by any court, whether by an action in the nature of mandamus or otherwise.
(b) The second sentence of subsection (a) does not apply to—
matters subject to section 502 of this title;
matters arising under chapter 37 of this title; and
matters covered by chapter 72 of this title.
Federal Rules of Civil Procedure
Writ of mandamus abolished in United States district courts, but relief available by appropriate action or motion, see rule 81, Title 28, Appendix, Judiciary and Judicial Procedure.