Dell Technologies ECS REST API

Search (SHIFT+S)




Update Alert Policy

PUT /vdc/alertpolicy/{policyName}

Updates the given Alert Policy with the given payload

policyNamepolicyName String

Required Roles

This call has no restrictions.


Request Payload

No Request Payload


Response Body


Examples

Request
PUT https://192.168.0.0:4443/vdc/alertpolicy/my%20RPO%20Policy

HTTP/1.1
Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
<alert_policy>
  <policyName>my RPO Policy</policyName>
  <metricType>Geo Replication Statistics</metricType>
  <metricName>RPO</metricName>
  <createdBy>USER</createdBy>
  <isEnabled>true</isEnabled>
  <isPerInstanceMetric>false</isPerInstanceMetric>
  <period>12000000</period>
  <periodUnits>MILLISECONDS</periodUnits>
  <datapointsToConsider>1</datapointsToConsider>
  <datapointsToAlert>1</datapointsToAlert>
  <statistic>MAX</statistic>
  <operator>GREATER_THAN</operator>
  <condition>
    <thresholdUnits>HOURS</thresholdUnits>
    <thresholdValue>1</thresholdValue>
    <severityType>WARNING</severityType>
  </condition>
</alert_policy>
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<alert_policy>
  <policyName>my RPO Policy</policyName>
  <metricType>Geo Replication Statistics</metricType>
  <metricName>RPO</metricName>
  <createdBy>USER</createdBy>
  <isEnabled>true</isEnabled>
  <isPerInstanceMetric>false</isPerInstanceMetric>
  <period>12000000</period>
  <periodUnits>MILLISECONDS</periodUnits>
  <datapointsToConsider>1</datapointsToConsider>
  <datapointsToAlert>1</datapointsToAlert>
  <statistic>MAX</statistic>
  <operator>GREATER_THAN</operator>
  <condition>
    <thresholdUnits>HOURS</thresholdUnits>
    <thresholdValue>1</thresholdValue>
    <severityType>WARNING</severityType>
  </condition>
</alert_policy>