云服务器内容精选

  • 请求示例 HTTP的示例 POST /controller/campus/v3/profile/escape/batch-delete HTTP/1.1 Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-AC CES S-TOKEN: x-yyyyyy { "ids" : [ "4f350825-919c-47b7-b853-f51f15912396" ] }
  • 响应示例 返回状态码为200:删除逃生模板的返回信息。 HTTP/1.1 200 OK Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "", "success" : [ "4f350825-919c-47b7-b853-f51f15912396" ], "fail" : [ { "errcode" : "0302000020", "errmsg" : "The amount of deleting escape template exceeds the maximum limit.", "data" : "4f350825-919c-47b7-b853-f51f15912392" } ] } 返回状态码为400:校验异常。 HTTP/1.1 400 Bad Request Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 响应示例 返回状态码为200:成功更新的逃生模板信息。 HTTP/1.1 200 OK Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "", "data" : { "id" : "fbde1c5d-5b94-49e3-a912-48641015e45c", "name" : "ESCAPETemplate1", "vlanId" : 1, "description" : "ESCAPETemplate1", "securityGroupId" : "4f350825-919c-47b7-b853-f51f15912396", "ipv4RuleList" : [ { "protocol" : "tcp", "dstIp" : "192.168.2.0/24", "dstPort" : "24", "description" : "Rule1" } ], "ipv6RuleList" : [{"protocol":"tcp","dstIp":"FC00::01/7","dstPort":"24","description":"Rule1"}] } } 返回状态码为400:校验异常。 HTTP/1.1 400 Bad Request Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求示例 HTTP的示例 PUT /controller/campus/v3/profile/escape/fbde1c5d-5b94-49e3-a912-48641015e45c HTTP/1.1 Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-ACCESS-TOKEN: x-yyyyyy { "name" : "ESCAPETemplate1", "vlanId" : 1, "description" : "ESCAPETemplate1", "securityGroupId" : "4f350825-919c-47b7-b853-f51f15912396", "ipv4RuleList" : [ { "protocol" : "tcp", "dstIp" : "192.168.2.0/24", "dstPort" : "24", "description" : "Rule1" } ], "ipv6RuleList" : [{"protocol":"tcp","dstIp":"FC00::01/7","dstPort":"24","description":"Rule1"}] }
  • 响应参数 返回状态码为200:查询返回的逃生模板信息。 表2 QueryEscapeResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" totalRecords integer - - 查询匹配到的逃生模板总数。 1 pageIndex integer - - 分页查询,起始值。 0 pageSize integer - - 分页查询,每页数量。 20 data ARRAY_REFERENCE 0-100个列表项,详细请参见表5。 返回的逃生模板记录信息。 - 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为200:查询返回的逃生模板信息。 HTTP/1.1 200 OK Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "", "totalRecords" : 1, "pageIndex" : 0, "pageSize" : 20, "data" : [ { "id" : "fbde1c5d-5b94-49e3-a912-48641015e45c", "name" : "ESCAPETemplate1", "vlanId" : 1, "description" : "ESCAPETemplate1", "securityGroupId" : "4f350825-919c-47b7-b853-f51f15912396", "ipv4RuleList" : [ { "protocol" : "tcp", "dstIp" : "192.168.2.0/24", "dstPort" : "24", "description" : "Rule1" } ], "ipv6RuleList" : [{"protocol":"tcp","dstIp":"FC00::01/7","dstPort":"24","description":"Rule1"}] } ] } 返回状态码为400:校验异常。 HTTP/1.1 400 Bad Request Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求示例 HTTP的示例 GET /controller/campus/v3/profile/escape?pageIndex=10&pageSize=20 HTTP/1.1 Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-ACCESS-TOKEN: x-yyyyyy
提示

您即将访问非华为云网站,请注意账号财产安全