Trying to construct an API request for the ‘show current-config all’ CLI command but not sure if this is possible for the SEMP API. Does anyone know if this is possible?
Here is what I have tried with python.
requestBody = "<rpc><show><current-config><all/></current-config></show></rpc>"
requestResponseObject = requests.get('http://'+brokerDNS+':8080/SEMP', auth=(user,passw), verify=False, data=requestBody)
This has worked for show redundancy/config-sync …etc but this one I’ve tried many different options with no luck.
I can’t seem to find any other appropriate request body commands when looking at the schema API URL:
http://brokerDNS:8080/SEMP/v1/requestSchema.xsd
'''
I know this CLI command does take some time as it returns the entire config for the broker, so this could be the reason or SEMP simply doesn't allow it.
Any suggestions? Thanks