Hi...
I'm searching for a way to manage the provision setting using REST api. Enable/Disable.
I have searched in the REST API documentation and have not been able to see any REST API commands to manage Provision settings. I can only find documentation in Command Line API for this function.
Commandline API ex.
#Disable Prov
provisionserverenable false
#Disable SIP
systemsetting sipenable False
#Enable Prov
provisionserverenable true
This will initiate the endpoint to SIP register.
Is there any undocumented commands that could be used?
My goal is to easy re-register SIP and H323 (without restarting the endpoint), for devices that is configured SIP and H323 settings using provisioning.
/Dan
Solved! Go to Solution.
Hi all..
NOTE: This not in the documentation, so use at own risk. Remember to TEST TEST.
Just to follow-up on my own question. With some help and web browser debugging I manage to find the REST API command.
I used this as a base script:
https://community.poly.com/t5/Video-Endpoints/help-with-REST-API-for-G7500/m-p/111586#M14453
$rebootURL - Remember to use the correct URL for the settings. ex. Provision is "/rest/config": $rebootURL = ("https://" + $IP + "/rest/config");
$rebootBody - I used the below defined JSON vars instead for each command.
Defined some JSON vars:
$jsonEnableProvision = @"
{
"vars":[
{
"name": "management.provisioning.enabled",
"value": "True"
}
]
}
"@
$jsonDisableProvision = @"
{
"vars":[
{
"name": "management.provisioning.enabled",
"value": "False"
}
]
}
Hello @Dan Hemsø
please open a ticket and I can see if I can find out.
Let me know the ticket number via Email
Best Regards
Steffen Baier
If official support is required please check how to phone or open a case here
----------------Hi all..
NOTE: This not in the documentation, so use at own risk. Remember to TEST TEST.
Just to follow-up on my own question. With some help and web browser debugging I manage to find the REST API command.
I used this as a base script:
https://community.poly.com/t5/Video-Endpoints/help-with-REST-API-for-G7500/m-p/111586#M14453
$rebootURL - Remember to use the correct URL for the settings. ex. Provision is "/rest/config": $rebootURL = ("https://" + $IP + "/rest/config");
$rebootBody - I used the below defined JSON vars instead for each command.
Defined some JSON vars:
$jsonEnableProvision = @"
{
"vars":[
{
"name": "management.provisioning.enabled",
"value": "True"
}
]
}
"@
$jsonDisableProvision = @"
{
"vars":[
{
"name": "management.provisioning.enabled",
"value": "False"
}
]
}