|
|
@ -1684,7 +1684,7 @@ class DecortController(object):
|
|
|
|
self.amodule.fail_json(**self.result)
|
|
|
|
self.amodule.fail_json(**self.result)
|
|
|
|
# try to locate RG by name - start with getting all RGs IDs within the specified account
|
|
|
|
# try to locate RG by name - start with getting all RGs IDs within the specified account
|
|
|
|
#api_params['accountId'] = arg_account_id
|
|
|
|
#api_params['accountId'] = arg_account_id
|
|
|
|
api_params['includedeleted'] = False
|
|
|
|
api_params['includedeleted'] = True
|
|
|
|
#api_resp = self.decort_api_call(requests.post, "/restmachine/cloudapi/account/listRG", api_params)
|
|
|
|
#api_resp = self.decort_api_call(requests.post, "/restmachine/cloudapi/account/listRG", api_params)
|
|
|
|
api_resp = self.decort_api_call(requests.post, "/restmachine/cloudapi/rg/list",api_params)
|
|
|
|
api_resp = self.decort_api_call(requests.post, "/restmachine/cloudapi/rg/list",api_params)
|
|
|
|
if api_resp.status_code == 200:
|
|
|
|
if api_resp.status_code == 200:
|
|
|
|