This section provides the Representational State Transfer Configuration Protocol (RESTCONF) API sections for the MLT CLI command.
To access the top-level interfaces resource within the openconfig-interfaces YANG model, use the following URL:
https://$ip:8080/rest/restconf/data/openconfig-interfaces:interfaces/interface=%s/config
Use this API operation to do the following:
Enable or disable Flex-UNI.
Sample server response:
{ "openconfig-interfaces:config": { "flex-uni": true, } }
To access the top-level interfaces resource within the openconfig-interfaces YANG model, use the following URLs:
https://$ip:8080/rest/restconf/data/openconfig-interfaces:interfaces/interface=%s/config https://$ip:8080/rest/restconf/data/openconfig-interfaces:interfaces/interface=%s/state
Use this API operation to do the following:
Get interface configuration.
Get URLs available in RESTCONF Phase 1.
Sample server response:
Based on Yang Model