Terraform and CloudFlare for Teams, Gateway Policies

While writing terraform resource “cloudflare_teams_rule” for the most parts without issues, but when it comes to defining for traffic, for filters such as the below and corresponding selector, how can I get the id mappings to its corresponding category/application:

  1. dns - content category
  2. http - application
    For example, defining “http” policy with selector “application”, Dropbox and box has the following id 538 and 521.

https://developers.cloudflare.com/cloudflare-one/policies/filtering/dns-policies-builder/dns-categories

Great, wonder how i missed that for dns categories. Although can’t say the same for app id https://developers.cloudflare.com/cloudflare-one/policies/filtering/http-policies/application-app-types