def get(self, licenseId):
"""Get the details of a License, by ID.
Args:
licenseId(basestring): The ID of the License to be retrieved.
Returns:
License: A License object with the details of the requested
License.
Raises:
TypeError: If the parameter types are incorrect.
SparkApiError: If the Cisco Spark cloud returns an error.
"""
check_type(licenseId, basestring, may_be_none=False)
# API request
json_data = self._session.get('licenses/' + licenseId)
# Return a License object created from the returned JSON object
return License(json_data)
评论列表
文章目录