Logo

Poly OS Rest API Provision option

SOLVED
Dan Hemsø
Advisor

Poly OS Rest API Provision option

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

/Dan
-------------------------
Please remember to answer as "Accept as Solution" if you could use the help.
Message 1 of 3
1 ACCEPTED SOLUTION

Accepted Solutions
Dan Hemsø
Advisor

Re: Poly OS Rest API Provision option

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"
}
]
}
/Dan
-------------------------
Please remember to answer as "Accept as Solution" if you could use the help.

View solution in original post

Message 3 of 3
2 REPLIES 2
SteffenBaierUK
Polycom Employee & Community Manager

Re: Poly OS Rest API Provision option

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

----------------
The title Poly Employee & Community Manager is a community setting and does not reflect my role. I am just a simple volunteer in the community like everybody else. All posts and words are my own & do not represent the views of Employer.

----------------


⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓SIGNATURE ⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓
Notice: This community forum is not an official Poly support resource, thus responses from Poly employees, partners, and customers alike are best-effort in attempts to share learned knowledge.
Please also ensure you always check the VoIP , Video Endpoint , Microsoft Voice , PSTN or other FAQ's in the different sections
Message 2 of 3
Dan Hemsø
Advisor

Re: Poly OS Rest API Provision option

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"
}
]
}
/Dan
-------------------------
Please remember to answer as "Accept as Solution" if you could use the help.
Message 3 of 3