Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions msa_sdk/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,25 @@ def command_get_deployment_settings_id(self) -> int:
json.loads(self.content)['ConfigProfileByDevice']

return int(config_profile_device)

def command_objects_details_by_name(self, object_name):
"""
Get microservices configuration details by microservice name.

Parameters
-----------
object_name: String
Name of the microservice (configuration)

Returns
--------
list of object:
Configuration details of the microservice by name
"""
self.action = 'Get Microservice Configuration Details'
self.path = '{}/objects/{}/{}/details'.format(self.api_path,
self.device_id,
object_name)
self._call_get()

return json.loads(self.content)