GetMapDeviceResource function in SDNNetwork resource. allows to obtain the resource Id given the switch Id