'.. http:post:: /api/1/whitelistcidrs
Create a new CIDR whitelist entry.
**Example Request**:
.. sourcecode:: http
POST /api/1/whitelistcidrs HTTP/1.1
Host: example.com
Accept: application/json
"name": "Corp",
"notes": "Corporate Network",
"cidr": "1.2.3.4/22"
**Example Response**:
.. sourcecode:: http
HTTP/1.1 201 Created
Vary: Accept
Content-Type: application/json
"id": 123,
"name": "Corp",
"notes": "Corporate Network",
"cidr": "1.2.3.4/22"
:statuscode 201: created
:statuscode 401: Authentication Error. Please Login.'

def post(self):

    self.reqparse.add_argument('name', required=True, type=unicode, help='Must    provide    account    name', location='json')
    self.reqparse.add_argument('cidr', required=True, type=unicode, help='Network    CIDR    required.', location='json')
    self.reqparse.add_argument('notes', required=False, type=unicode, help='Add    context.', location='json')
    args = self.reqparse.parse_args()
    name = args['name']
    cidr = args.get('cidr', True)
    notes = args.get('notes', None)
    whitelist_entry = NetworkWhitelistEntry()
    whitelist_entry.name = name
    whitelist_entry.cidr = cidr
    if notes:
        whitelist_entry.notes = notes
    db.session.add(whitelist_entry)
    db.session.commit()
    db.session.refresh(whitelist_entry)
    whitelistentry_marshaled = marshal(whitelist_entry.__dict__, WHITELIST_FIELDS)
    whitelistentry_marshaled['auth'] = self.auth_dict
    return (whitelistentry_marshaled, 201)
