< Home

Configuring the Start Character in the URL

This section provides a sample of configuring the start character in the URL using the merge method. You can also use the create method to configure the start character in the URL.

Table 1 Configuring the start character in the URL

Operation

XPATH

edit-config:merge

/huawei-aaa-portal:portal/url-template/mark-parameter/start-mark

Data Requirement

Table 2 Configuring the start character in the URL

Item

Data

Description

name

url1

Set the start character in the URL to a.

start-mark

a

Request Example

<edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <target>
    <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config>
    <portal xmlns="urn:huawei:params:xml:ns:yang:huawei-aaa-portal">
      <url-template>
        <name>url1</name>
        <mark-parameter>
          <start-mark>a</start-mark>
        </mark-parameter>
      </url-template>
    </portal>
  </config>
</edit-config>

Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_012824316d704d43adb16b1a4245d273">
 <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="32">
  <rpc-error>
    <error-app-tag>-1</error-app-tag>
    <error-message>Invalid mark-parameter start-mark</error-message>
    <error-info>Error on node /huawei-aaa-portal:portal/url-template[name="url1"]/mark-parameter/start-mark</error-info>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >