A Secure Interoperable API Wrapper Tunnel for Integration of GIS- Based ICS-IIoT and Digital Twins in Industry 4.0 Clouds HASAN TARIQ 1 , SHAFAQ SULTAN 2 1 Department of Electrical Engineering, College of Engineering, Qatar University, Doha, QATAR 2 Faculty Of Education, Allama Iqbal Open University Islamabad, PAKISTAN Abstract: - Industry 4.0 is the most disruptive revolution engulfing all the digital transformation from sensors nodes to cloud applications. A sustainable and secure Industry 4.0 ecosystem is a core challenge for stakeholders and state agencies addressed in this work by layered API tunnel interoperability instead of conventional cybersecurity methods and techniques. In this work, an interoperable application programmer interface (API) wrapper is being proposed to manage heterogeneous cloud architectures using Eucalyptus, Apache CloudStack, and OpenNebula. A comprehensive design and implementation plan from things layer to user interface has been accomplished in this work. Infrastructure as a Service (IaaS) is being automated using Ansible from Web Servers Layers through Common Gateway Interface (CGI) scripting. The Web Servers are being managed using WebSockets by micro–Web Servers Gateway Interface (uWSGI) from cloudstack managers (CSM) API. The Platform as a Service (PaaS) for big data, web servers, and machine learning platforms is accomplished using uWSGI from CSM. The public and private clouds are being managed using individual APIs. The wrapper, proposed in this work enables the big challenge of Industry 4.0 for realizing interoperability, scalability, heterogeneity, and automated cloud integration by functioning at the Software as a Service (SaaS) Layer. Key-Words: - Industry 4.0, GIS, Digital Twins, CloudStack, IIoT, SCADA, uWSGI, IaaS, PaaS, SaaS, IoT, and Wrapper Received: July 26, 2021. Revised: February 22, 2022. Accepted: March 27, 2022. Published: April 21, 2022. 1 Introduction In secure urban scale, cloud managed services [1] and applications interoperability, scalability, heterogeneity, and automated cloud integration have always been a dreamed opulence. Urban applications [2] and processes challenges resulted in many systems, architectures, platforms, frameworks, and mechanisms. The canvas of environmental monitoring, infrastructure resilience, energy optimization, transportation routing, and health ubiquity can only be addressable by the Internet of Everything (IoE) in smart city level tasks [2-4]. By the start of 2020, the number of connected machines is estimated to reach more than 34 billion [3-4] more than fourfolds of the entire global population. The journey [5] from the open geospatial consortium (OGC) to InfraGML has a major gap in sensor to geo-dashboard interoperability. The work SHM-UCM implementation in [6] solved the interoperability problem by manual scripting that overcasts the manpower and technical resource in urban scale implementation by bulking the laborious jobs. Furthermore, the convergence [6-8] of application layer protocols MQTT, XMPP, CoAP, and AMQP with device libraries and information exchange template formats like JSON and XML again needs file-level parsing to assist tools like Ansible and Jenkin for network automation. Different simulation models and implementations were proposed over time [9]. Taking into account of UrbanSense to SEMSim hyper-converged implementation a plethora of gaps and peculiarities can be observed like information-centered gateways automation from sensors to application front-end and interoperability of the UrbanSense platform and SEMSim clouds [10, 11]. A micro-Web Server gateway interface (uWSGI) is needed that can automate the Infrastructure as a Service (IaaS) skeleton for network and REST API milestones using WebSockets [12]. The massive data produced in urban scale cloud operations [13] needs to be managed for creating, reading, updating, and deleting (CRUD) purposes in Big Data interfacing with platforms such as Hadoop Distributed File System (HDFS) [13-15]. The work in [16] proposed WSEAS TRANSACTIONS on COMPUTERS DOI: 10.37394/23205.2022.21.18 Hasan Tariq, Shafaq Sultan E-ISSN: 2224-2872 131 Volume 21, 2022