跳转至

禁用/启用某个 SLO



POST /api/v1/slo/{slo_uuid}/set_disable

概述

路由参数

参数名 类型 必选 说明
slo_uuid string Y 某个 SLO 的 UUID

Body 请求参数

参数名 类型 必选 说明
isDisable boolean Y 开启/禁用,false:开启,true:禁用
允许为空: False

参数补充说明

请求例子

curl 'https://openapi.guance.com/api/v1/slo/monitor_3b7557f9bdf749139fee94a7ecb4da12/set_disable' \
-H 'Content-Type: application/json' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data '{
  "isDisable": false
}'

响应

{
    "code": 200,
    "content": [
        "slo-test8"
    ],
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "TRACE-219C5FF9-00E7-4072-9233-0D9FB49F9A10"
} 

文档评价

文档内容是否对您有帮助? ×