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.
Solved! Go to solution.
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.
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:
Please help me in this
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:
Please help me in this
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: