Developer Community

Reply
New Contributor

How to set the controller discovery to static using API on the Mobility Master

Trying to automate all AP deployment within our organization I am working with the API on our Mobility Master (ArubaMM-VA,8.2.1.1)

 

I have been succesfully renaming(ap_rename call) APs using the API and also regrouping(ap_regroup) the AP is working well.

 

I thought that the API function (ap_prov) would help me setting the controller discovery to static, but even though I get a succesful respons, It doesn't really seem to do anything.

 

This is the response I get from the API, but it doesn't set my controller discovery to static.

 

{
"ap_prov": {
"ap_name": {
"ap-name": "a8:bd:27:c5:ce:78",
"_result": {
"status": 0,
"status_str": "NOTE: For cert RAP; ap-name (if specified) in RAP whitelist entry will take the highest preference"
}
},
"ap_group": {
"ap-group": "ag-TESTGROUP",
"_result": {
"status": 0,
"status_str": ""
}
},
"master": {
"master": "10.0.1.15",
"_result": {
"status": 0,
"status_str": ""
}
},
"_result": {
"status": 0,
"status_str": ""
}
},
"_global_result": {
"status": 0,
"status_str": "Success",
"_pending": false
}
}

 

Hopefully one of you can help me with this. 

Aruba Employee

Re: How to set the controller discovery to static using API on the Mobility Master

Hi,

Check out the work around for changing the controller discovery to static while provisioning an AP mentioned below.

 

Method:

POST

 

Request URL

https://<enter-mm-ip>/v1/configuration/object?config_path=/md&UIDARUBA=<uidaruba>

 

Request Body (JSON):

{
"_list": [
[

{
"copy_provisioning_params": {
"_action": "modify",
"ap-name": "<enter -ap-name>",
"copy_provisioning_options": "ap-name"
}
},
{
"set_trust_anchor": {
"_action": "noop"
}
},
{
"ap_prov": {
"_action": "modify",
"master": {
"_action": "modify",
"master": "<enter-controller-ip-where-AP-terminates>"
}
}
},
{
"ap_reprovision": {
"_action": "modify",
"ap-name": "<ente-ap-name>",
"reprovision_option": "ap-name"
}
}
]
]
}

 

Regards,

Jay

 

Highlighted
New Contributor

Re: How to set the controller discovery to static using API on the Mobility Master

Thanks alot, the reprovision did the job :)

Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: