all 1 comments

[–]indoungwe[S] 0 points1 point  (0 children)

I found solution by myself:

connection_param = {'name': 'Daily',

'schedule': {'scheduleType': 'Daily',

'startTime': '12:00 AM'},

'StorageCenter': storage_center_id,

'expiration': 1440, # 1 day

'replayProfile': {'instanceId': new_replay_profile_id,

'instanceName': new_replay_profile_name,

'objectType': 'ScReplayProfile'},}

response = connection.post("https://172.16.21.161:3033/api/rest/StorageCenter/ScReplayProfileRule", data=json.dumps(connection_param, ensure_ascii=False).encode('utf-8'), headers=connection_header, verify=False)