服务组编辑。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求头

该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。

请求语法

POST /services/group/modify HTTP/1.1

请求参数

名称 类型 位置 是否必选 示例值 描述
Object Body

A short description of struct

serviceGroupId Long Body 1

服务组ID

enableWebhook String Body ENABLE

是否开启webhook 0关闭 1开启

webhookType String Body WEIXINGROUP

WEIXIN_GROUP 微信群 DING_GROUP 钉群

webhookLink String Body wwwwwww

webhook跳转地址

serviceGroupName String Body 我的服务组

服务组名字

serviceGroupDescription String Body 服务组描述

服务组描述

userIds Array of Long Body 55

用户ID

monitorSourceTemplates Array Body

消息模版列表

templateId Long Body 1111

消息模版ID

monitorSourceId Long Body 11111

监控源ID

monitorSourceName String Body zabbix

监控源名字

templateContent String Body 内容

模版内容

clientToken String Body C4BE3837-1A13-413B-A225-2C88188E8A43

幂等号

返回数据

名称 类型 示例值 描述
requestId String C4BE3837-1A13-413B-A225-2C88188E8A43

Id of the request

示例

请求示例

POST /services/group/modify HTTP/1.1
Host:gemp.aliyuncs.com
Content-Type:application/json

{
  "serviceGroupId" : 1,
  "enableWebhook" : "ENABLE",
  "webhookType" : "WEIXINGROUP",
  "webhookLink" : "wwwwwww",
  "serviceGroupName" : "我的服务组",
  "serviceGroupDescription" : "服务组描述",
  "userIds" : [ 55 ],
  "monitorSourceTemplates" : [ {
    "templateId" : 1111,
    "monitorSourceId" : 11111,
    "monitorSourceName" : "zabbix",
    "templateContent" : "内容"
  } ],
  "clientToken" : "C4BE3837-1A13-413B-A225-2C88188E8A43"
}

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<UpdateServiceGroupResponse>
    <requestId>C4BE3837-1A13-413B-A225-2C88188E8A43</requestId>
</UpdateServiceGroupResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "requestId" : "C4BE3837-1A13-413B-A225-2C88188E8A43"
}

错误码

HttpCode 错误码 错误信息 描述
400 ServiceGroupNotExisted The service group does not exist. 服务组不存在
400 EditServiceGroupFail Failed to edit the service group. 编辑服务组失败
400 ServiceGroupWebHookLinkAlreadyExisted The webhook link is already in use. webhooklink已经被使用
400 ServiceGroupNameAlreadyExisted The service group name is already in use. 服务组名字已经被使用

访问错误中心查看更多错误码。

访问错误中心查看更多错误码。