@require_context
def instance_remove_security_group(context, instance_uuid, security_group_id):
 model_query(context, models.SecurityGroupInstanceAssociation).filter_by(instance_uuid=instance_uuid).filter_by(security_group_id=security_group_id).soft_delete()

@ require_context def instance_remove_security_group ( context , instance_uuid , security_group_id ) : model_query ( context , models . SecurityGroupInstanceAssociation ) . filter_by ( instance_uuid = instance_uuid ) . filter_by ( security_group_id = security_group_id ) . soft_delete ( )
disassociate the given security group from the given instance .