diff --git a/components/engine/api/server/router/network/network_routes.go b/components/engine/api/server/router/network/network_routes.go index bff3561523f..f284bbef8fb 100644 --- a/components/engine/api/server/router/network/network_routes.go +++ b/components/engine/api/server/router/network/network_routes.go @@ -126,7 +126,13 @@ func (n *networkRouter) getNetwork(ctx context.Context, w http.ResponseWriter, r listByPartialID[network.ID()] = *n.buildDetailedNetworkResources(network, verbose) } } - + nwk, err := n.cluster.GetNetwork(term) + // If the get network inspect requests with network ID / partial network ID + if err == nil { + if nwk.ID == term || strings.HasPrefix(nwk.ID, term) { + return httputils.WriteJSON(w, http.StatusOK, nwk) + } + } nr, _ := n.cluster.GetNetworks() for _, network := range nr { if network.ID == term {