We study thermodynamic properties of an Ising model of a ferromagnetic nanoscopic pyramid deposited on a ferromagnetic bulk substrate. The influence of the interaction between the pyramid and the substrate is calculated in terms of the reduced-state (density) operator used for description of thermodynamic properties of nanoscopic systems. The spatial distribution of magnetization in the nanopyramid is obtained in the Gaussian fluctuations approximation.