This section provides a sample of binding a URL template to a Portal server template and encrypting parameters in the URL template using the merge method.
Operation |
XPATH |
---|---|
edit-config:merge |
/huawei-aaa-portal:portal/portal-server/url-template/name /huawei-aaa-portal:portal/portal-server/url-template/ciphered-parameter-name /huawei-aaa-portal:portal/portal-server/url-template/iv-parameter-name /huawei-aaa-portal:portal/portal-server/url-template/key |
Item |
Data |
Description |
---|---|---|
name |
huawei |
Configure the Portal server template named huawei. |
url-template |
abc |
Configure the URL template named abc. |
ciphered-parameter-name |
key1 |
Configure the name of the encrypted URL template parameter to key1. |
iv-parameter-name |
iv2 |
Configure the encryption vector name of the URL template parameter to iv2. |
key |
huawei@123 |
Set the encryption key for encrypting the URL template parameter to huawei@123. |
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <running/> </target> <config> <hw-aaa-portal:portal xmlns:hw-aaa-portal="urn:huawei:params:xml:ns:yang:huawei-aaa-portal"> <hw-aaa-portal:portal-server> <hw-aaa-portal:name>huawei</hw-aaa-portal:name> <hw-aaa-portal:url-template> <hw-aaa-portal:name>abc</hw-aaa-portal:name> <hw-aaa-portal:ciphered-parameter-name>key1</hw-aaa-portal:ciphered-parameter-name> <hw-aaa-portal:iv-parameter-name>iv2</hw-aaa-portal:iv-parameter-name> <hw-aaa-portal:key>huawei@123</hw-aaa-portal:key> </hw-aaa-portal:url-template> </hw-aaa-portal:portal-server> </hw-aaa-portal:portal> </config> </edit-config> </rpc>
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0"> <ok/> </rpc-reply>
Sample of failed response
<?xml version='1.0' encoding='UTF-8'?> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="18"> <rpc-error> <error-app-tag>-1</error-app-tag> <error-message>Exec cmd url template error</error-message> <error-info>Error on node /huawei-aaa-portal:portal/portal-server[name="huawei"]/url-template/name</error-info> </rpc-error> </rpc-reply>