-
请求示例 HTTP的示例 GET /controller/campus/v1/networkservice/networkconfig/net/time/sites/fbb684c8-0d37-496f-bafa-4b06db151e2e/times 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
-
响应示例 返回状态码为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" : {
"timezoneId" : "d3dcf87e-8c14-4ba8-bb23-2ccc4451b845",
"enableDaylight" : false,
"ntpList" : ["10.0.0.2","10.0.0.5"],
"enableTimeSync" : true
}
}
-
URI /controller/campus/v1/networkservice/networkconfig/net/time/sites/{siteId}/times 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 是 string - - 站点ID,格式为UUID格式。 "fbb684c8-0d37-496f-bafa-4b06db151e2e"
-
URI /controller/campus/v1/networkservice/networkconfig/net/time/sites/{siteId}/times 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 是 string - - 站点ID,格式为UUID格式。 "fbb684c8-0d37-496f-bafa-4b06db151e2e"
-
请求示例 HTTP的示例 PUT /controller/campus/v1/networkservice/networkconfig/net/time/sites/fbb684c8-0d37-496f-bafa-4b06db151e2e/times 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
{
"timezoneId" : "d3dcf87e-8c14-4ba8-bb23-2ccc4451b845",
"enableDaylight" : false,
"ntpList" : ["10.0.0.2","10.0.0.5"],
"enableTimeSync" : true
}
-
响应示例 返回状态码为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" : {
"timezoneId" : "d3dcf87e-8c14-4ba8-bb23-2ccc4451b845",
"enableDaylight" : false,
"ntpList" : ["10.0.0.2","10.0.0.5"],
"enableTimeSync" : true
}
}
-
响应示例 返回状态码为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" : {
"timezoneId" : "d3dcf87e-8c14-4ba8-bb23-2ccc4451b845",
"enableDaylight" : false,
"ntpList" : ["10.0.0.2","10.0.0.5"],
"enableTimeSync" : true
}
}
-
URI /controller/campus/v1/networkservice/networkconfig/net/time/site-templates/{siteTemplateId}/times 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteTemplateId 是 string - - 站点模板ID,格式为UUID格式。 "fbb684c8-0d37-496f-bafa-4b06db151e2e"
-
请求示例 HTTP的示例 GET /controller/campus/v1/networkservice/networkconfig/net/time/site-templates/fbb684c8-0d37-496f-bafa-4b06db151e2e/times 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:查询成功。 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" : "d3dcf87e-8c14-4ba8-bb23-2ccc4451b845",
"nameCn" : "(UTC)协调世界时,加那利群岛",
"nameEn" : "(UTC)UTC,Canary Islands",
"timezoneUtcOffset" : "0"
}
]
}
-
请求示例 HTTP的示例 GET /controller/campus/v1/networkservice/networkconfig/net/timezones 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:查询成功。 表1 TimezoneRespDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "" data ARRAY_REFERENCE 详细请参见表2。 所有时区资源。 - 表2 TimezoneDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 id string - - 时区ID,字符串格式为UUID。 "d3dcf87e-8c14-4ba8-bb23-2ccc4451b845" nameCn string 1~128个字符。 - 时区名称(中文) "(UTC)协调世界时,加那利群岛" nameEn string 1~128个字符。 - 时区名称(英文)。 "(UTC)UTC,Canary Islands" timezoneUtcOffset string 1~4个字符。 - 时区区号。 "0"
-
URI /controller/campus/v1/networkservice/networkconfig/net/time/site-templates/{siteTemplateId}/times 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteTemplateId 是 string - - 站点模板ID,格式为UUID格式。 "fbb684c8-0d37-496f-bafa-4b06db151e2e" 表2 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 isForceOverride 否 boolean true false - 是否强制覆盖。 true
-
响应示例 返回状态码为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" : {
"timezoneId" : "d3dcf87e-8c14-4ba8-bb23-2ccc4451b845",
"enableDaylight" : false,
"ntpList" : ["10.0.0.2","10.0.0.5"],
"enableTimeSync" : true
}
}
-
请求示例 HTTP的示例 PUT /controller/campus/v1/networkservice/networkconfig/net/time/site-templates/fbb684c8-0d37-496f-bafa-4b06db151e2e/times?isForceOverride=true 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
{
"timezoneId" : "d3dcf87e-8c14-4ba8-bb23-2ccc4451b845",
"enableDaylight" : false,
"ntpList" : ["10.0.0.2","10.0.0.5"],
"enableTimeSync" : true
}