An air-conditioning apparatus, comprising: a compressor; a heat source side heat exchanger; a plurality of expansion devices; a plurality of heat exchangers related to heat medium; a plurality of pumps; and a plurality of use side heat exchangers, wherein a refrigerant circuit circulating a refrigerant that contains a refrigerating machine oil therein is formed by connecting the compressor, the heat source side heat exchanger, the expansion devices, and the heat exchangers related to heat medium with a refrigerant piping, and a plurality of heat medium circuits circulating a heat medium are formed by connecting the pumps, the use side heat exchangers, and the heat exchangers related to heat medium, characterized in that the air-conditioning apparatus includes at least one controller, which is configured to perform integrated control of the operation of the air-conditioning apparatus based on information of detecting devices, such that the information is used to control: a heating only operation mode that heats the heat medium by making the high-temperature high-pressure refrigerant that has been discharged from the compressor flow into all of the heat exchangers related to heat medium; a cooling only operation mode that cools the heat medium by making the low-temperature low-pressure refrigerant flow into all of the heat exchangers related to heat medium; a cooling and heating mixed operation mode that heats the heat medium by making the high-temperature high-pressure refrigerant that has been discharged from the compressor flow into one or some of the heat exchangers related to heat medium and cools the heat medium by making the low-temperature low-pressure refrigerant flow into one or some of the remaining heat exchangers related to heat medium; and an oil collection mode that collects the refrigerating machine oil stagnating in the heat exchangers related to heat medium into the compressor by changing a flow velocity or a flow direction of the refrigerant flowing in the heat exchangers related to heat medium depending on each operation mode. a compressor; a heat source side heat exchanger; a plurality of expansion devices; a plurality of heat exchangers related to heat medium; a plurality of pumps; and a plurality of use side heat exchangers, wherein a refrigerant circuit circulating a refrigerant that contains a refrigerating machine oil therein is formed by connecting the compressor, the heat source side heat exchanger, the expansion devices, and the heat exchangers related to heat medium with a refrigerant piping, and a plurality of heat medium circuits circulating a heat medium are formed by connecting the pumps, the use side heat exchangers, and the heat exchangers related to heat medium, characterized in that the air-conditioning apparatus includes at least one controller, which is configured to perform integrated control of the operation of the air-conditioning apparatus based on information of detecting devices, such that the information is used to control: a heating only operation mode that heats the heat medium by making the high-temperature high-pressure refrigerant that has been discharged from the compressor flow into all of the heat exchangers related to heat medium; a cooling only operation mode that cools the heat medium by making the low-temperature low-pressure refrigerant flow into all of the heat exchangers related to heat medium; a cooling and heating mixed operation mode that heats the heat medium by making the high-temperature high-pressure refrigerant that has been discharged from the compressor flow into one or some of the heat exchangers related to heat medium and cools the heat medium by making the low-temperature low-pressure refrigerant flow into one or some of the remaining heat exchangers related to heat medium; and an oil collection mode that collects the refrigerating machine oil stagnating in the heat exchangers related to heat medium into the compressor by changing a flow velocity or a flow direction of the refrigerant flowing in the heat exchangers related to heat medium depending on each operation mode.