Using the API Request I am trying to retrieve Link information. WHen I make the API Request https://{api_host}//api/sdwan/v2/enterprises/{enterpriseLogicalId}/edges/{edgeLogicalId}/linkStats I ...
See more...
Using the API Request I am trying to retrieve Link information. WHen I make the API Request https://{api_host}//api/sdwan/v2/enterprises/{enterpriseLogicalId}/edges/{edgeLogicalId}/linkStats I am only getting { "autoDualMode": "string", "bestJitterMsRx": 0, "bestJitterMsTx": 0, "bestLatencyMsRx": 0, "bestLatencyMsTx": 0, "bestLossPctRx": 0, "bestLossPctTx": 0, "bpsOfBestPathRx": 0, "bpsOfBestPathTx": 0, "bytesRx": 0, "bytesTx": 0, "controlBytesRx": 0, "controlBytesTx": 0, "controlPacketsRx": 0, "controlPacketsTx": 0, "link": { "_href": "string"}, "name": "string" How can I make it get all the details in the link nested dict like shown here https://developer.vmware.com/apis/vmware-sase-platform/vmware-sdwan/latest/api/sdwan/v2/enterprises/enterpriseLogicalId/edges/edgeLogicalId/linkStats/get/ Code for reference def get_edge_link_metrics(): endpoint = f'https://{api_host}//api/sdwan/v2/enterprises/{enterpriseLogicalId}/edges/{edgeLogicalId}/linkStats' head = {'Authorization': f'token {myToken}'} response = requests.get(endpoint, headers=head,) if response.status_code == 200: # Successful response, you can process the data here data = response.json() print(data) else: # Handle errors print(f"Error: {response.status_code} - {response.text}") get_edge_link_metrics()