@상준 이 To disable the function please refer to the disable function document.
Programatically you can alos use the below REST endpoint to enable/disable a particular function
content-type: application/json; charset=utf-8
Alternative you can also use this API to update appsettings for your function app.
Feel free to get back to me if you need any assistance.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.