RESTCONF VOSS <key> Value for Interface
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎02-08-2024 06:50 AM
Hi, I am trying to programatically pull data via REST API to my device. I was able to get authenticated properly and place the token in my GET Request. My issue is figuring out what to place in the <key> variable for interface 1/1 for example.
E.g.:
http://<IP>:8080/rest/restconf/data/openconfig-platform:components/component=1/1
I get:
{
"ietf-restconf:errors": {
"error": [
{
"error-message": "Invalid URL: /data/openconfig-platform:components/component=1/1",
"error-tag": "unknown-namespace",
"error-type": "protocol"
}
]
}
}
It works for everything else, so maybe I need an escape character for the interface because of the "1/1".
Thanks,
0 REPLIES 0
