Skip to content

Get



GET /api/v1/alert_policy/{alert_policy_uuid}/get

Overview

Read the raw configuration, notification target display information, and binding relationships of a single Alert Policy.

Before You Call and Usage Steps

Copy the uuid from the Alert Policy List and put it in the path. This API returns the fully saved alertOpt, permission configuration, and association arrays; use them to construct the complete target notification configuration before modification. When no matching policy exists, content={}, and a fixed 404 is not returned. invalidTargetUUIDs/invalidCustomDateUUIDs only cover some of the invalid resources found during the query; an empty array does not prove that all configurations are valid. You still need to verify targets and actual execution. In the current version, the top-level ruleTimezone is saved and displayed, but execution cache reads the historical alertOpt.ruleTimezone, defaulting to Asia/Shanghai; for other time zones, do not assume they have taken effect merely because saving succeeded; integrators must verify against the actual execution time zone. Do not bypass public parameters through additional undeclared fields.

Route Parameters

Parameter Type Required Description
alert_policy_uuid string Y UUID of the Alert Policy in the current Workspace.
Example: altpl_example
How to obtain or fill in: Obtain it from content.data[].uuid in the Alert Policy List; before modification, verify it with Alert Policy Details.

Request Headers

Parameter Type Required Description
DF-API-KEY string Y OpenAPI authentication credential for the Workspace.
Example: <DF-API-KEY>
How to obtain or fill in: Obtain an OpenAPI Key with the required operation permission from API Key Management in the target Workspace.

Additional Parameter Notes

The refCheckerInfo/refSecurityRuleInfo in the list are grouped by type, while in this details response they are arrays; do not reuse the same parsing structure. The complete entity returned cannot be directly sent back in full as a request; select only the modification fields declared by this API.

Request Example

curl --get 'https://openapi.guance.com/api/v1/alert_policy/altpl_example/get' \
  -H 'DF-API-KEY: <DF-API-KEY>'

Response

HTTP 200, application/json. The example below shows the main fields that can be read directly.

Field Type Description
content.id integer or null Policy record number; it may not yet be assigned in the create response. Use uuid for operations.
content.uuid string altpl_ Alert Policy UUID.
content.workspaceUUID string UUID of the Workspace it belongs to.
content.name string Policy name.
content.desc string Policy description.
content.ruleTimezone string Time zone of the saved entity; for execution read differences, see Usage. This is not proof that the time zone has taken effect.
content.score integer Policy score field; defaults to 0 on creation. This public request does not provide this field.
content.openPermissionSet boolean Custom operation permission switch.
content.permissionSet array<string> Identifiers of roles/members/teams that can operate.
content.permissionSet[] string Single subject identifier.
content.status integer Record status: 0 active, 2 disabled, 3 deleted; the list includes non-deleted policies.
content.creator string Creator identity.
content.updator string Last updater identity.
content.createAt integer Creation time, Unix seconds.
content.updateAt integer Update time, Unix seconds; initially -1.
content.deleteAt integer Deletion time, Unix seconds; -1 if not deleted.
content.alertOpt object Stored configuration: alert notification configuration object; omit it on creation to save an empty configuration; when modifying, pass a whole replacement. When an object is provided, aggInterval is a required validation field.
content.alertOpt.alertType string Stored configuration: status by severity, member by member, defaults to status when omitted. The two modes have different targets hierarchies and cannot be mixed.
content.alertOpt.silentTimeout integer Stored configuration: unified repeat alert interval, defaults to 900 seconds at execution when omitted; 0 means no periodic repeat in this round. If non-zero and less than 300, execution uses 300 seconds; do not pass null.
content.alertOpt.silentTimeoutByStatusEnable boolean Stored configuration: defaults to false on creation and uses silentTimeout; when true, expands per-status intervals according to silentTimeoutByStatus.
content.alertOpt.silentTimeoutByStatus array<object> Stored configuration: severity-based repeat interval array; when enabled, it should cover the severities that need control. This severity-based configuration is not subject to the 300-second normalization of the unified silentTimeout.
content.alertOpt.silentTimeoutByStatus[] object Stored configuration: severity-based interval object.
content.alertOpt.silentTimeoutByStatus[].status string Stored configuration: for non-security use fatal/critical/error/warning/nodata/info/ALL; for security use security_critical/security_high/security_medium/security_low/security_info/security_ALL. Separate multiple values with English commas and no spaces.
content.alertOpt.silentTimeoutByStatus[].silentTimeout integer Stored configuration: required repeat interval for each group, in seconds. Invalid severities may trigger internal errors; validate before sending.
content.alertOpt.aggInterval integer Stored configuration: required when alertOpt is provided, 0 to 1800 seconds. 0 means no aggregation; even if byAI is selected, it does not mean valid AI aggregation is enabled.
content.alertOpt.aggFields array<string> Stored configuration: field list. Predefined values include df_monitor_checker_id, df_dimension_tags, df_label, CLUSTER; in byCustom mode, business custom fields can be used; for v2 aggregation mode see also aggType.
content.alertOpt.aggFields[] string Stored configuration: single aggregation field. In byCustom, select based on actual event fields; do not guess fields only from display names.
content.alertOpt.aggLabels array<string> Stored configuration: array of tag values for aggregation by tag; when df_label is selected, a non-empty array must be provided.
content.alertOpt.aggLabels[] string Stored configuration: single tag value.
content.alertOpt.aggClusterFields array<string> Stored configuration: text fields for intelligent aggregation; when CLUSTER is included, at least one of df_title or df_message must be selected.
content.alertOpt.aggClusterFields[] string Stored configuration: single text field.
content.alertOpt.alertTarget array<object> Stored configuration: notification rule array. In status mode, place severity actions in targets; in member mode, organize members and notification methods in alertInfo.
content.alertOpt.alertTarget[] object Stored configuration: rule object. When a fallback is needed, explicitly add a rule with no time configuration; do not assume the system fills it in automatically.
content.alertOpt.alertTarget[].name string Stored configuration: optional rule name, up to 256 characters.
content.alertOpt.alertTarget[].crontab string Stored configuration: schedule start time expression; must be paired with crontabDuration. Choose either this or the custom date approach.
content.alertOpt.alertTarget[].crontabDuration integer Stored configuration: duration of the schedule window in seconds; must be provided together with crontab; if no repeat period is configured, omit both.
content.alertOpt.alertTarget[].customDateUUIDs array<string> Stored configuration: reference to a custom date set, up to 366 items; provide together with customStartTime and customDuration; do not substitute crontabDuration.
content.alertOpt.alertTarget[].customDateUUIDs[] string Stored configuration: single date configuration UUID.
content.alertOpt.alertTarget[].customStartTime string Stored configuration: start time on the day of the custom date; used together with customDateUUIDs/customDuration.
content.alertOpt.alertTarget[].customDuration integer Stored configuration: duration of the custom date window in seconds; must be provided together with the date set and start time.
content.alertOpt.alertTarget[].targets array<object> Stored configuration: severity mode action array.
content.alertOpt.alertTarget[].targets[] object Stored configuration: single severity action.
content.alertOpt.alertTarget[].targets[].status string Stored configuration: required severity selection: fatal, critical, error, warning, nodata, info; use uppercase ALL for all; separate multiple values with English commas and no spaces. For security sources, use critical, high, medium, low, info, or ALL.
content.alertOpt.alertTarget[].targets[].df_source string Stored configuration: optional; the public target structure supports only security. When omitted, the execution layer excludes security sources.
content.alertOpt.alertTarget[].targets[].to array<string> Stored configuration: required recipient target array; can use members, teams, notification targets, or email addresses; agent accounts can use their valid default Webhook.
content.alertOpt.alertTarget[].targets[].to[] string Stored configuration: in member mode, commonly email/sms/notify_; in status mode, use acnt_/agent_/group_/notify_ or email addresses. Whether channels such as SMS are available depends on the site and target configuration.
content.alertOpt.alertTarget[].targets[].tags object Stored configuration: in status mode, filter events by field values; in member mode, use the parent alertInfo.filterString; tags here are not used as member selection conditions.
content.alertOpt.alertTarget[].targets[].tags. array<object> Stored configuration: array of match values for a single field.
content.alertOpt.alertTarget[].targets[].tags.[] string Stored configuration: single match value.
content.alertOpt.alertTarget[].targets[].filterString string Stored configuration: in status mode, when non-empty, takes precedence over tags and is used for escalation actions; in member mode, use the parent alertInfo.filterString; fields within this target are not valid filtering entries.
content.alertOpt.alertTarget[].targets[].upgradeTargets array<object> Stored configuration: optional escalation actions; executed after an event remains at the corresponding severity for duration; [] means no escalation is configured.
content.alertOpt.alertTarget[].targets[].upgradeTargets[] object Stored configuration: single escalation action.
content.alertOpt.alertTarget[].targets[].upgradeTargets[].to array<string> Stored configuration: in member mode, escalation recipient members/teams; in status mode, escalation notification targets, which can be members/teams/notification targets/email addresses.
content.alertOpt.alertTarget[].targets[].upgradeTargets[].to[] string Stored configuration: single escalation recipient identifier.
content.alertOpt.alertTarget[].targets[].upgradeTargets[].duration integer Stored configuration: required duration in seconds; each escalation is configured relative to the event's continuous state; multiple durations are not automatically accumulated.
content.alertOpt.alertTarget[].targets[].upgradeTargets[].toWay array<string> Stored configuration: member escalation notification method array; not used in status mode.
content.alertOpt.alertTarget[].targets[].upgradeTargets[].toWay[] string Stored configuration: single escalation notification method.
content.alertOpt.alertTarget[].alertInfo array<object> Stored configuration: member grouping array used only in member mode; not used in status mode.
content.alertOpt.alertTarget[].alertInfo[] object Stored configuration: member group object.
content.alertOpt.alertTarget[].alertInfo[].name string Stored configuration: optional member group name, up to 256 characters.
content.alertOpt.alertTarget[].alertInfo[].memberInfo array<string> Stored configuration: recipient member/team array for regular notifications in member mode; may include agent accounts; combined with targets.to notification methods.
content.alertOpt.alertTarget[].alertInfo[].memberInfo[] string Stored configuration: single member or team identifier.
content.alertOpt.alertTarget[].alertInfo[].filterString string Stored configuration: member group-level event filtering; both regular and escalation actions use this condition.
content.alertOpt.alertTarget[].alertInfo[].targets array<object> Stored configuration: notification method/severity action array for member mode.
content.alertOpt.alertTarget[].alertInfo[].targets[] object Stored configuration: single severity action.
content.alertOpt.alertTarget[].alertInfo[].targets[].status string Stored configuration: required severity selection: fatal, critical, error, warning, nodata, info; use uppercase ALL for all; separate multiple values with English commas and no spaces. For security sources, use critical, high, medium, low, info, or ALL.
content.alertOpt.alertTarget[].alertInfo[].targets[].df_source string Stored configuration: optional; the public target structure supports only security. When omitted, the execution layer excludes security sources.
content.alertOpt.alertTarget[].alertInfo[].targets[].to array<string> Stored configuration: in member mode, commonly email, sms, or notify_ notification targets, indicating the notification method; the execution layer also supports direct account/team and other targets, but it is recommended to prefer the combination of memberInfo and notification methods.
content.alertOpt.alertTarget[].alertInfo[].targets[].to[] string Stored configuration: in member mode, commonly email/sms/notify_; in status mode, use acnt_/agent_/group_/notify_ or email addresses. Whether channels such as SMS are available depends on the site and target configuration.
content.alertOpt.alertTarget[].alertInfo[].targets[].tags object Stored configuration: in status mode, filter events by field values; in member mode, use the parent alertInfo.filterString; tags here are not used as member selection conditions.
content.alertOpt.alertTarget[].alertInfo[].targets[].tags. array<object> Stored configuration: array of match values for a single field.
content.alertOpt.alertTarget[].alertInfo[].targets[].tags.[] string Stored configuration: single match value.
content.alertOpt.alertTarget[].alertInfo[].targets[].filterString string Stored configuration: in status mode, when non-empty, takes precedence over tags and is used for escalation actions; in member mode, use the parent alertInfo.filterString; fields within this target are not valid filtering entries.
content.alertOpt.alertTarget[].alertInfo[].targets[].upgradeTargets array<object> Stored configuration: optional escalation actions; executed after an event remains at the corresponding severity for duration; [] means no escalation is configured.
content.alertOpt.alertTarget[].alertInfo[].targets[].upgradeTargets[] object Stored configuration: single escalation action.
content.alertOpt.alertTarget[].alertInfo[].targets[].upgradeTargets[].to array<string> Stored configuration: in member mode, escalation recipient members/teams; in status mode, escalation notification targets, which can be members/teams/notification targets/email addresses.
content.alertOpt.alertTarget[].alertInfo[].targets[].upgradeTargets[].to[] string Stored configuration: single escalation recipient identifier.
content.alertOpt.alertTarget[].alertInfo[].targets[].upgradeTargets[].duration integer Stored configuration: required duration in seconds; each escalation is configured relative to the event's continuous state; multiple durations are not automatically accumulated.
content.alertOpt.alertTarget[].alertInfo[].targets[].upgradeTargets[].toWay array<string> Stored configuration: member escalation notification method array; not used in status mode.
content.alertOpt.alertTarget[].alertInfo[].targets[].upgradeTargets[].toWay[] string Stored configuration: single escalation notification method.
content.alertOpt.aggType string Stored configuration: v2 optional mode: byFields rule aggregation, byCluster intelligent aggregation, byAI AI aggregation, byCustom custom field rule aggregation. If omitted or null, the historical aggFields logic applies; aggregation still requires aggInterval>0.
content.alertOpt.ignoreOK boolean Stored configuration: v2 optional; ignore normal-severity notifications; default false.
content.alertOpt.aggSendFirst boolean Stored configuration: v2 optional; whether to send the first item immediately during aggregation; default false; when aggInterval=0 it does not constitute valid aggregation.
content.creatorInfo object Identity display information; {} when there is no match; the following fields are optional depending on the identity.
content.creatorInfo.uuid string Account UUID; may be omitted.
content.creatorInfo.status integer Account record status.
content.creatorInfo.wsAccountStatus integer Workspace account status.
content.creatorInfo.username string Login name.
content.creatorInfo.name string Display name.
content.creatorInfo.iconUrl string Avatar URL; may be omitted.
content.creatorInfo.email string Email address or system identity display value.
content.creatorInfo.mobile string Mobile number; may be empty.
content.creatorInfo.countryCode string Country/region code; may be omitted.
content.creatorInfo.acntWsNickname string Workspace nickname; may be omitted.
content.updatorInfo object Identity display information; {} when there is no match; the following fields are optional depending on the identity.
content.updatorInfo.uuid string Account UUID; may be omitted.
content.updatorInfo.status integer Account record status.
content.updatorInfo.wsAccountStatus integer Workspace account status.
content.updatorInfo.username string Login name.
content.updatorInfo.name string Display name.
content.updatorInfo.iconUrl string Avatar URL; may be omitted.
content.updatorInfo.email string Email address or system identity display value.
content.updatorInfo.mobile string Mobile number; may be empty.
content.updatorInfo.countryCode string Country/region code; may be omitted.
content.updatorInfo.acntWsNickname string Workspace nickname; may be omitted.
content.permissionSetInfo object Provided when permissionSet exists; a display profile map keyed by subject identifier; may be {} when no subject matches.
content.permissionSetInfo. object For accounts, an account profile; for roles/teams, usually name and status.
content.permissionSetInfo..uuid string Account UUID; may be omitted.
content.permissionSetInfo..status integer Account record status.
content.permissionSetInfo..wsAccountStatus integer Workspace account status.
content.permissionSetInfo..username string Login name.
content.permissionSetInfo..name string Display name.
content.permissionSetInfo..iconUrl string Avatar URL; may be omitted.
content.permissionSetInfo..email string Email address or system identity display value.
content.permissionSetInfo..mobile string Mobile number; may be empty.
content.permissionSetInfo..countryCode string Country/region code; may be omitted.
content.permissionSetInfo..acntWsNickname string Workspace nickname; may be omitted.
content.allow_operation boolean or null Custom operation permission determination; null means not enabled, and API permissions still apply; true/false is the custom determination for the current identity.
content.invalidCustomDateUUIDs array<string> UUIDs of date configurations found to be deleted; references that were not found are not guaranteed to be included.
content.invalidCustomDateUUIDs[] string Single date configuration UUID.
content.invalidTargetUUIDs array<string> Identifiers of accounts, teams, or notification targets confirmed to be invalid during the query; not guaranteed to cover all missing targets.
content.invalidTargetUUIDs[] string Single target identifier.
content.notifyObjectName object Map from target identifier to display name; may also include members, teams, and email/channel.
content.notifyObjectName. string Corresponding display name.
content.notifyObjectInfos object Map from target identifier to target profile; fields vary by account/team/notification target/email channel.
content.notifyObjectInfos. object Accounts may have a complete summary; teams/notification targets usually have uuid/name/status; email channels usually have name/email/status.
content.notifyObjectInfos..uuid string Account UUID; may be omitted.
content.notifyObjectInfos..status integer Account record status.
content.notifyObjectInfos..wsAccountStatus integer Workspace account status.
content.notifyObjectInfos..username string Login name.
content.notifyObjectInfos..name string Display name.
content.notifyObjectInfos..iconUrl string Avatar URL; may be omitted.
content.notifyObjectInfos..email string Email address or system identity display value.
content.notifyObjectInfos..mobile string Mobile number; may be empty.
content.notifyObjectInfos..countryCode string Country/region code; may be omitted.
content.notifyObjectInfos..acntWsNickname string Workspace nickname; may be omitted.
content.customDateName object Map from date configuration UUID to name.
content.customDateName. string Date configuration name.
content.refCheckerInfo array<object> Flat Monitor/SLO binding array.
content.refCheckerInfo[].uuid string Monitor/SLO UUID.
content.refCheckerInfo[].name string Monitor/SLO name.
content.refCheckerInfo[].type string Types such as trigger/self_built_trigger/smartMonitor/aiMonitor/slo.
content.refCheckerInfo[].status integer Record enabled/disabled status.
content.refCheckerInfo[].jsonScript object Type summary when a Monitor exists; may be omitted for SLO.
content.refCheckerInfo[].jsonScript.type string or null Monitor detection type summary.
content.refSecurityRuleInfo array<object> Flat security rule binding array.
content.refSecurityRuleInfo[].uuid string Security rule UUID.
content.refSecurityRuleInfo[].name string Security rule name.
content.refSecurityRuleInfo[].type string Security rule type, such as cspm/siem/aba.
content.refSecurityRuleInfo[].status integer Rule status; the raw relationship may include deleted rules.
content.declaration object or null Workspace public declaration for non-empty results; not attached for empty objects.
{
  "code": 200,
  "content": {
    "id": 42,
    "uuid": "altpl_example",
    "workspaceUUID": "wksp_example",
    "name": "Production service alerts",
    "desc": "Production service anomaly notifications and escalations.",
    "alertOpt": {
      "alertType": "status",
      "aggInterval": 0,
      "silentTimeout": 900,
      "alertTarget": [
        {
          "name": "Default notification",
          "targets": [
            {
              "status": "critical",
              "to": [
                "notify_example"
              ]
            }
          ]
        }
      ]
    },
    "ruleTimezone": "Asia/Shanghai",
    "score": 0,
    "openPermissionSet": false,
    "permissionSet": [],
    "status": 0,
    "creator": "wsak_example",
    "updator": "",
    "createAt": 1785430800,
    "updateAt": -1,
    "deleteAt": -1,
    "invalidCustomDateUUIDs": [],
    "invalidTargetUUIDs": [],
    "notifyObjectName": {
      "notify_example": "Production bot"
    },
    "notifyObjectInfos": {
      "notify_example": {
        "uuid": "notify_example",
        "name": "Production bot",
        "status": 0
      }
    },
    "customDateName": {},
    "creatorInfo": {},
    "updatorInfo": {},
    "allow_operation": null,
    "refCheckerInfo": [],
    "refSecurityRuleInfo": [],
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

When no policy is found

{
  "code": 200,
  "content": {},
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Response

For authentication, rate limiting, and common request errors, see Common Error Definitions.

HTTP Status errorCode Trigger Condition Message or Response Description Handling
500 ft.InternalServerError Failed to read the policy and associated data Internal error Retry later; if it persists, provide the traceId.

Feedback

Is this page helpful?