async def METHOD_NAME(service_name, microservice_management_host, core_management_host, core_management_port, microservice_id):
    global _HTTP, _HOST, _PORT
    storage = StorageClientAsync(core_management_host, core_management_port)
    configuration_manager = ConfigurationManager(storage)
    config = await configuration_manager.get_category_all_items('rest_api')
    is_rest_server_http_enabled = False if config['enableHttp']['value'] == 'false' else True
    port_from_config = config['httpPort']['value'] if is_rest_server_http_enabled \
        else config['httpsPort']['value']
    _HTTP = 'http' if is_rest_server_http_enabled else 'https'
    _HOST = microservice_management_host
    _PORT = int(port_from_config)
    await disable_service(service_name)
    await unregister_service(service_name, core_management_port, microservice_id)
    await modify_process_name(service_name,core_management_host, core_management_port)
    await reenable_service(service_name)