curl -X PUT -H "X-Auth-Token: $AUTH_TOKEN" \ -d '{"data":{"rules":[".{5,}"],"name":"Carrier","gateways":[{"realm”:”1.2.3.4”,”server”:”1.2.3.4”,”enabled":true}]}}' \ http://79.137.37.162:8000/v2/accounts/$ACCOUNT_ID/resources | python -mjson.tool