latestOpenAPI 3.0.02026-08-2045003.8 MB

72813baf8d47

Notification Center Service

Create Notification Policy

Creates a notification policy. Only for Compute policies.

post/notificationCenter/policy

Parameters

#/paths/~1azure~1costs/get/parameters/0 — unresolved $ref

Request body

namestring

The name of the notification policy.

descriptionstring

A brief description of the notification policy. Can be null or not empty.

privacyLevel'public' | 'private' required

The privacy level of the notification policy.

isActiveboolean

Example request

{
  "name": "Test Notification Policy",
  "description": "A description of the notification policy.",
  "privacyLevel": "public",
  "subscriptions": [
    {
      "type": "email",
      "endpoint": "endpoint@example.com"
    }
  ],
  "registeredUsers": [
    {
      "userEmail": "user@example.com"
    }
  ],
  "isActive": true,
  "computePolicyConfig": {
    "events": [
      {
        "event": "Event Name",
        "type": "INFO"
      }
    ],
    "resourceIds": [
      "act-123456789",
      "act-987654321"
    ],
    "dynamicRules": [
      {
        "filterConditions": [
          {
            "identifier": "resource_name",
            "operator": "equals",
            "expression": "value"
          }
        ]
      }
    ]
  }
}