云服务器内容精选

  • 请求示例 HTTP的示例 POST /v1/networkconfig/policy/profiles/vlanpools/action/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:删除VLAN POOL模板成功。 HTTP/1.1 200 OK Date: Sun,16 Feb 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 site ID format is incorrect or the site does not exist", "data" : { "id" : "fbde1c5d-5b94-49e3-a912-48641015e45c", "name" : "VLANPOOLTemplate1", "errmsg" : "The site ID format is incorrect or the site does not exist" } } ] } 返回状态码为207:删除VLAN POOL模板部分成功。 HTTP/1.1 207 Multi-Status Date: Sun,16 Feb 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 site ID format is incorrect or the site does not exist", "data" : { "id" : "fbde1c5d-5b94-49e3-a912-48641015e45c", "name" : "VLANPOOLTemplate1", "errmsg" : "The site ID format is incorrect or the site does not exist" } } ] } 返回状态码为400:删除VLAN POOL模板全部失败。 HTTP/1.1 400 Bad Request Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求示例 HTTP的示例 GET /v1/networkconfig/policy/profiles/vlanpools?name=vlanpool1&pageIndex=1&pageSize=30 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
  • 响应参数 返回状态码为200:查询返回的VLAN POOL模板信息。 表2 QueryVlanpoolRespose对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 1~32个字符。 0 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "" totalRecords int32 [1-1500] - 查询匹配到的VLAN POOL模板总数。 1 pageIndex integer [1-1500] - 分页查询,起始值。 0 pageSize integer [1-100] - 分页查询,每页数量。 20 data ARRAY_REFERENCE 0-100个列表项,详细请参见表4。 返回的VLAN POOL模板记录信息。 - 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为200:查询返回的VLAN POOL模板信息。 HTTP/1.1 200 OK Date: Sun,16 Feb 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" : "VLANPOOLTemplate1", "range" : "2-10,3001", "type" : "even" } ] } 返回状态码为400:校验异常。 HTTP/1.1 400 Bad Request Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • URI /v1/networkconfig/policy/profiles/vlanpools 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 name 否 string 0~64个字符。 - vlan pool名称 "vlanpool1" pageIndex 是 integer [1-1500] 1 当前页码。 "1" pageSize 是 integer [1-100] 20 每页数量。 "30"
  • 请求示例 HTTP的示例 POST /v1/networkconfig/policy/profiles/vlanpools 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" : "VLANPOOLTemplate1", "range" : "2-10,3001", "type" : "even" }
  • 响应示例 返回状态码为201:成功创建的VLAN POOL模板信息。 HTTP/1.1 201 Created Date: Sun,16 Feb 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" : "VLANPOOLTemplate1", "range" : "2-10,3001", "type" : "even" } } 返回状态码为400:校验异常。 HTTP/1.1 400 Bad Request Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 响应示例 返回状态码为200:成功修改的VLAN POOL模板信息。 HTTP/1.1 200 OK Date: Sun,16 Feb 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" : "VLANPOOLTemplate1", "range" : "2-10,3001", "type" : "even" } } 返回状态码为400:校验异常。 HTTP/1.1 400 Bad Request Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求示例 HTTP的示例 PUT /v1/networkconfig/policy/profiles/vlanpools/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" : "VLANPOOLTemplate1", "range" : "2-10,3001", "type" : "even" }
  • 响应示例 返回状态码为200:查询返回被站点或者模板绑定的VLAN POOL模板信息。 HTTP/1.1 200 OK Date: Sun,16 Feb 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" : "VLANPOOLTemplate1", "range" : "2-10,3001", "type" : "even" } ] } 返回状态码为400:校验异常。 HTTP/1.1 400 Bad Request Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 响应参数 返回状态码为200:查询返回被站点或者模板绑定的VLAN POOL模板信息。 表2 QueryObjectVlanpoolRespose对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 1~32个字符。 0 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "" data ARRAY_REFERENCE 0-1500个列表项,详细请参见表4。 返回的被站点或者模板绑定的VLAN POOL模板记录信息。 - 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。
  • 请求示例 HTTP的示例 GET /v1/networkconfig/policy/profiles/vlanpools/objectId?objectId=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