def create_event_status( event_status: EventStatusCreate, request: Request, response: Response, db: Session = Depends(get_db), ): uuid = crud.create(obj=event_status, db_table=EventStatus, db=db) response.headers["Content-Location"] = request.url_for("get_event_status", uuid=uuid)
def create_node_tag( node_tag: NodeTagCreate, request: Request, response: Response, db: Session = Depends(get_db), ): uuid = crud.create(obj=node_tag, db_table=NodeTag, db=db) response.headers["Content-Location"] = request.url_for("get_node_tag", uuid=uuid)
def create_node_history_action( node_history_action: NodeHistoryActionCreate, request: Request, response: Response, db: Session = Depends(get_db), ): uuid = crud.create(obj=node_history_action, db_table=NodeHistoryAction, db=db) response.headers["Content-Location"] = request.url_for("get_node_history_action", uuid=uuid)
def create_event_remediation( event_remediation: EventRemediationCreate, request: Request, response: Response, db: Session = Depends(get_db), ): uuid = crud.create(obj=event_remediation, db_table=EventRemediation, db=db) response.headers["Content-Location"] = request.url_for("get_event_remediation", uuid=uuid)
def create_alert_tool( alert_tool: AlertToolCreate, request: Request, response: Response, db: Session = Depends(get_db), ): uuid = crud.create(obj=alert_tool, db_table=AlertTool, db=db) response.headers["Content-Location"] = request.url_for("get_alert_tool", uuid=uuid)
def create_observable_type( observable_type: ObservableTypeCreate, request: Request, response: Response, db: Session = Depends(get_db), ): uuid = crud.create(obj=observable_type, db_table=ObservableType, db=db) response.headers["Content-Location"] = request.url_for( "get_observable_type", uuid=uuid)
def create_user_role( user_role: UserRoleCreate, request: Request, response: Response, db: Session = Depends(get_db), ): uuid = crud.create(obj=user_role, db_table=UserRole, db=db) response.headers["Content-Location"] = request.url_for("get_user_role", uuid=uuid)
def create_disposition( disposition: AlertDispositionCreate, request: Request, response: Response, db: Session = Depends(get_db), ): uuid = crud.create(obj=disposition, db_table=AlertDisposition, db=db) response.headers["Content-Location"] = request.url_for("get_disposition", uuid=uuid)
def create_event_risk_level( event_risk_level: EventRiskLevelCreate, request: Request, response: Response, db: Session = Depends(get_db), ): uuid = crud.create(obj=event_risk_level, db_table=EventRiskLevel, db=db) response.headers["Content-Location"] = request.url_for( "get_event_risk_level", uuid=uuid)
def create_event_prevention_tool( event_prevention_tool: EventPreventionToolCreate, request: Request, response: Response, db: Session = Depends(get_db), ): uuid = crud.create(obj=event_prevention_tool, db_table=EventPreventionTool, db=db) response.headers["Content-Location"] = request.url_for( "get_event_prevention_tool", uuid=uuid)