-
URI /restconf/data/huawei-nce-aoc-config-template-application:template-application/{template-application-id} 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 template-application-id 是 string 0~128个字节。 - the identifier of the template application. "a945675d-ccff-4ea3-afb4-8d04ac3100c2"
-
请求示例 HTTP的示例 PUT /restconf/data/huawei-nce-aoc-config-template-application:template-application/{template-application-id}
Host: 192.168.1.125:26335
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-AUTH-TOKEN: x-yyyyyy
{
"huawei-nce-aoc-config-template-application:template-application":[
{
"template-application-id":{{app-id}},
"device": [
{
"device-id": "8d394835-cb84-38f3-a4d5-36a7f2074b50"
}
],
"template": [
{
"template-id": "a76c5de4-de30-4c2f-a358-42bf89e3b788"
}
]
}
]
}
-
响应示例 返回状态码为204:Successful operation HTTP/1.1 204 No Content
Date: Fri,30 Dec 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
返回状态码为400:Internal Error HTTP/1.1 400 Bad Request
Date: Fri,30 Dec 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
-
URI /restconf/data/huawei-nce-aoc-config-template-application:template-application/{template-application-id} 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 template-application-id 是 string 0~128个字节。 - the identifier of the template application. "a945675d-ccff-4ea3-afb4-8d04ac3100c2"
-
请求示例 HTTP的示例 DELETE /restconf/data/huawei-nce-aoc-config-template-application:template-application/a945675d-ccff-4ea3-afb4-8d04ac3100c2 HTTP/1.1
Host: 192.168.1.125:26335
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-AUTH-TOKEN: x-yyyyyy
-
响应示例 返回状态码为204:Successful operation HTTP/1.1 204 No Content
Date: Fri,30 Dec 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
返回状态码为400:Internal Error HTTP/1.1 400 Bad Request
Date: Fri,30 Dec 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
-
响应示例 返回状态码为204:Successful operation HTTP/1.1 204 No Content
Date: Fri,30 Dec 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
返回状态码为400:Internal Error HTTP/1.1 400 Bad Request
Date: Fri,30 Dec 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
-
请求示例 HTTP的示例 PUT /restconf/data/huawei-nce-aoc-config-template-application:template-application/{template-application-id}/template/{template-id}/variable/{variable-name}
Host: 192.168.1.125:26335
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-AUTH-TOKEN: x-yyyyyy
{
"variable":[
{
"variable-name": "v2c",
"variable-value":"valuex"
}
]
}
-
URI /restconf/data/huawei-nce-aoc-config-template-application:template-application/{template-application-id}/template/{template-id}/variable/{variable-name} 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 template-application-id 是 string 0~128个字节。 - the identifier of the template application. "a945675d-ccff-4ea3-afb4-8d04ac3100c2" template-id 是 string 1~128个字节。 - the identifier of the template. "a926f75d-ccff-4ea3-afb4-8d04ac3100c2" variable-name 是 string 1~512个字节。 - name of the variable. "aoc-variable-name"
-
请求示例 HTTP的示例 GET /restconf/data/huawei-nce-aoc-config-template-application:template-application/a945675d-ccff-4ea3-afb4-8d04ac3100c2/device/8d394835-cb84-38f3-a4d5-36a7f2074b49/preview HTTP/1.1
Host: 192.168.1.125:26335
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-AUTH-TOKEN: x-yyyyyy
-
响应示例 返回状态码为200:Successful operation HTTP/1.1 200 OK
Date: Fri,03 Dec 2021 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"huawei-nce-aoc-config-template-application:preview": {
"content": "{\"snmpUser\":{\"usm-user-cmplx-check\":true,\"password-min-length\":12,\"version\":\"v3\"}}{\"interface\":[{\"name\":\"test1\",\"type\":\"GigabitEthernet\",\"level\":\"L3\",\"description\":\"ddd\"}]}{\"te\":{\"global\":{\"teAttributeEnable\":false},\"config-status\":\"initial\",\"affinity-define\":{\"description\":\"dd\"}}}"
}
} 返回状态码为400:Bad Request HTTP/1.1 400 Bad Request
Date: Fri,30 Dec 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
-
响应参数 返回状态码为200:Successful operation 表2 preview-info对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 huawei-nce-aoc-config-template-application:preview REFERENCE 详细请参见表6。 preview - 返回状态码为400:Bad Request 详细信息请参见实际响应消息体。
-
URI /restconf/data/huawei-nce-aoc-config-template-application:template-application/{template-application-id}/device/{device-id}/preview 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 template-application-id 是 string 0~128个字节。 - the identifier of the template application. "a945675d-ccff-4ea3-afb4-8d04ac3100c2" device-id 是 string 0~128个字节。 - the identifier of the device. "8d394835-cb84-38f3-a4d5-36a7f2074b49"
-
请求示例 HTTP的示例 DELETE /restconf/data/huawei-nce-aoc-config-template-application:template-application/a945675d-ccff-4ea3-afb4-8d04ac3100c2/template/a926f75d-ccff-4ea3-afb4-8d04ac3100c2/variable/aoc-variable-name HTTP/1.1
Host: 192.168.1.125:26335
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-AUTH-TOKEN: x-yyyyyy
-
响应示例 返回状态码为204:Successful operation HTTP/1.1 204 No Content
Date: Fri,30 Dec 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
返回状态码为400:Internal Error HTTP/1.1 400 Bad Request
Date: Fri,30 Dec 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive