set resource type for port