Metadata

Meta data associated with the last request for given module.

Get meta data

>>> from mbed_cloud import CertificatesAPI
>>> certificatesApi = CertificatesAPI()
>>> certificates = certificatesApi.list_certificates()
>>> certificatesApi.get_last_api_metadata()
{ApiMetadata object}

Reference

Core functionality for the SDK

class mbed_cloud.core.ApiMetadata(url, method, response=None, response_data=None, exception=None)

Api meta data.

date

Date of the API response.

Return type:datetime
error_message

Error message.

Return type:str
etag

Etag of the returned data.

Return type:str
headers

Headers in the API response.

Return type:list
method

Method of the API request.

Return type:str
object

Object type of the returned data.

Return type:str
request_id

Request ID of the transaction.

Return type:str
status_code

HTTP Status code of the API response.

Return type:int
to_dict()

Return dictionary of object.

url

URL of the API request.

Return type:str