Clarification Regarding API Call Response Timing

Solved
SuperM
Here to help

Clarification Regarding API Call Response Timing

Hi Community,

I need some clarification:

When I make an API call to "/organizations/{organizationId}/uplinks/statuses," and receive a status like "active," "ready," or "failed," is that status representative of the device's current state at the time of the API call, or does the data returned reflect historical information? For example, if I make an API call at 1 pm, will the status of the device returned be based on its state at that time, or from a different time?

Example payload:


{
"networkId": "N_80",
"serial": "Q2CZ-S6JR",
"model": "VMX-L",
"highAvailability": {
"enabled": false,
"role": "primary"
},
"lastReportedAt": "2024-04-30T02:45:23Z",
"uplinks": [
{
"interface": "wan1",
"status": "active",
"ip": "10.11.7.12",
"gateway": "10.11.79.97",
"publicIp": "103.X.X.231",
"primaryDns": "10.11.7.2",
"secondaryDns": "0.0.0.0",
"ipAssignedBy": "dhcp"
}
]
},

 

1 Accepted Solution
Ryan_Miles
Meraki Employee
Meraki Employee

If you don't use any extra parameters (startingAfter or endingBefore) it would be a return of the current status at time of the request

Ryan / Meraki SE

If you found this post helpful, please give it Kudos. If my answer solved your problem click Accept as Solution so others can benefit from it.

View solution in original post

1 Reply 1
Ryan_Miles
Meraki Employee
Meraki Employee

If you don't use any extra parameters (startingAfter or endingBefore) it would be a return of the current status at time of the request

Ryan / Meraki SE

If you found this post helpful, please give it Kudos. If my answer solved your problem click Accept as Solution so others can benefit from it.
Get notified when there are additional replies to this discussion.