From 0674dc733a5a58a9623d2849890050b82ad8a321 Mon Sep 17 00:00:00 2001 From: pierrerondel Date: Mon, 28 Jul 2025 09:51:52 +0200 Subject: [PATCH] Update order.py to add new function command_objects_details_by_name new function command_objects_details_by_name which get microservices configuration details based on the microservice name --- msa_sdk/order.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/msa_sdk/order.py b/msa_sdk/order.py index 0f6fe484..dd16555d 100644 --- a/msa_sdk/order.py +++ b/msa_sdk/order.py @@ -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)