Need to run this api command via curl, the python code works without any problems , but we want the same to be run as curl command
import requests
params = {'username': 'testuser'}
params['access_token'] = 'c3NhbmthMDJjsd'
params['region'] = 'test'
params['role'] = 'guide'
params['ipaddr'] = '192.168.0.37'
params['name'] = 'test-testhost-001'
params['check'] = 'enable'
url = 'http://10.0.0.1:8000/monitor/'
r = requests.post(url, data=params)
r.json()
Need help on how to post it via curl command