Configuring Network Access for an IoT Flow Runtime
Define the subnet and network security groups in an IoT Flow Runtime's network configuration.
Configure an existing IoT Flow Runtime with the subnet and network security groups required by your flow. The network configuration is updated as part of the IoT Flow Runtime resource.
Use a private subnet with the routes and security rules required by your flow. For outbound internet access from a private subnet, route traffic through a NAT gateway. Limit network security group rules to the protocols, ports, sources, and destinations the flow requires.
To define network access while creating a runtime, see Creating an IoT Flow Runtime.
Use the generated IoT Flow Runtime
updatecommand with a complete network configuration file.oci iot flow-runtime update --iot-flow-runtime-id <flow-runtime-OCID> --network-config file://network-config.jsonFor example,
network-config.jsoncontains:{ "subnetId": "ocid1.subnet.oc1..exampleuniqueID", "networkSecurityGroupIds": [ "ocid1.networksecuritygroup.oc1..exampleuniqueID" ] }Omitting
--network-configpreserves the existing network configuration. Providing it replaces the complete configuration. To remove the configuration, pass the value supported by the final generated CLI for a nullnetworkConfig.For all options, see CLI Command Reference.
Run the UpdateIotFlowRuntime operation to replace the network configuration for an existing IoT Flow Runtime.
PUT /20250531/iotFlowRuntimes/{iotFlowRuntimeId} { "networkConfig": { "subnetId": "ocid1.subnet.oc1..exampleuniqueID", "networkSecurityGroupIds": [ "ocid1.networksecuritygroup.oc1..exampleuniqueID" ] } }If
networkConfigis present,subnetIdis required. You can provide up to five network security group OCIDs innetworkSecurityGroupIds.Updates are partial. Omitting
networkConfigpreserves the existing configuration. Providing it replaces the complete configuration. To remove the configuration, passnetworkConfigasnull.
What's Next
Create an IoT flow runtime so you can create Node-RED flows all with the same OCID associated to the IoT Flow runtime.