v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
Monitors

Create a monitor configuration policy

Create a monitor configuration policy.

post/api/v2/monitor/policy

Request body

Example request

{
  "data": {
    "attributes": {
      "policy": {
        "tag_key": "datacenter",
        "tag_key_required": true,
        "valid_tag_values": [
          "prod",
          "staging"
        ]
      },
      "policy_type": "tag"
    },
    "type": "monitor-config-policy"
  }
}

Response

OK

Example response

{
  "data": {
    "attributes": {
      "policy": {
        "tag_key": "datacenter",
        "tag_key_required": true,
        "valid_tag_values": [
          "prod",
          "staging"
        ]
      },
      "policy_type": "tag"
    },
    "id": "00000000-0000-1234-0000-000000000000",
    "type": "monitor-config-policy"
  }
}