Fetching details from the dictionary...
ministry in charge of military affairs (ritsuryō period)
military command body (early Meiji period)