Add describe_parameters support
This commit is contained in:
parent
b0fe1d8eae
commit
c118d12e6f
3 changed files with 21 additions and 1 deletions
|
|
@ -43,6 +43,20 @@ class SimpleSystemManagerResponse(BaseResponse):
|
|||
|
||||
return json.dumps(response)
|
||||
|
||||
def describe_parameters(self):
|
||||
# filters = self._get_param('Filters')
|
||||
result = self.ssm_backend.get_all_parameters()
|
||||
|
||||
response = {
|
||||
'Parameters': [],
|
||||
}
|
||||
|
||||
for parameter in result:
|
||||
param_data = parameter.response_object(False)
|
||||
response['Parameters'].append(param_data)
|
||||
|
||||
return json.dumps(response)
|
||||
|
||||
def put_parameter(self):
|
||||
name = self._get_param('Name')
|
||||
description = self._get_param('Description')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue