Get the information of access points under the configuration chnages

Solved
Paramehswari
Comes here often

Get the information of access points under the configuration chnages

I want to get the information of the access points whenever they add the devices in the access point. I want get the information from the path Organization>Monitor>Configuration change>Network>add devices by using the powershell api.

1 Accepted Solution
PhilipDAth
Kind of a big deal
Kind of a big deal

I think what you are asking is - how do you scan the organisation change log for devices that have been added.

You would use this API call:
https://developer.cisco.com/meraki/api-v1/get-organization-configuration-changes/ 

ps. Using powershell is a hard way of doing this.  Consider using the Meraki Python SDK instead.

View solution in original post

6 Replies 6
GreenMan
Meraki Employee
Meraki Employee

It's not 100% clear to me what information you need, but maybe this is the API endpoint you need...?

https://developer.cisco.com/meraki/api-v1/get-organization-devices/

It will list all the devices claimed into the Organization with the OrgID that you include in your API call

I used this script also to get the switch port detail 

$apiKey = "{APIKEY}"

$url = "https://n121.meraki.com/api/v1/networks/{networkID}/clients/{clientID}"

$headers = @{
"X-Cisco-Meraki-API-Key" = $apikey

}


$response = Invoke-RestMethod -Uri $url -Headers $headers -Method Get


$response

But I didn't get the any port details 

 

OUTPUT:

Paramehswari_0-1714121413000.png

 

Please help me in this

PhilipDAth
Kind of a big deal
Kind of a big deal

I think what you are asking is - how do you scan the organisation change log for devices that have been added.

You would use this API call:
https://developer.cisco.com/meraki/api-v1/get-organization-configuration-changes/ 

ps. Using powershell is a hard way of doing this.  Consider using the Meraki Python SDK instead.

Thanks for the solution. but I have another issue.

 

I used this script also to get the switch port detail 

$apiKey = "{APIKEY}"

$url = "https://n121.meraki.com/api/v1/networks/{networkID}/clients/{clientID}"

$headers = @{
"X-Cisco-Meraki-API-Key" = $apikey

}


$response = Invoke-RestMethod -Uri $url -Headers $headers -Method Get


$response

But I didn't get the any port details 

 

OUTPUT:

Paramehswari_1-1714121453869.png

 

Please help me in this

GreenMan
Meraki Employee
Meraki Employee

Depending on exactly what you need, you're probably looking for an endpoint like this one:

https://developer.cisco.com/meraki/api-v1/get-device-switch-ports-statuses/

 

I have tried but getting the bad request below is the screen shot:

Paramehswari_0-1714387806148.png

 

Get notified when there are additional replies to this discussion.
Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.