# URL Capability examples

**URL:** <https://dmap-community.ductus.global/t/url-capability-examples/1533>\
**Category:** NETCONF\
**Created:** [September 19, 2017, 4:50am UTC](https://dmap-community.ductus.global/t/url-capability-examples/1533 "2017-09-19T04:50:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cohult](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/cohult/32/221_2.png) [@cohult](https://dmap-community.ductus.global/u/cohult)\
**Post date:** [September 19, 2017, 11:13am UTC](https://dmap-community.ductus.global/t/url-capability-examples/1533/2 "2017-09-19T11:13:52Z")

</div>

Not sure how this relates to what is configured on your device, but you can try something like this:

confd.conf example :url setting:

```
...
</capabilities>
...
  <url>
    <enabled>true</enabled>
    <file>
      <enabled>true</enabled>
      <rootDir>/my/dir</rootDir>
    </file>
    <ftp>
      <enabled>true</enabled>
    </ftp>
    <sftp>
      <enabled>true</enabled>
    </sftp>
  </url>
</capabilities>
...

```

edit-config from file to running:

```
<edit-config>
  <target>
    <running/>	
  </target>
  <url>file:///my-new-cfg.xml</url>
</edit-config>

```

edit-config from ftp server file to running:

```
<edit-config>
  <target>
    <running/>	
  </target>
  <url>ftp://myusr:mypass@localhost/my-new-cfg.xml</url>
</edit-config>

```

copy-config from running to file:

```
<copy-config>
  <target>
    <url>file:///my-backup.xml</url>
  </target>
  <source>
    <running/>	
  </source>
</copy-config>

```

copy-config from file to running:

```
<copy-config>
  <target>
    <running/>	
  </target>
  <source>
    <url>file:///my-new-config.xml</url>
  </source>
</copy-config>

```

copy-config from running to ftp server file

```
<copy-config>
  <target>
    <url>ftp://myusr:mypass@localhost/my-backup.xml</url>
  </target>
  <source>
    <running/>
  </source>
</copy-config>

```

copy-config from ftp server file to running:

```
<copy-config>
  <target>
    <running/>
  </target>
  <source>
    <url>ftp://myusr:mypass@localhost/my-new-config.xml</url>
  </source>
</copy-config>

```

delete-config file:

```
<delete-config>
  <target>
    <url>file:///my-config.xml</url>
  </target>
</delete-config>

```

delete-config ftp server file:

```
<delete-config>
  <target>
    <url>ftp://myusr:mypass@localhost/my-config.xml</url>
  </target>
</delete-config>

```

ConfD does not support validate from an URL. See “:url” in ConfD UG Chapter 15.2. Capabilities for details.

---

_[View the full topic](https://dmap-community.ductus.global/t/url-capability-examples/1533)._
